www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] Change content of a paragraph to a corresponding value in an array...?

  1. #1
    Join Date
    Apr 2011
    Location
    Seattle, WA
    Posts
    265

    resolved [RESOLVED] Change content of a paragraph to a corresponding value in an array...?

    Ok... I have this:
    HTML Code:
        <h3>Our Homes</h3>
        <div class="slideshowBox"><a href="javascript:gotoshow()"><img src="food1.jpg" name="slide" /></a></div>
        <p id="slideCaption" class="caption">Sawyer Crest | Maple Valley, WA</p>
        </div>
    <script>
    <!--
    
    //configure the paths of the images, plus corresponding target links
    slideshowimages("10.jpg","09.jpg","01.jpg","05.jpg")
    slideshowlinks("#","#","#","#")
    slideshowcaptions("Caption 1","Caption 2","Caption 3","Caption 4")
    
    //configure the speed of the slideshow, in miliseconds
    var slideshowspeed=2000
    
    var whichlink=0
    var whichimage=0
    function slideit(){
    if (!document.images)
    return
    document.images.slide.src=slideimages[whichimage].src
    whichlink=whichimage
    if (whichimage<slideimages.length-1)
    whichimage++
    else
    whichimage=0
    setTimeout("slideit()",slideshowspeed)
    }
    slideit()
    
    //-->
    </script>
    How do I take the "slideCaption" (ID) paragraph and make it work with the array slideshowcaptions("Caption 1","Caption 2","Caption 3","Caption 4") relating to the different images?

  2. #2
    Join Date
    Apr 2011
    Location
    Seattle, WA
    Posts
    265
    Ok nevermind on all of this. The script I got doesn't work in the first place.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles