Results 1 to 3 of 3

Thread: Use of Text With Converyor Belt Script

  1. #1
    Join Date
    Feb 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Use of Text With Converyor Belt Script

    http://www.dynamicdrive.com/dynamici...rightslide.htm

    Was coming up short on this script

    Usually what I do with thumbnails is do a onmouseover effect, so when someone puts the mouse over the thumbnail it toggles a description on the page.

    That way I can center the description and change it as the guest hovers his mouse over various images.

    This is what I usually use to do that
    ---------->>>
    <html>
    <head>
    <script>

    function toggleDesc(text){
    var e = document.getElementById('DescriptionText');
    e.innerHTML = text;
    }

    function resetDesc(){
    var e = document.getElementById('DescriptionText');
    e.innerHTML = '';
    }

    </script>
    </head>
    <body>
    <a href="#" onMouseOver="toggleDesc('this is the new description')" onMouseOut="resetDesc()"><img src=INSERT2.jpg></a>
    <a href="#" onMouseOver="toggleDesc('This is a second description')" onMouseOut="resetDesc()"><img src=INSERT1.jpg></a>
    <br /><br />
    <span id="DescriptionText"></span>
    </body></html>
    <---------------End


    Now usually I've had no trouble doing this with other scripts. It's fairly simple. But this script above, STOPS the "conveyor belt" when you put the mouseover the image.

    I have tried to adapt the script listed into the "converyor belt" slideshow but can't get it right

    So I guess my first question is would it be possible to adapt that script into the "Converyor Belt" listed at the beginning

    And failing that would it be possible at all to do a mouseover on the "Converyor Belt" that would allow me to toggle descriptions

    Thanks for any help

  2. #2
    Join Date
    Feb 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If anyone else is interested I found the answer from another thread

    http://www.dynamicdrive.com/forums/s...light=conveyor

    jscheuer1 posted a way to do this and it ROCKS!!!!

    The only thing I have to add is when you write your text or captions you cannot use characters like an Apostraophe(').

    It will kill the conveyor belt.

    You have to use the html code &#39; instead.

    But the site owners should really incorporate jscheuer1's text into the main script

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

    Default

    you cannot use characters like an Apostraophe(').
    You can if you escape it (I.E. ' becomes \').
    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!

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
  •