请高手帮忙啊~关于ascx页面插入flash的问题!
我的ascx页面所有模块都是div做的,其中有个div是用来放flash的,现在我的flash已经被封装到js文件中,JS内容如下:
var focus_width=300
var focus_height=200
var text_height=0
var swf_height = focus_height+text_height
var pics='img/1.jpg|img/2.jpg|img/3.jpg|img/4.jpg|img/5.jpg'
var links='#|#|#|#|#'
var texts=' '
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"><param name=wmode value=transparent><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
现在我在ascx页面的div用调用JS文件:
<script language="javascript" src="focus.js"></script>
但是没有任何显示,不知道是我调用有问题还是什么其他原因,请高手们伸出援手啊~救命的~~~~
--------------------编程问答-------------------- 为什么每次我的问题都没有人解决呢? --------------------编程问答-------------------- ascx经常出现路径问题,你的路径没问题吧
补充:.NET技术 , ASP.NET