AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > JavaScript

js+flash实现的5图变换效果广告代码(附演示与demo源码下载)

51自学网 http://www.wanshiok.com
js,flash,5图变换,广告代码

本文实例讲述了js+flash实现的5图变换效果广告代码。分享给大家供大家参考,具体如下:

这是一款类似淘宝图片广告的js+flash广告代码。非常美观实用!

运行效果截图如下:

点击此处查看在线演示效果

具体代码如下:

<!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/01.jpg|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>

完整实例代码点击此处本站下载

更多关于JavaScript相关内容感兴趣的读者可查看本站专题:《JavaScript查找算法技巧总结》、《JavaScript动画特效与技巧汇总》、《JavaScript错误与调试技巧总结》、《JavaScript数据结构与算法技巧总结》、《JavaScript遍历算法与技巧总结》及《JavaScript数学运算用法总结

希望本文所述对大家JavaScript程序设计有所帮助。


js,flash,5图变换,广告代码  
上一篇:JS中多步骤多分步的StepJump组件实例详解  下一篇:js中字符串编码函数escape()、encodeURI()、encodeURIComponent()区别详解