Results 1 to 4 of 4

Thread: Tooltip with image script

  1. #1
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Tooltip with image script

    1) Script Title: Image w/ description tooltip

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

    3) Describe problem:

    Hello All:

    At this link, URL removed by admin as requested I am trying to get this script to show the enlarged image of the image you mouse over.

    I only have it set to the first card called Angels and for some reason it is not showing anything, nor am I seeing any js errors in FireFox.

    in the head of that document I have it calling a js file instead of it in the head part itself. I have tried both ways by the way.

    Any help would be much appreciated.

    Paul
    Last edited by ddadmin; 12-12-2007 at 10:20 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Onload script conflict. Remove this from the tool tip script:

    Code:
    window.onload = initTip;
    Make your body tag like so:

    Code:
    <body bgcolor="#E8E8E8" text="#000000" link="#003399" onLoad="initTip();MM_preloadImages('images/homeb.gif','images/productsb.gif','images/orderingb.gif','images/catalogb.gif','images/aboutb.gif','images/contactb.gif','images/copyrightb.gif','images/homea.gif','images/productsa.gif','images/orderinga.gif','images/cataloga.gif','images/abouta.gif','images/contacta.gif','images/copyrighta.gif')">
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default WHOO Hoooooo

    Thanks John......

    Works great now! You are the best.

    Is there a way I would have caught that or would I have to have been a JS Master?


  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't think it requires being a 'JS Master'. It does require more knowledge of javascript than just cutting and pasting. It is something one should look for whenever using more than one javascript on a page. Though not all scripts require an onload event, there can be only one onload event. When there are more than one, they must be combined or made to co-exist somehow.
    - John
    ________________________

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

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
  •