| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 584 人关注过本帖
标题:JS换成ASP 这样写对吗?
只看楼主 加入收藏
kgdipbyve
Rank: 2
等 级:论坛游民
帖 子:346
专家分:35
注 册:2008-5-4
结帖率:92.31%
收藏
 问题点数:0 回复次数:0 
JS换成ASP 这样写对吗?
javascript
**********************************************************************************************************<SCRIPT language=javascript>
                            var tmpHTML = '';
                            
                            tmpHTML = tmpHTML + '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.,0,0,0" WIDTH="420" HEIGHT="206" id="flashview" ALIGN="">'
                            tmpHTML = tmpHTML + '<PARAM NAME=movie VALUE="pic/flashview.swf?txt01=温州现场招聘会'
                            tmpHTML = tmpHTML + '&txt02=温州现场招聘会'
                            tmpHTML = tmpHTML + '&txt03=温州现场招聘会1'
                            tmpHTML = tmpHTML + '&txt04=温州现场招聘会2'
                            tmpHTML = tmpHTML + '&txt05=温州现场招聘会3'
                                
                            tmpHTML = tmpHTML + '&img_001=pic/01.jpg'
                            tmpHTML = tmpHTML + '&img_002=pic/02.jpg'
                            tmpHTML = tmpHTML + '&img_003=pic/03.jpg'
                            tmpHTML = tmpHTML + '&img_004=pic/04.jpg'
                            tmpHTML = tmpHTML + '&img_005=pic/05.jpg'
                                
                            tmpHTML = tmpHTML + '&url_001=javascript:goURL(1);'
                            tmpHTML = tmpHTML + '&url_002=javascript:goURL(2);'
                            tmpHTML = tmpHTML + '&url_003=javascript:goURL(3);'
                            tmpHTML = tmpHTML + '&url_004=javascript:goURL(4);'
                            tmpHTML = tmpHTML + '&url_005=javascript:goURL(5);" /><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#C0E2D2><EMBED src="pic/flashview.swf" quality=high bgcolor=#C0E2D2 WIDTH="436" HEIGHT="230" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.'
                            tmpHTML = tmpHTML + '</OBJECT>'
                            
                            printHTML(tmpHTML);
                            
                            function goURL(str) {
                                var url_001 = "#";
                                var url_002 = "#";
                                var url_003 = "#"
                                var url_004 = "#";
                                var url_005 = "#";

                                location.href=eval("url_00"+str);
                            }
                            
                            function printHTML(str) {
                                var strHTML = str;
                                document.write(strHTML);
                            }
                        </SCRIPT>

**********************************************************************************************************ASP 改了之后的样子
<%
Response.Write("<script language=javascript>" & VBCrlf)
Response.Write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.,0,0,0' WIDTH='420' HEIGHT='206' id='flashview' ALIGN=''>'")
for i=1 to 5
Response.Write("<PARAM NAME=movie VALUE='pic/flashview.swf?txt0"&i&"="&i)
Response.Write("&img_00"&i&"=pic/0"&i&".jpg")
Response.Write("&url_00"&i&"=javascript:goURL("&i&");")
Response.Write(" />")
next
Response.Write("<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#C0E2D2><EMBED src='pic/flashview.swf' quality=high bgcolor=#C0E2D2 WIDTH='436' HEIGHT='230' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.'></EMBED>'</OBJECT>")
%>

[[it] 本帖最后由 kgdipbyve 于 2008-11-25 10:23 编辑 [/it]]
搜索更多相关主题的帖子: ASP 
2008-11-25 10:20
快速回复:JS换成ASP 这样写对吗?
数据加载中...
 
   



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

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