js 图片定时切换






<a id="pro_img_url" href="http://www.zhuoda.org/lunzi/"><img src="http://data.rakoo.cn/image/AndroidGameImg/game/logo/1000007.png" id="pro_img"></a>

  <!--文字特效开始-->
<script type="text/javascript">
    var n = 0;
    function changeColorIndex_agri(){
        n++;
        switch(n){
           case 1:return "http://data.rakoo.cn/image/AndroidGameImg/game/logo/1000001.jpg";
           case 2:return  "http://data.rakoo.cn/image/AndroidGameImg/game/logo/1000004.jpg";
           case 3:return  "http://data.rakoo.cn/image/AndroidGameImg/game/logo/5420.jpg";
           default:return "http://data.rakoo.cn/image/AndroidGameImg/game/logo/1000007.png";
        }
    }
    function colorfullIndex_agri() {
         var tt =document.getElementById('pro_img')
var url =document.getElementById('pro_img_url')
        // tt.style.color=changeColorIndex_agri();
pro_img.src = changeColorIndex_agri();
if (n == 0 || n==2){
url.href = "http://www.zhuoda.org/lunzi/";
} else if(n == 1) {
url.href = "http://www.zhuoda.org/lunzi2/";
}
        
//alert(pro_img.src);

         if(n==2)n=0;
        setTimeout('colorfullIndex_agri()',2000);
    }
    colorfullIndex_agri();

</script>
<!--文字特效结束-->
lunzi   2011-01-28 17:43:49 评论:0   阅读:5133   引用:0

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog