Focus flash ad banner

[ 2006-08-18 18:16:14 | Author: liuhuan ]
Font Size: Large | Medium | Small
Many portal websites use this flash picture player to show the latest picture news .

The code in html :
Quote
<A href="javascript:goUrl()" target=_self>
<SCRIPT type=text/javascript>
imgUrl1="01.jpg";
imgtext1="图片1"
imgLink1=escape("1.htm");
imgUrl2="02.jpg";
imgtext2="图片2"
imgLink2=escape("2.htm");
imgUrl3="03.jpg";
imgtext3="图片3"
imgLink3=escape("3.htm");
imgUrl4="04.jpg";
imgtext4="图片4"
imgLink4=escape("4.htm");
imgUrl5="05.jpg";
imgtext5="图片5"
imgLink5=escape("5.htm");

var focus_width=500
var focus_height=666
var text_height=20
var swf_height = focus_height+text_height

var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5

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="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('</object>');

</SCRIPT>
</A>
The swf download :
Click Here To Download

example: http://www.xici.net
[Last Modified By liuhuan, at 2006-08-18 18:14:31]
Comments Feed Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=591

There is no comment on this article.

You can't post comment on this article.