[求助]高手修改这个flash+js的图片切换,求教
<P>这个里面只能加载jpg的图片,怎么修改加载gif和bmp的图片<BR>代码如下:(我不会让它运行在论坛里,只能帖代码)<BR><a target=_self href="javascript:goUrl()"> <BR> <span class="f14b"><BR> <script type="text/javascript"><BR>imgUrl1="<a href="http://www.webjx.com/img/200406301.jpg" target="_blank" >http://www.webjx.com/img/200406301.jpg</A>";<BR>imgtext1="网页教学网制作素材"<BR>imgLink1=escape("<a href="http://www.webjx.com/htmldata/sort/8.html" target="_blank" >http://www.webjx.com/htmldata/sort/8.html</A>");<BR>imgUrl2="<a href="http://www.webjx.com/img/200406302.jpg" target="_blank" >http://www.webjx.com/img/200406302.jpg</A>";<BR>imgtext2="网页教学网网页制作专区"<BR>imgLink2=escape("<a href="http://www.webjx.com/htmldata/sort/3.html" target="_blank" >http://www.webjx.com/htmldata/sort/3.html</A>");<BR>imgUrl3="<a href="http://www.webjx.com/img/200406303.jpg" target="_blank" >http://www.webjx.com/img/200406303.jpg</A>";<BR>imgtext3="网页教学网网页特效专区"<BR>imgLink3=escape("<a href="http://www.webjx.com/htmldata/sort/5.html" target="_blank" >http://www.webjx.com/htmldata/sort/5.html</A>");<BR>imgUrl4="<a href="http://www.webjx.com/img/200406304.jpg" target="_blank" >http://www.webjx.com/img/200406304.jpg</A>";<BR>imgtext4="网页教学网视频教程"<BR>imgLink4=escape("<a href="http://www.webjx.com/htmldata/sort/15.html" target="_blank" >http://www.webjx.com/htmldata/sort/15.html</A>");<BR>imgUrl5="<a href="http://www.webjx.com/img/200406305.jpg" target="_blank" >http://www.webjx.com/img/200406305.jpg</A>";<BR>imgtext5="网页教学网网页制作书籍"<BR>imgLink5=escape("<a href="http://www.webjx.com/htmldata/sort/7.html" target="_blank" >http://www.webjx.com/htmldata/sort/7.html</A>");</P><P> var focus_width=280<BR> var focus_height=158<BR> var text_height=18<BR> var swf_height = focus_height+text_height<BR> <BR> var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5<BR> var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5<BR> var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5<BR> <BR> document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="<a href="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" target="_blank" >http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0</A>" width="'+ focus_width +'" height="'+ swf_height +'">');<BR> document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="<a href='http://www.webjx.com/js/focus.swf" target="_blank" ><param'>http://www.webjx.com/js/focus.swf"><param</A> name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');<BR> document.write('<param name="menu" value="false"><param name=wmode value="opaque">');<BR> document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');<BR> document.write('<embed src="pixviewer.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="<a href="http://www.macromedia.com/go/getflashplayer" target="_blank" >http://www.macromedia.com/go/getflashplayer</A>" />'); document.write('</object>');<BR> </P>
<P> </script><BR> </span></a><span id=focustext class=f14b> </span><BR></P>
<P> var focus_width=280<BR> var focus_height=158<BR> var text_height=18<BR> var swf_height = focus_height+text_height<BR> <BR> var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5<BR> var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5<BR> var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5<BR> <BR> document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="<a href="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" target="_blank" >http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0</A>" width="'+ focus_width +'" height="'+ swf_height +'">');<BR> document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="<a href='http://www.webjx.com/js/focus.swf" target="_blank" ><param'>http://www.webjx.com/js/focus.swf"><param</A> name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');<BR> document.write('<param name="menu" value="false"><param name=wmode value="opaque">');<BR> document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');<BR> document.write('<embed src="pixviewer.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="<a href="http://www.macromedia.com/go/getflashplayer" target="_blank" >http://www.macromedia.com/go/getflashplayer</A>" />'); document.write('</object>');<BR> </P>
<P> </script><BR> </span></a><span id=focustext class=f14b> </span><BR>[/CODE]</P> 二楼可以运行,高手给看看... 给你一个:<BR>[attach]18540[/attach]<BR> <P>谢谢先,不过大哥,你这个和我这个就是一个东西,<BR>还是只能加载jpg的图片[em04]</P> <P>你墉gif或者bmp格式的图片一样可以用的啊!<BR><BR>我试过了,可以用的。</P> 收藏[em01]
回复:(tuablove)[求助]高手修改这个flash+js的图片...
你这个图片是固定的,能不能写一个asp.net2.0的代码从数据库动态的取出图片的路径。我期待。 当然可以,变通一下把imaUrl和imaText变成动态读出就行了<BR><BR>自己想一下就出来,别一味要代码...页:
[1]
