Results 1 to 3 of 3

Thread: Fading images (setting the height)

  1. #1
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fading images (setting the height)

    Hi there,

    I've gone and added the fade image technique from http://www.dynamicdrive.com/dynamici...nslideshow.htm which fits into my website nicely... Just one small question, I've been able to give it the correct width though how do I set the height? It did explain I'm sure though I can't seem to work it out... sorry

    here's it in my website http://www.fuelimages.com/courses_new2.html

    many thank,
    elliot

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You've kind of missed the point on a number of things with this script. Where you have this:

    Code:
    				<script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
    new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
     
    </script>
    It should be:

    Code:
    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 429, 429, 0, 3000, 1)
     
    </script>
    And, where you have this:

    Code:
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["../img/WEBGRAPHIC1.jpg", "", ""] //plain image syntax
    fadeimages[1]=["../img/WEBGRAPHIC2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
    fadeimages[2]=["../img/WEBGRAPHIC1.jpg", "http://www.javascriptkit.com", "_blank"] //image with link and target syntax
     
    var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["../img/WEBGRAPHIC1.jpg", "", ""] //plain image syntax
    fadeimages[1]=["../img/WEBGRAPHIC2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
    fadeimages[2]=["../img/WEBGRAPHIC1.jpg", "http://www.javascriptkit.com", "_blank"] //image with link and target syntax
     
    var fadebgcolor="white"
     
    ////NO need to edit beyond here/////////////
    It should be:

    Code:
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["../img/WEBGRAPHIC1.jpg", "", ""] //plain image syntax
    fadeimages[1]=["../img/WEBGRAPHIC2.jpg", "", ""] //plain image syntax
     
    var fadebgcolor="white"
     
    ////NO need to edit beyond here/////////////
    BTW, anything that follows // to the end of the line is a comment/instructions.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John, thank you very much for your time

    All sorted now!!

    all the best,
    elliot

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
  •