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


本文实例讲述了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程序设计有所帮助。


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3