标题:弹跳窗口,数据应怎么传送
只看楼主
caiyakang
Rank: 2
等 级:新手上路
威 望:5
帖 子:2111
专家分:0
注 册:2005-3-24
 问题点数:0 回复次数:6 
弹跳窗口,数据应怎么传送

<img src="Music/img/real.gif" width="19" height="17" onClick="winopen()"> <input name="music" type="hidden" value="<%=rs("music_id")%>"> 点击的时候出现弹出窗口, winopen()如下: function winopen() { var win; win=window.open("play.asp","Index","height=180,width=360,resizable=no,scrollbars=no"); win.setTimeout("window.close()",350000); } play.asp: <object classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby= type=application/x-oleobject width=339 height=161 id=MediaPlayer1

loading viewastext> <param name="URL" value="<%=rs("music_url")%>"> <param name="AudioStream" value="-1"> <param name="AutoSize" value="0"> <param name="AutoStart" value="-1"> <param name="AnimationAtStart" value="0"> <param name="AllowScan" value="-1"> <param name="AllowChangeDisplaySize" value="-1"> <param name="AutoRewind" value="0"> <param name="Balance" value="0"> <param name="BaseURL" value> <param name="BufferingTime" value="5"> <param name="CaptioningID" value> <param name="ClickToPlay" value="-1"> <param name="CursorType" value="0"> <param name="CurrentPosition" value="-1"> <param name="CurrentMarker" value="0"> <param name="DefaultFrame" value> <param name="DisplayBackColor" value="0"> <param name="DisplayForeColor" value="16777215"> <param name="DisplayMode" value="0"> <param name="DisplaySize" value="4"> <param name="Enabled" value="-1"> <param name="EnableContextMenu" value="-1"> <param name="EnablePositionControls" value="0"> <param name="EnableFullScreenControls" value="0"> <param name="EnableTracker" value="-1"> <param name="InvokeURLs" value="-1"> <param name="Language" value="-1"> <param name="Mute" value="0"> <param name="PlayCount" value="1"> <param name="PreviewMode" value="0"> <param name="Rate" value="1"> <param name="SAMILang" value> <param name="SAMIStyle" value> <param name="SAMIFileName" value> <param name="SelectionStart" value="-1"> <param name="SelectionEnd" value="-1"> <param name="SendOpenStateChangeEvents" value="-1"> <param name="SendWarningEvents" value="-1"> <param name="SendErrorEvents" value="-1"> <param name="SendKeyboardEvents" value="0"> <param name="SendMouseClickEvents" value="0"> <param name="SendMouseMoveEvents" value="0"> <param name="SendPlayStateChangeEvents" value="-1"> <param name="ShowCaptioning" value="0"> <param name="ShowControls" value="-1"> <param name="ShowAudioControls" value="-1"> <param name="ShowDisplay" value="0"> <param name="ShowGotoBar" value="0"> <param name="ShowPositionControls" value="-1"> <param name="ShowStatusBar" value="-1"> <param name="ShowTracker" value="-1"> <param name="TransparentAtStart" value="-1"> <param name="VideoBorderWidth" value="0"> <param name="VideoBorderColor" value="0"> <param name="VideoBorder3D" value="0"> <param name="Volume" value="70"> <param name="WindowlessVideo" value="0"> </object> 也就是一个播放器. 请问如何通过点击,把数值传到plsy.asp上面了.我上面用的那个隐藏域不能传送过去

搜索更多相关主题的帖子: 窗口 数据 弹跳 
2005-09-21 18:59
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
var Muid;

Muid=document.music.value;

win=window.open("play.asp?music_id="+Muid,"Index","height=180,width=360,resizable=no,scrollbars=no");

这样试试?
2005-09-21 22:07
caiyakang
Rank: 2
等 级:新手上路
威 望:5
帖 子:2111
专家分:0
注 册:2005-3-24
得分:0 
不能用,传送不了

中国人的财富网:http://www..cn/
2005-09-22 09:44
caiyakang
Rank: 2
等 级:新手上路
威 望:5
帖 子:2111
专家分:0
注 册:2005-3-24
得分:0 
&lt;script language="javascript" src="css/paly.js"&gt;
&lt;/script&gt;    ,这是打开弹跳窗口的:
function winopen() {
var win;
var Muid;
Muid=document.music.value;
win=window.open("play.asp?music_id="+Muid,"Index","height=180,width=360,resizable=no,scrollbars=no");
win.setTimeout("window.close()",350000);
}





img src="Music/img/real.gif" width="19" height="17" onClick="winopen()"&gt;
 &lt;input name="music" type="hidden" value="&lt;%=rs("music_id")%&gt;"&gt; 这是我想要传送的,但传送不了.

中国人的财富网:http://www..cn/
2005-09-22 09:46
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
什么原因传送不了,有没有弹出错误?
2005-09-22 09:51
caiyakang
Rank: 2
等 级:新手上路
威 望:5
帖 子:2111
专家分:0
注 册:2005-3-24
得分:0 
有打开弹跳窗口,但值没传过去.

中国人的财富网:http://www..cn/
2005-09-22 11:22
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
<script language="javascript" src="css/paly.js"> </script> ,这是打开弹跳窗口的: function winopen() { var win; var Muid; Muid=document.music.value; alert("Muid值为"+Muid); win=window.open("play.asp?music_id="+Muid,"Index","height=180,width=360,resizable=no,scrollbars=no"); win.setTimeout("window.close()",350000); }
试试看得没得到值?alert会先弹出一个窗口看看的没得到值。
2005-09-22 12:51



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-28273-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.067755 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved