流行的图片新闻幻灯片播放控件代码

<!-- Feedsky FEED发布代码开始 --> <!-- FEED自动发现标记开始 --> 点击这里使用RSS订阅本Blog: <link rel="alternate" href="http://feed.feedsky.com/softwave" type="application/rss+xml" title="RSS 2.0"> <!-- FEED自动发现标记结束 --><script language="javascript"><!-- main_sub="c1s67"; more_subs=""; --> </script><script language="javascript" src="http://www.feedsky.com/jsout/publishlist_v2.js?burl=softwave&amp;out_html=true"></script><!-- Feedsky FEED发布代码结束 -->

类似sina(新浪网)上的flash图片怎么弄的?http://sports.sina.com.cn/上方左面的图片变化效果。
最近看到各大门户站例如新浪体育,都有一个幻灯片特效,而且不是简单的JS特效,是FLASH和JS结合而成的觉得非常不错,今天在IT世界的原代码中查看了一下,特此发布!觉得好的话,直接把代码复制就可以实现了,注意把代码里面的图片连接地址换成你自己喜欢的图片,还有图片大小要定义成你用的图片的大小,代码不难,相信懂html语言的完全可以理解,我以前也做过这样的效果,推荐这个flash和js综合做的效果。

< a target =_self href ="javascript:goUrl()" >
< span class ="f14b" >
< script type ="text/javascript" > ...
imgUrl1
="http://www.webjx.com/img/200406301.jpg";
imgtext1
="网页教学网制作素材"
imgLink1
=escape("http://www.webjx.com/htmldata/sort/8.html");
imgUrl2
="http://www.webjx.com/img/200406302.jpg";
imgtext2
="网页教学网网页制作专区"
imgLink2
=escape("http://www.webjx.com/htmldata/sort/3.html");
imgUrl3
="http://www.webjx.com/img/200406303.jpg";
imgtext3
="网页教学网网页特效专区"
imgLink3
=escape("http://www.webjx.com/htmldata/sort/5.html");
imgUrl4
="http://www.webjx.com/img/200406304.jpg";
imgtext4
="网页教学网视频教程"
imgLink4
=escape("http://www.webjx.com/htmldata/sort/15.html");
imgUrl5
="http://www.webjx.com/img/200406305.jpg";
imgtext5
="网页教学网网页制作书籍"
imgLink5
=escape("http://www.webjx.com/htmldata/sort/7.html");

varfocus_width=280
varfocus_height=158
vartext_height=18
varswf_height=focus_height+text_height

varpics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
varlinks=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
vartexts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5

document.write(
'<objectclassid="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(
'<paramname="allowScriptAccess"value="sameDomain"><paramname="movie"value="http://www.webjx.com/js/focus.swf"><paramname="quality"value="high"><paramname="bgcolor"value="#F0F0F0">');
document.write(
'<paramname="menu"value="false"><paramname=wmodevalue="opaque">');
document.write(
'<paramname="FlashVars"value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write(
'<embedsrc="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="http://www.macromedia.com/go/getflashplayer"/>');document.write('</object>');


</ script >
</ span ></ a >< span id =focustext class =f14b > </ span >
需要下载一个FLASH: http://www.webjx.com/js/focus.swf

参考资料:
http://www.webjx.com/htmldata/sort/52.html
http://www.webjx.com/htmldata/2005-10-01/1128143647.html

<!-- Google Reader shared发布代码开始 --> <script type="text/javascript" src="http://www.google.com/reader/ui/publisher.js"></script><script type="text/javascript" src="http://www.google.com/reader/public/javascript/user/00697638153916680411/state/com.google/broadcast?n=5&amp;callback=GRC_p(%7Bc%3A%22green%22%2Ct%3A%22%5Cu8FD9%5Cu4E9B%5Cu6587%5Cu7AE0%5Cu4E5F%5Cu503C%5Cu5F97%5Cu4E00%5Cu770B%22%2Cs%3A%22false%22%7D)%3Bnew%20GRC"></script><!-- Google Reader shared发布代码结束 -->

你可能感兴趣的:(幻灯片)