Advanced Search

Results 1 to 3 of 3

Thread: How to combine "Scrollable Menu Links" with "Image Thumbnail Viewer II"?

  1. #1
    Join Date
    Feb 2007
    Posts
    30
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to combine "Scrollable Menu Links" with "Image Thumbnail Viewer II"?

    1) Script Title: Scrollable Menu Links & Image Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rollerlink.htm &
    http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem: Hi, I want to combine the scripts of Scrollable Menu Links & Image Thumbnail Viewer II because I have many pictures and not much space to show all the thumbnails at ones. I got problems with the mouseover of the viewer. The links work but they open in a new window instead of opening in the div box of "loadarea". Does anybody find a way to manage that? The link:
    http://www.pleitegeier96.de/800x600/test.html

    I didn't change a thing in the referring js-file so you can find it at:
    http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    Thank you
    Immi

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,699
    Thanks
    43
    Thanked 3,132 Times in 3,096 Posts
    Blog Entries
    12

    Default

    Get rid of:

    Code:
    window.onload=fillup
    from the scrollable links script. And get rid of the defer attribute (red) from the script tag for the viewer:

    Code:
    <script type="text/javascript" src="thumbnailviewer2.js" defer="defer">
    
    /***********************************************
    * Image Thumbnail Viewer II script-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    
    </script>
    At the end of the viewer script change all this:

    Code:
    if (document.addEventListener) //Take advantage of "DOMContentLoaded" event in select Mozilla/ Opera browsers for faster init
    thumbnailviewer2.addEvent(document, function(){thumbnailviewer2.alreadyrunflag=1; thumbnailviewer2.init()}, "DOMContentLoaded") //Initialize script on page load
    else if (document.all && document.getElementsByTagName("a").length>0){ //Take advantage of "defer" attr inside SCRIPT tag in IE for instant init
    thumbnailviewer2.alreadyrunflag=1
    thumbnailviewer2.init()
    }
    thumbnailviewer2.addEvent(window, function(){if (!thumbnailviewer2.alreadyrunflag) thumbnailviewer2.init()}, "load") //Default init method: window.onload
    thumbnailviewer2.addEvent(window, function(){thumbnailviewer2.cleanup()}, "unload")
    to:

    Code:
    thumbnailviewer2.addEvent(window, function(){fillup();if (!thumbnailviewer2.alreadyrunflag) thumbnailviewer2.init()}, "load") //Default init method: window.onload
    thumbnailviewer2.addEvent(window, function(){thumbnailviewer2.cleanup()}, "unload")
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2007
    Posts
    30
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Thank you

    Wow, it works really great! But I didn't expect anything else from you jscheuer1.
    Thank you again.
    Immi

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
  •