Results 1 to 2 of 2

Thread: Looking for a album script

  1. #1
    Join Date
    Apr 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Looking for a album script

    I'm looking for a scrip which can chang pictures gradully,just like the PPT.Who can help me?I can't find it,Thank you very much!!!

  2. #2
    Join Date
    May 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    May be the following script will help you!

    <script language=JavaScript>

    <!--

    var imgUrl=new Array();

    var imgLink=new Array();

    var adNum=0;

    var jumpUrl="http://sports.tom.com/";



    imgLink[1]="http://www.nba.com/";

    imgLink[2]="http://china.nba.com/";


    // Here, you can add your own pictures
    imgUrl[1]="http://www.nba.com/media/NBASTOREHOME_MVP.gif";
    imgUrl[2]="http://www.nba.com/media/snash24seconds_060509.jpg";
    //imgUrl[3]="http://img.sports.tom.com/img/assets/200509/050927075953zt20050926107.jpg";


    var imgPre=new Array();

    var j=0;

    for (i=1;i<=imgUrl.length-1;i++) {

    if(imgLink[i]!="") {j++;}

    else {break;}

    }

    function playTran(){

    if (document.all)

    imgInit.filters.revealTrans.play();

    }

    var key=0;

    function nextAd(){

    if(adNum<j)adNum++ ;

    else adNum=1;

    if( key==0 ){key=1;}

    else if (document.all){

    imgInit.filters.revealTrans.Transition=6;

    imgInit.filters.revealTrans.apply();

    playTran();

    }

    document.images.imgInit.src=imgUrl[adNum];

    jumpUrl=imgLink[adNum];

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

    }

    function goUrl(){

    jumpTarget='_blank';

    if (jumpUrl != ''){

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

    else location.href=jumpUrl;

    }

    }

    //-->

    </script>



    <a href="javascript:goUrl()"><img style="FILTER:

    revealTrans(duration=2,transition=6);border:1 solid black" src="javascript:nextAd()" width=300

    border=0 name=imgInit height="210"></a>

    </body>

    </html>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •