悉尼Strathfield 全新公寓 | Meriton悉尼最著名的城市公寓,价格最实惠,详情>>> | ****Casino网络辅导课程***** | 0.75%*低於浮动房屋贷款利率 | Google 搜索 | 澳洲中文网首页 | 澳洲地产网
成人聊天网
澳洲宝华房地产
澳洲留学移民 专业小提琴教学 澳洲移民课程
便宜购物 澳洲味千拉面 澳大利亚墨尔本学校 澳大利亚海运
澳洲地产 ABC集团 澳洲地产网


 
标题: 展示二个或替换一个更多的无限循环的广告 (480 x 60)
城市童话 (╰☆悉尼☆)
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9




社区区长
等级: 79 -
生命值 : 2947 / 2947
魔力值 : 6404 / 17912
经验值 : 59 %

UID: 10239
精华: 54
积分: 38190
帖子: 19212
威望: 38190
澳币: 40
现金: 170156
存款: 2147483647
魅力: 4717
阅读权限: 200
注册: 2005-10-10
状态:
荣誉勋章
★★荣誉勋章★★
发表于 2005-12-3 17:12  资料  短消息  加为好友  添加 城市童话 为MSN好友 通过MSN和 城市童话 交谈 QQ
展示二个或替换一个更多的无限循环的广告 (480 x 60)



ABC环球集团 | Meriton,悉尼最著名的城市公寓开发商 | 澳洲免费贷款在线申请 | 澳美留学移民 | 澳洲下一位百万富翁
----------------------------------------------------------------------------------------------------------------------------------------------------------
在<body>中加入onLoad="initVar(); moveBanner()"

以下代码加入<head>区域或者想调用的地方加:

<style type="text/css">
<!--
#addbox {
  position: relative;
  width: 500px;
  height: 70 px;
  clip: rect(0px, 500px, 0px, 70px);
  overflow: hidden;
}
#banner1 {
  position: relative;
  width: 480px;
  height: 60px;
  left: 0;
  top: 5px;
}
#banner2 {
  position: relative;
  width: 480px;
  height: 60px;
  left: 500px;
  top: -55px !important;
  top:-58px;
}
-->
</style>

<script type="text/javascript">
<!--


var displayTime, speed, wait, banner1, banner2, link1, link2, bannerIndex, bannerLocations, bannerURLs;

function initVar() {
  displayTime = 10; // The amount of time each banner will be displayed in seconds.
  speed = 5; // The speed at which the banners is moved (1 - 10, anything above 5 is not recommended).
  wait = true;

  banner1 = document.getElementById("banner1");
  banner2 = document.getElementById("banner2");
  link1 = document.getElementById("link1");
  link2 = document.getElementById("link2");

  banner1 = document.getElementById("banner1");
  banner2 = document.getElementById("banner2");

  banner1.style.left = 0;
  banner2.style.left = 500;

  bannerIndex = 1;

  /* Important: In order for this script to work properly, please make sure that the banner graphic and the
  URL associated with it have the same index in both, the bannerLocations and bannerURLs arrays.
  Duplicate URLs are permitted. */

  // Enter the location of the banner graphics in the array below.
  bannerLocations = new Array("www.twinsworld.org/jsimg/pic1.jpg","www.twinsworld.org/jsimg/pic2.jpg","www.twinsworld.org/jsimg/pic3.jpg","www.twinsworld.org/jsimg/pic4.jpg","www.twinsworld.org/jsimg/pic5.jpg");

  // Enter the URL's to which the banners will link to in the array below.
  bannerURLs = new Array("http://www.twinsworld.org","http://www.twinsworld.org","http://www.twinsworld.org","http://www.twinsworld.org","http://www.twinsworld.org");
}
function moveBanner(){
  if(!wait){
    banner1.style.left = parseInt(banner1.style.left) -  (speed * 5);
    banner2.style.left = parseInt(banner2.style.left) - (speed * 5);
    if(parseInt(banner1.style.left) <= -500){
      banner1.style.left = 500;
      bannerIndex = (bannerIndex < (bannerLocations.length - 1)) ? ++bannerIndex :0;
      banner1.src = bannerLocations[bannerIndex];
      link1.href = bannerURLs[bannerIndex];
      wait = true;
    }
    if(parseInt(banner2.style.left) <= -500){
      banner2.style.left = 500;
      bannerIndex = (bannerIndex < (bannerLocations.length - 1)) ? ++bannerIndex :0;
      banner2.src = bannerLocations[bannerIndex];
      link2.href = bannerURLs[bannerIndex];
      wait = true;
    }

    setTimeout("moveBanner()",100);
  } else {
      wait = false;
      setTimeout("moveBanner()", displayTime * 1000);
  }
}
-->
</script>



<div align="center">
<div name="addbox" id="addbox">
<a name="link1" id="link1" href="www.twinsworld.org"><img border="0" name="banner1"

id="banner1" src="www.twinsworld.org/jsimg/pic1.jpg"></a>
<a name="link2" id="link2" href="www.twinsworld.org"><img border="0" name="banner2"

id="banner2" src="www.twinsworld.org/jsimg/pic2.jpg"></a>
</div></div>






顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
1361109
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5


澳洲博士生
等级: 51 - 星夜帝王
生命值 : 591 / 1254
魔力值 : 1628 / 10403
经验值 : 19 %

UID: 30528
精华: 0
积分: 5430
帖子: 4884
威望: 5430
澳币: 0
现金: 14506
存款: 1868208
魅力: 385
阅读权限: 100
注册: 2006-1-21
状态:
荣誉勋章
★★最佳新人★★ ★★灌水之王★★
发表于 2006-3-5 01:44  资料  短消息  加为好友 
支持!!!!!!!!!!!






s
顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
 


澳大利亚楼盘 澳大利亚免费贷款

当前时区 GMT+11, 现在时间是 2008-11-22 21:38

澳大利亚中文网 Powered by Discuz! 5.5.0 © 2001-2007
Processed in 0.037568 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 澳洲中文网 - Archiver