当前位置: 乐呵网 > js学习网 > JavaScript特效 >

javascript节制图片的百叶窗结果--新华网山西频

时间:2014-06-17 12:41来源:乐呵网提供 作者:乐呵网 点击:
新华网山西频道--权威发布山西重大政策,集中报道新华社山西分社记者报道

    }

    function linkurl()

    {

    jumpUrl=tupianlink[adNum];

    jumpTarget='_blank';

    if (jumpUrl != '')

    {

    if (jumpTarget != '')window.open(jumpUrl,jumpTarget);

    else location.href=jumpUrl;

    }

    }

    function listMsg()

    {

    status=tupianlink[adNum];

    document.returnValue = true;

    }

    document.write('<a href="Javascript:linkurl()" target="_self">');

    document.write('<img style= "FILTER:revealTrans(duration=2,transition=20,border:1px solid #000000"  src="Javascript:nextAd()"  border=0 name=tupianrotator></a>');

    </script> 

    var tupian=new Array();

    var tupianlink=new Array();

    var adNu m=0; 

    tupianlink[0]="http://www.tx1766.com";

    tupian[0]="http://WPS.kingsoft.com/cte/images1/hylng.jpg";

    tupianlink[1]="http://www.tx1766.com";

    tupian[1]="http://WPS.kingsoft.com/cte/images1/quanjingg.jpg";

    tupianlink[2]="http://WPS.kingsoft.com/cte/guangzhou.shtml";

    tupian[2]="http://WPS.kingsoft.com/cte/images1/gkg.jpg";

    tupianlink[3]="http://WPS.kingsoft.com/cte/guangzhou.shtml";

    tupian[3]="http://WPS.kingsoft.com/cte/images1/twg.jpg";

    var currentimage=new Array();  

    for(i=1;i<=4;i++)

    {

    currentimage[i]=new Image();

    currentimage[i].src=tupian[i];

    }

    function setCo()

    {

    if (document.all)

    {

    tupianrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);

    tupianrotator.filters.revealTrans.apply();

    }

    }

    function playCo()

    {

    if (document.all)      tupianrotator.filters.revealTrans.play()

    }

    function nextAd()

    {

    if(adNum<tupian.length-1)adNum++ ;

    else adNum=0;

    setCo();

    document.images.tupianrotator.src=tupian[adNum];

    playCo(); 

    theTimer=setTimeout("nextAd()", 4000);

(责任编辑:admin)
------分隔线----------------------------