Results 1 to 7 of 7

Thread: imgtip image problem

  1. #1
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default imgtip image problem

    1) tooltip v2.0

    2) http://www.dynamicdrive.com/dynamici...agetooltip.htm

    3) Have installed this script and whilst when i mouse over a text hyperlink, the description and bordered box appear, the image does not.

    All image files, js, css and htm files are in the same directory.

    However when I roll over the text link, the image box appears with the title but no image. I dont understand as all files are in the same directory.

    the line that calls the imgtip is


    Code:
    <dl><dt><a href="../files/machines/Lapmaster 15 OF 3R.pdf" target="_blank" rel="imgtip[0]">Lapmaster Model 15 Open Face</a></dt>
    the js file line is

    tooltips[0]=["AAA2.gif", "Lapmaster model 15", {background:"white", font:"bold 12px Arial"}]

    Just cant figure why the image cannot be found...?

  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

    Upper and lower case of the image files might be out of whack visa vis how they are in the code and how they actually are on the server. These must match exactly on the web. Like:

    AAAA2.gif

    is not the same as:

    aaaa2.gif

    And neither are the same as:

    AAAA2.GIF

    Or it could be some other problem.

    If you want more help:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ivybridge (12-09-2011)

  4. #3
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the tip, but I checked this as I have been caught before.

  5. #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

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ivybridge (12-09-2011)

  7. #5
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Code:
    http://www.lapmaster.co.uk/downloads/rollover.htm
    I have only been experimenting on the first two links.

  8. #6
    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

    Your copy of ddimgtooltip.js has been edited or has become corrupted. Here (highlighted line edit/corruption red):

    Code:
    	createtip:function($, tipid, tipinfo){
    		if ($('#'+tipid).length==0){ //if this tooltip doesn't exist yet
    			return $('<div id="' + tipid + '" class="ddimgtooltip" />').html(
    				'<div style="text-align:center"><img src="../../../' + tipinfo[0] + '" /></div>'
    				+ ((tipinfo[1])? '<div style="text-align:left; margin-top:5px">'+tipinfo[1]+'</div>' : '')
    				)
    			.css(tipinfo[2] || {})
    			.appendTo(document.body)
    		}
    		return null
    	},
    and perhaps other places.

    If you don't know how this happened and/or cannot fix it, get a fresh copy from the demo page. Edit it only in a text only editor like NotePad.
    - John
    ________________________

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

  9. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ivybridge (12-09-2011)

  10. #7
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Well spotted, thats sorted it nicely.

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
  •