37 users online (1 members and 36 guests)  


  Results 1 to 4 of 4

Related

  1. Fade-effect    Forum: Javascript Forum
    Replies: 0
  2. Cycling through texts    Forum: Javascript Forum
    Replies: 5
  3. fade in image problem    Forum: HTML Forum
    Replies: 1
  4. Cycling Review WebSite For Sale    Forum: Websites For Sale
    Replies: 4
  5. A little help with OnMouseover fade in/out menu    Forum: Javascript Forum
    Replies: 6
  1. #1
    asatyss's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    8

    Question Cycling Banner Fade In Effect

    I am making a cycling banner and was wondering if there was a command that would make the new image fade in instead of just switching to the next image.

    Here are a few snippets of code so you can see what I am doing...



    <SCRIPT LANGUAGE="JavaScript">
    imgArray = new Array(3);
    imgArray[0] = new Image;
    imgArray[0].src = "images/Motto.jpg";
    imgArray[1] = new Image;
    imgArray[1].src = "images/Motto2.jpg";
    imgArray[2] = new Image;
    imgArray[2].src = "images/Motto3.jpg";
    index = 0;

    function cycle() {
    //change the motto banner atthe bottom of the page
    document.banner.src = imgArray[index].src;
    index++
    if (index == 3)
    {
    index = 0;
    }
    setTimeout("cycle()", 2000);
    return;
    }
    </SCRIPT>

    <body onLoad="cycle();">

    <img src="images/Motto.jpg" name="banner">

    </body>

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Try http://www.dynamicdrive.com . They have loads of image-type script there, maybe one will suit.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    asatyss's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    8
    Tried that, nothing quite met what I wanted.

    Thanks though.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Try this -

    http://tech.irt.org/articles/js059/

    Failing that, I know that Microsoft do a proprietry code (css) for MS6 called 'filter'. Its quite powerful. Try a search @ http://msdn.microsoft.com for it, but be aware it will only work for IE6
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread