在.net里使用js的flash图片切换效果,图片文件地址过长,无法显示图片,是怎么回事
JS代码如下:
<SCRIPT type=text/javascript>
<!--
var focus_width=280
var focus_height=230
var text_height=0
var swf_height = focus_height+text_height
var pics= 'upimg/f1.jpg|upimg/f2.jpg|upimg/f3.jpg|upimg/f4.jpg|upimg/f5.jpg '
var links= 'http://www.flywe.net|http://news.17173.com/content/2006-09-21/20060921090622660,1.shtml|http://news.17173.com/content/2006-09-21/20060921091654185,1.shtml|http://news.17173.com/content/2006-09-20/20060920163345720,1.shtml|http://news.17173.com/content/2006-09-21/20060921153752928,1.shtml '
var texts= 'Flywe の Blog|Flywe の Blog|Flywe の Blog|Flywe の Blog|Flywe の Blog '
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= "upswf/focus.swf "> <param name= "quality " value= "high "> <param name= "bgcolor " value= "#fffff "> ');
document.write( ' <param name= "menu " value= "false "> <param name=wmode value= "transparent "> ');
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= "images/focus.swf " wmode= "opaque " FlashVars= "texts= '+texts+ '&pics= '+pics+ '&links= '+links+ '&borderwidth= '+focus_width+ '&borderheight= '+focus_height+ '&textheight= '+text_height+ ' " menu= "false " bgcolor= "#ffffff " 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> ');
//-->
</SCRIPT>
------解决方案--------------------mark
------解决方案--------------------我记得这个Flash程序好像是不能用Jpg的图片来的。
你换个同样长名字的GIF图片试试
------解决方案-------