Results 1 to 6 of 6

Thread: Fade In slide show

  1. #1
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Fade In slide show

    Fade-in slideshow
    Author: Dynamic Drive

    I am having trouble figuring out how to put up alternate words for pictures.
    I do know that it is ALT=" " for HTML
    I am trying to put up that it is my child's pictures in the java script. So people that have graphics disable will be able to tell what is there.

    Link to page
    http://ourchildren.angelcities.com/Rachel's%20Ultrasound.html

    Another question:
    Is there some way that I can fix it so that an image can not be taken off of the site?

  2. #2
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

  3. #3
    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

    This script was not designed for easy insertion of alt attributes for the images. Since you only seem to want one alt text for the entire show, this can be done fairly easily. Find this line in the script:
    Code:
    tempcontainer+='<img src="'+fadeimages[i][0]+'" border="0">'
    add to it so it looks like this:
    Code:
    tempcontainer+='<img src="'+fadeimages[i][0]+'" border="0" alt="My Child\'s Ultrasound Images">'
    The added part is in green and red. The red part can be whatever alt text you prefer, just be aware that if you use a single quote (') it must be escaped with a downward slash (\) as in my example's use of Child\'s for Child's.

    There is no way to prevent others from copying your images.
    - John
    ________________________

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

  4. #4
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much John. It worked perfectly.

  5. #5
    Join Date
    Jun 2005
    Location
    Sydney, Australia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question I also need help!

    I need help aswell with the Fade In Slide Show....

    1. I would like to set my images to be centred rather than been shown on the left of the page - how do i do that?

    2. I have alot of white space under my images - how do i get rid of that?

    I am using Dreamweaver MX 2004

    Thank you in advance

  6. #6
    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

    To center the slideshow, put it inside a centered element. The easiest way to do that is:

    <center>
    slideshow goes here
    </center>

    As for white space, it depends on what is causing it. If the images themselves have white space, crop them. If it is your layout, removing extra <br>'s, empty div's, paragraphs and tables from beneath the slideshow, if any, will help. It really depends upon why the white space is there in the first place.
    - John
    ________________________

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

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
  •