Beautiful javascript+flash Focus AD switch diagram code
<div id= "Main4" >
<div class= "Main4_1" >
<script type=text/javascript>
var pic_width=726; Picture width
var pic_height=170; Picture height
var button_pos=4; Press Twist position 1 left 2 right 3 up 4
var stop_time=5000; Picture stay Time (1000 for 1 seconds)
var show_text=0; Display text Labels 1 show 0 do 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 end of content
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.tudou.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+ ' & Bgcolor= ' +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_width+ ' &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>