Js+flash Slide Play Picture script, organize the code, make the call more convenient
Many large stations have js+flash slide play picture script, sorting out the code, make the call more convenient!
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > <HTML> <HEAD> <TITLE> Generate slide-style web-page picture effect Demo & lt;/title> <meta http-equiv=content-type content= "text/html; charset=gb2312 "> <meta content=" "Name=keywords> <meta content=" "Name=description> </HEAD> <B ody> <center> <p> Generate slide-style web page picture effects </p> <pr width= "80%" size= "1" color= "#C0C0C0" > < SCRIPT type=text/javascript>//Slide page picture scrolling function (no change required)//This procedure by the Guangzhou Real Estate network collation, welcome to reprint and suggestions, copyright no function Roll_pic_flash (Roll_ Pic_ary) {//Generate slide-type Web page picture scrolling code var w = roll_pic_ary[3][0]; var h = roll_pic_ary[3][1]; var text_h = roll_pic_ary[3][2]; var bgcolor = roll_pic_ary[3][3]; var roll_swf = roll_pic_ary[3][4]; var swf_height = h + text_h; var pics = Roll_pic_ary[0].join ("|"); var links = roll_pic_ary[1].join ("|"); var texts = Roll_pic_ary[2].join ("|"); Return ' <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=" ' + W + ' "height=" ' + swf_ Height + ' "><param name=" Default_url "value=" http://www.hbw.cn/"><param name=" allowscriptaccess "value=" Samedomain "><param name=" movie "value=" + roll_swf + ' "><param name=" quality "value=" High "><param Name= "bgcolor" value= "' +bgcolor+ '" ><param name= "menu" value= "false" ><param name= "improved_by" value= " http://www.gzfangzi.com/"><param name=wmode value=" opaque ><param "name=" Flashvars "value=" pics= ' &links= ' +links+ ' &texts= ' +texts+ ' &borderwidth= ' +w+ ' &borderheight= ' ' +h+ ' ' &textheight= ' + ' "><embed src=" ' + roll_swf + ' "wmode=" opaque "flashvars=" pics= ' +pics+ ' &links= ' "+links+ 'texts= ' +texts+ ' &borderwidth= ' +w+ ' &borderheight= ' +h+ ' &textheight= ' +text_h+ ', ' menu= ' false ' bgcolor= ' +bgcolor+ ' "quality=" High "width=" ' + W + ' "height=" ' + H + ' "allowscriptaccess=" Samedomain "type=" application/ X-shockwave-flash "pluginspage=" http://www.macromedia.com/go/getflashplayer "/></object>"; //Start setting slide parameter var roll_pic_width = 450; Picture width var roll_pic_height = 300; Picture height var roll_text_height = 22; Literal height var roll_bgcolor = ' #FFFFFF '; Slide background color var roll_flash = ' http://www.gzfangzi.com/demo/ad/roll_js_flash.swf '; Slide Flash address, please save this flash download to your server to avoid invalidation//slide array roll_pic_ary initialization (without making any changes) var roll_pic_ary = new Array (array (0), array (0), Array (0), Array (Roll_pic_width,roll_pic_height,roll_text_height,roll_bgcolor,roll_flash)); Add a picture, connect, text description Roll_pic_ary[0].push ("http://www.gzfangzi.com/demo/ad/1.jpg"); Roll_pic_ary[1].push (Escape ("http://www.gzfangzi.com")); Roll_pic_ary[2].push ("Super Girls press conference picture One"); Roll_pic_ary[0].pUsh ("http://www.gzfangzi.com/demo/ad/2.jpg"); Roll_pic_ary[1].push (Escape ("http://www.gzfangzi.com")); Roll_pic_ary[2].push ("Super Girls press conference picture Two"); Roll_pic_ary[0].push ("http://www.gzfangzi.com/demo/ad/3.jpg"); Roll_pic_ary[1].push (Escape ("http://www.gzfangzi.com")); Roll_pic_ary[2].push ("A wonderful performance of Super girls"); Roll_pic_ary[0].push ("http://www.gzfangzi.com/demo/ad/4.jpg"); Roll_pic_ary[1].push (Escape ("http://www.gzfangzi.com")); Roll_pic_ary[2].push ("Super Girl's Wonderful Performance II"); Roll_pic_ary[0].push ("http://www.gzfangzi.com/demo/ad/5.jpg"); Roll_pic_ary[1].push ("Super Girl's Wonderful Performance III")); Roll_pic_ary[2].push ("text description"); Roll_pic_ary[0].push ("http://www.gzfangzi.com/demo/ad/6.jpg"); Roll_pic_ary[1].push ("Super Girl's wonderful performance, four"); Roll_pic_ary[2].push ("text description"); Display slide-style page picture scrolling document.write (Roll_pic_flash (roll_pic_ary)); </SCRIPT> <pr width= "80%" size= "1" color= "#C0C0C0" > </center> </BODY> </HTML>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]