PDA

View Full Version : Image with tooltip position problem. Need help.



vikenk
12-15-2005, 02:49 PM
Hello all,

Script in question:

http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

I have this installed in a website I'm working on. The tool tip works as expected, except when the page is scrolled down. If I hover over a link with the page scrolled down, the tool tip shows up either off the screen or at the top of the screen almost out of view. This only seems to be happening in Internet Explorer. Mozilla/Netscape/Opera seem to render it fine. You can see an example here:

www.ssaes.org/test_site/calendar_2.htm

This doesn't happen on the demo page on DynamicDrive.com. There are other scripts on the page, but even after removing them it still happens. I've even tried moving it around in the code but so far I haven't had any luck.

By the way, my test system is Win XP Pro Sp2, IE 6. Firefox/Netscape/Opera are all latest and greatest versions.

I'd really like to use this tool tip script because it's the only one I've found that includes images.

Anyone have any ideas? Thanks.

Viken K.

ddadmin
12-16-2005, 01:09 AM
From what I can tell this is due to the doctype bug (your page has a strict doctype, which is throwing off the script). I'll get to updating this script in the next few days, and post an update here.

In the meantime, please note that you're currently in violation of our usage terms, by removing the credit notice of this script from the visible source. While it's OK to move our scripts to an external .js file, the credit should still remain visible in the page's (not script's) source:

<script src="ascript.js">

/*
Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
Copyright 2002 by Sharon Paine
Visit http://www.dynamicdrive.com for this script
*/

</script>

Please reinstate the credit notice inside your page.

Thanks

vikenk
12-16-2005, 04:12 AM
Thanks for the reply. I forgot about the notice. Thanks for pointing it out. I'll reinstall the notice ASAP. I really like this script and would like to implement it.

By the way, I have since moved to the XHTML Strict DOCType:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

You will update it and post it up in a few days? Should I just keep checking back or will you send me a "heads-up" notice?

Thanks.

Viken K.