Slideshow in Javascript..

Discussion in 'JavaScript' started by toughguy, Feb 3, 2007.

  1. #1
    Hi,
    I managed to implement a slide show in java script, but it want the a comment to be displayed under each image in the slide show, say something like Image 1 for 1st image, image 2 for 2nd image like that.

    I am clue less how i can do that..

    Can i use any element like text or some thing and change any of its properties to acheive this..

    Thanks a lot..

    Regards,
     
    toughguy, Feb 3, 2007 IP
  2. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    hmm...since you managed the slide-show then it means that you understand (or at least the implication is there..) arrays. Given that- create an array with text for each index of the array that holds the images. Then when you carry out your image change function- you can also change your txt.

    something like document.getElementById('sldShowTxt').innerText = sldShowTxtArray;

    or something like that

    PS: Do an appropriate google search to adjust the innerText in FireFox (innerText only works in IE)
     
    datropics, Feb 5, 2007 IP
  3. toughguy

    toughguy Well-Known Member

    Messages:
    846
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Hi,
    Thanks a lot for your reply.. Will find out..

    Regards,
     
    toughguy, Feb 5, 2007 IP