Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22
Tooltips Problem
Poster: bobwill
Dated: Monday February 18 2008 - 13:32:50 GMT
I am running menu version 5.790 and tooltips.js file version 2.8 - October 11 2007
I have had the following line of code in my menu data file for a long time. I just noticed that it no longer works. The problem has to do with the escape characters in the code.
Code:
aI("text=Tip 1;offbgcolor=yellow;offcolor=black;tooltip=<b>Forming A New Team?<br>Need Help Or Information?<br><br>Look Under The \"State Information Menu!\"<br>Click On \"Request New Team Info.\";");
The above line will not be displayed when you mouseover. If I removed the escape characters and the double quotes then it will work.
Re: Tooltips Problem
Poster: Ruth
Dated: Tuesday February 19 2008 - 18:35:13 GMT
Hi Bob,
Try this. Normally you can use quote marks, but I think the \ are causing the problem, so with them you need to use the code for the quotes. At least that seems to be what's happening
Code:
aI("text=Tip 1;offbgcolor=yellow;offcolor=black;tooltip=<b>Forming A New Team?<br>Need Help Or Information?<br><br>Look Under The \"State Information Menu!\"<br>Click On \"Request New Team Info.\";");
Ruth
Re: Tooltips Problem
Poster: bobwill
Dated: Wednesday February 20 2008 - 1:29:50 GMT
Thanks, Ruth, but the code that I have been using has been place for over a year. All of a sudden it does not work. I do not think that the "\" is the problem. The escape character is a "\". I thin there something wrong with the latest release code. What I am saying is why all of a sudden this no longer works?????
Re: Tooltips Problem
Poster: Ruth
Dated: Wednesday February 20 2008 - 7:12:34 GMT
Hi Bob,
Those are questions you have to ask Milonic. Neither John nor I know anything about the programming itself and what might cause something like that to have worked before and now no longer work. I can only think that some change in the menu programming or in the tooltip module is what caused it.
Ruth
Re: Tooltips Problem
Poster: bobwill
Dated: Wednesday February 20 2008 - 13:20:32 GMT
Can you forward this on to the right people?
Re: Tooltips Problem
Poster: Andy
Dated: Wednesday February 20 2008 - 13:31:28 GMT
Try this:
Quote:
aI("text=Tip 1;offbgcolor=yellow;offcolor=black;tooltip=<b>Forming A New Team?<br>Need Help Or Information?<br><br>Look Under The \\\"State Information Menu!\\\"<br>Click On \\\"Request New Team Info.\\\";");
You need to double escape double quotes.
Re: Tooltips Problem
Poster: bobwill
Dated: Wednesday February 20 2008 - 14:07:46 GMT
OK, Andy that worked. This looks more like triple escape. So if I wanted to use single quotes would I then have
Code:
\\'
Any way thanks for your time.
Re: Tooltips Problem
Poster: bobwill
Dated: Wednesday February 20 2008 - 14:08:22 GMT
OK, Andy that worked. This looks more like triple escape. So if I wanted to use single quotes would I then have
Code:
\\'
Any way thanks for your time.