| 发表于:2007-08-02 14:50:297楼 得分:50 |
汗哦,我只是菜鸟新手,那个效果的文件正好电脑里有就是了- - 那个应该不算是flash啊,ie用文本打开后就可以修改了呀 把图片名称加进代码,尺寸改成你需要的就好了 然后直接点ie就可以看到效果了 我发去的两个文件和图片放一个文件夹里就行了 下面是我这里用的 <body> <script language= "javascript "> var imgurl= " <%=imgurl%> "; var imgtext= " <%=name%> " var imglink=escape( "article_show.asp "); var focus_width=531 var focus_height=76 var text_height=0 var swf_height = focus_height+text_height var pics= "域名注册2.jpg ¦虚拟主机2.jpg ¦vps主机2.jpg ¦邮局服务2.jpg ¦数据中心2.jpg ¦托管租用2.jpg "; var links= " ¦ ¦ ¦ ¦ ¦ "; var texts= "123 ¦456 ¦789 ¦1222 ¦433 ¦eee "; 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= "1225321247.swf "> <param name= "quality " value= "high "> <param name= "bgcolor " value= "#f0f0f0 "> '); 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= "1225321247.swf " wmode= "opaque " flashvars= "pics= '+pics+ '&links= '+links+ '&texts= '+texts+ '&borderwidth= '+focus_width+ '&borderheight= '+focus_height+ '&textheight= '+text_height+ ' " menu= "false " bgcolor= "#f0f0f0 " quality= "high " width= " '+ focus_width + ' " height= " '+ focus_height + ' " allowscriptaccess= "samedomain " type= "application/x-shockwave-flash " pluginspage= "http://www.macromedia.com/go/getflashplayer " /> '); document.write( ' </object> '); </script> </body> </html> | | |
|