Tip: You can modify some of the code before running
Beautiful Javascript+flash Focus AD toggle Diagram Code <div id= "Main4" > <div class= "main4_1" > <script type=text/javascript> VA R pic_width=726; Picture width var pic_height=170; Picture height var button_pos=4; Button Position 1 left 2 right 3 4 under Var stop_time=5000; Picture stay Time (1000 for 1 seconds) var show_text=0; Whether to display text Labels 1 show 0 does not show var txtcolor= "000000"; Text-color var bgcolor= "dddddd"; Background color var imag=new Array (); var link=new Array (); var text=new Array (); Imag[1]= "Http://www.tudou.com/flash/13.jpg"; Link[1]= "Http://www.tudou.com/playlist/playindex.do?" Lid=6008124&iid=30546362&cid=23 "; text[1]= "Advertisement 1"; Imag[2]= "Http://www.tudou.com/flash/9.jpg"; Link[2]= "http://www.tfcoal.com/nwxx/ShowArticle.asp?ArticleID=24584"; text[2]= "Advertisement 2"; Imag[3]= "Http://www.tudou.com/flash/8.jpg"; Link[3]= "http://www.tfcoal.com/09gdtm/gdtmlist.html"; text[3]= "Advertisement 3"; Imag[4]= "Http://www.tudou.com/flash/2.jpg"; Link[4]= "http://www.tfcoal.com/Article/ShowArticle.asp?ArticleID=14602"; text[4]= "Advertisement 4"; Imag[5]= "Http://www.tudou.com/flash/12.jpg"; Link[5]= "HttP://www.tfcoal.com/article/showarticle.asp? Articleid=25109 "; text[5]= "Advertisement 5"; Imag[6]= "Http://www.tudou.com/flash/hexie.jpg"; Link[6]= "HTTP://WWW.LWLM.COM/PRESENT/200910/318137.HTMN"; text[6]= "advertisement 6"; Editable content over Var swf_height=show_text==1?pic_height+20:pic_height; var pics= "", links= "", texts= ""; for (var i=1 i<imag.length; i++) {pics=pics+ ("|") +imag[i]); links=links+ ("|") +link[i]); texts=texts+ ("|") +text[i]); } pics=pics.substring (1); Links=links.substring (1); Texts=texts.substring (1); document.write (' <object classid= ' clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 "codebase=" http:// Fpdownload.macromedia.com/pub/shockwave/cabs/http://www.tud ou.com/flash/swflash.cabversion=6,0,0,0 "width=" ' + Pic_width + ' "height=" ' + swf_height + ' ">"); document.write (' <param name= "movie" value= "http://www.tudou.com/flash/focus.swf" > "); document.write (' <param name= "wmode" value= "Transparent"/> "); document.write (' <param name= "quality" value= "High" ><param name= "wmode" Value= "opaque" > "); document.write (' <param name= "flashvars" value= "pics= ' +pics+ ' &links= ' +links+ ' ' &texts= ')" +texts+ " Width= ' +pic_width+ ' &pic_height= ' +pic_height+ ' &show_text= ' +show_text+ ' &txtcolor= ' +txtcolor+ ' & BGC olor= ' +bgcolor+ ' &button_pos= ' +button_pos+ ' &stop_time= ' +stop_time+ ' "> '); document.write (' <embed src= "http://www.tudou.com/flash/focus.swf" flashvars= "pics= ' +pics+ ' &links= ') +links+ ' &texts= ' +texts+ ' &pic_width= ' +pic_wid th+ ' &pic_height= ' +pic_height+ ' &show_text= ' +show_text+ ' &txtcolor= ' +txtcolor+ ' &bgcolor= ' +bgcolor+ ' &button_pos= ' +button_pos+ ' &stop_time= ' +stop_time+ ' quality= "High" width= "' + pic_width + '" "height=" ' + swf_height + ' "allowscriptaccess=" Samedomain "type=" application/ X-shockwave-flash "pluginspage=" Http://www.macromedia.com/go/getflashplayer "/>"); document.write (' </object> '); </script> </div>
Tip: You can modify some of the code before running