: :
<type type = "text/css">*{margin: 0 ؛ padding: 0 ؛} body {height: 2000px ؛}. Floatad {width: 124px ؛ height: 299px ؛ محاذاة النص: المركز ؛ الموضع: ثابت ؛ الهامش اليساري: 0 ؛ الأعلى: 109px ؛ _position: مطلق ؛ الخلفية: url (// files.vevb.com/demoimg/2014/bg_slide2_120_270.png) no-repeat ؛}. floatad a {display ؛}. الارتفاع: 20 بكسل ؛ العرض: كتلة ؛ المؤشر: مؤشر ؛ الهامش: 9px 0 0 auto ؛}. flad {يسار: 0 ؛}. src = "#"> </a> <span> </span> </viv> <script type = "text/javaScript"> $ (". closead"). انقر (function () {$ (this) .parent (". floatad"). + obj ؛ var adtop = $ (". ($ .browser.msie && parseint ($. browser.version) == 6) {scrollad ("floatad") ؛}}) </script>我们还可以改下代码 , 实现 "单边展示飘浮广告 , 多个广告轮播展示" 的效果 , : :
<type type = "text/css">*{margin: 0 ؛ padding: 0 ؛} body {height: 2000px ؛}. Floatad {width: 124px ؛ height: 299px ؛ محاذاة النص: المركز ؛ الموضع: ثابت ؛ الهامش اليساري: 0 ؛ الأعلى: 109px ؛ اليمين: 0 ؛ _position: مطلق ؛ الخلفية: url (// files.vevb.com/demoimg/2014/bg_slide2_120_270.png) no-repeat ؛}. floatad a {display ؛}. الارتفاع: 20 بكسل ؛ العرض: كتلة ؛ المؤشر: مؤشر ؛ الهامش: 9px 0 0 Auto ؛} </style> <viv> <a href = "#" target = "_ blank"> <img src = "#"> </a> <a href = "#" target = "_ blank" style = "display: none ؛" <img src = " type = "text/javaScript"> $ (". closead"). انقر فوق (function () {$ (". floatad"). > a ") ، times = times*1000 ، len = obj.length ؛ // alert (len) ؛ setInterval (function () {num ++ ؛ num = num> len-1؟ 0: num ؛ // console.log (num) ؛ $ (obj) .eq (num) .show (). siblings (" a "). {var obj = "." + obj ؛ var adtop = $ (". ($ .browser.msie && parseint ($. browser.version) == 6) {scrollad ("floatad") ؛} // 执行定时切换图片广告 changepic ("Floatad" ، 2) ؛ // 每隔 2 秒切换一次广告图片展示 间隔时间可控 间隔时间可控}) </script>