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]]