The example in this article describes the 5-image transformation effect advertising code implemented by js+flash. Share it with everyone for your reference, the details are as follows:
This is a js+flash advertising code similar to Taobao image advertising. Very beautiful and practical!
The screenshot of the running effect is as follows:
The specific code is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>5图变换flash+js广告代码</title> <SCRIPT src="js/sohuflash_1.js" type=text/javascript></SCRIPT> </head> <body> <div align="center"> <div id=flashcontent01></div> <script type=text/javascript> // <![CDATA[ var pics="images/05-image transformation effect advertising code implemented by js+flash (source code attached)|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg"; var mylinks="#|#|#|#|#"; var texts="阿旺|阿汤|哈哈|阿毛|喵星人"; var sohuFlash2 = new sohuFlash("images/yl1017.swf","sohuFlashID01","299","297","5","#ffffff"); sohuFlash2.addParam("quality", "high"); sohuFlash2.addParam("wmode", "opaque"); sohuFlash2.addParam("salign", "t"); sohuFlash2.addVariable("p",pics); sohuFlash2.addVariable("l",mylinks); sohuFlash2.addVariable("icon",texts); sohuFlash2.write("flashcontent01"); // ]]> </script> </div> </body> </html>
The above is the entire content of this article, more related tutorials Please visit JavaScript Video Tutorial!