View Full Version : weird problem - works in FF, but no in IE

12-20-2006, 08:45 PM
I am using BoxOver script (http://boxover.swazz.org) and have done a few things on my own to make it work like I want it to.

The way this script works is it automatically takes the title tag from a tag and then converts the internal parts of this to a tooltip. I have edited the code so instead of just inputting information into the title tag I have it go out to an XML file and pull the definition of the word and then return that information to the title so it will take that definition and put it into the tooltip. Here is my code:

//the span function
<span onMouseOver="hover(this, true);" onMouseOut="hover(firstCap(this, false));" class="word" title="">word</span>

//within the hover function
oThis.title = "header=[" + tmp_head + "] body=[" + tmp_body + "] cssbody=[body1] cssheader=[head1] fade=[on] fadespeed=[.05] fixedrely=[-1] fixedrelx=[-3]";Now I know I dont have any problem getting the information from the XML file for one very interesting reason, which has stumped me. When I hover over each of the spans it does a standard tooltip when you hover over something with a title tag, and has the information "header=[correct word] body=[correct definition]... etc..."

This tells me that it is going out, getting the data just fine and also returning this information to the title tag of the span, otherwise it would not create that tooltip with that information in it.

To ensure the script works fine in IE and via the way I want it to, i have inserted a span as follows into the code for testing:

<span title="header=[Title] body=[Body] cssbody=[body1] cssheader=[head1] fade=[on] fadespeed=[.05] fixedrely=[-1] fixedrelx=[-3]">test</span>
This code renders the exact code I want and pops up the tooltip just the way I want.

This code also works in firefox and returns the popup I want upon hover over on both the static code (1 above), as well as using the script to input the information.

So I dont understand why it would output this information to the title field, but not create the popup like it does in firefox. Any help would be great.

12-20-2006, 09:35 PM
well "thanks" mike...