Results 1 to 5 of 5

Thread: slide show

  1. #1
    Join Date
    May 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default slide show

    Hi

    I have a slideshow, I want to add html text next to the image and alt description to the image, is it possible need help


    thanks
    ravi

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default the code

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript">

    var photos=new Array()
    var photoslink=new Array()
    var slidedescs=new Array()
    var which=0

    //define images. You can have as many as you want:
    photos[0]="cake.jpg"
    photos[1]="hurry.jpg"
    photos[2]="player.jpg"
    photos[3]="watch.jpg"

    //Specify whether images should be linked or not (1=linked)
    var linkornot=1

    //Set corresponding URLs, width and height for links in a new window
    //for each of above images. Define ONLY if variable linkornot equals "1"
    photoslink[0]=["http://www.google.com/"/*, 300, 250*/]
    photoslink[1]=["http://www.yahoo.com/"/*, 500, 100*/]
    photoslink[2]=["http://www.dynamicdrive.com/"/*, 375, 200*/]


    slidedescs[0]=["rediff"]
    //do NOT edit pass this line

    var preloadedimages=new Array()
    for (i=0;i<photos.length;i++){
    preloadedimages[i]=new Image()
    preloadedimages[i].src=photos[i]
    }

    function applyeffect(){
    if (document.all && photoslider.slidedescs){
    //photoslider.filters[0].Stop()
    //photoslider.filters[0].Apply()
    }
    }

    /*function playeffect(){
    if (document.all && photoslider.filters)
    photoslider.filters[0].Play();
    }

    function keeptrack(){
    window.status="Image "+(which+1)+" of "+photos.length
    }*/

    function backward(){
    clearTimeout(moving);
    which=which>0? which-1 : photos.length-1
    applyeffect()
    document.images.photoslider.src=photos[which]
    //playeffect()
    //keeptrack()
    moving=setTimeout("forward2()",6000)
    }

    function forward(){
    clearTimeout(moving);
    which=which<photos.length-1? which+1 : 0
    applyeffect()
    document.images.photoslider.src=photos[which]
    //playeffect()
    //keeptrack()
    moving=setTimeout("forward2()",6000)
    }

    function forward2(){
    clearTimeout(moving);
    which=which<photos.length-1? which+1 : 0
    applyeffect()
    document.images.photoslider.src=photos[which]
    //playeffect()
    //keeptrack()
    moving=setTimeout("forward2()",10000)
    }

    function transport(){
    window.location=photoslink[which]
    /*window.open(photoslink[which][0],'','width='+photoslink[which][1]+', height='+photoslink[which][2])*/
    }

    function move(){
    setTimeout("",20);
    moving=setTimeout("forward2()",10000)
    }


    onload=move;
    //desc.innerHTML = "<span id=\"imagedesc\" style=\"font-weight:normal;\">" + slidedescs[0]

    </script>
    </head>
    <body>
    <div style="border-style:solid; border-color:#999999; border-width:1px; width:345px; ">
    <script>
    if (linkornot==1)
    document.write('<a href="javascript:transport()">')
    document.write('<img style="filter:none;" src="'+photos[0]+'" name="photoslider" border=0>')
    if (linkornot==1)
    document.write('</a>')
    </script>
    </div>
    <div style="background-color:#999999; width:347px; "><span><a href="#" onClick="backward();return false">Previous Slide</a></span>
    <span style="padding-left:190px; "><a href="#" onClick="forward();return false">Next Slide</a></span>
    </div>

    </body>
    </html>


    above is my code to this code I want to add html text next to image and alt display
    please help me

    thanks
    ravi

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Which DD script is this? I see no credit.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    May 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default john provided

    hi

    John provided me that script and i did some modifications in that

    thanks
    ravi

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
  •