PDA

View Full Version : Close button or link at top AND base of wz tooltip div



johnwboyd
08-28-2008, 10:07 AM
I would like to add a Close link to the base of the tooltip div on this page: http://www.mmcc-pasig.org/singles.htm (hover "Disciples Upload Your Photos" link on right column)

Tooltip code and instructions here:
http://www.walterzorn.com/tooltip/tooltip_e.htm

It looks and works great in IE but in FF the close X top right is just a light black X.

codeexploiter
08-28-2008, 10:48 AM
Open your page http://www.mmcc-pasig.org/singles.htm and comment the following mentioned code in it:


<!-- <span id="WzClOsE" style="background: rgb(153, 0, 0) none repeat scroll 0% 0%; position: relative; left: 2px; padding: 5px; cursor: pointer; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(255, 255, 255); font-family: verdana; font-size: 12px; font-weight: bold;" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">Close</span> -->

johnwboyd
08-28-2008, 12:19 PM
Where do I put that code? I tried putting it several places and it's still the same in FF. Did I miss something?

Thanks.

codeexploiter
08-28-2008, 12:25 PM
Check your 'singles.htm' or other HTML pages in which you use tooltips. and check for the following code


<span id="WzClOsE" style="background: rgb(153, 0, 0) none repeat scroll 0% 0%; position: relative; left: 2px; padding: 5px; cursor: pointer; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(255, 255, 255); font-family: verdana; font-size: 12px; font-weight: bold;" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">Close</span>

And comment that code completely. Later if you want you can remove that. First do it in one page and check if it is working then do the same thing in other pages too.

johnwboyd
08-28-2008, 01:04 PM
I still don't get what you're talking about sorry. Did you test that it worked with the red box and white X for top right of window in FF?

codeexploiter
08-29-2008, 04:37 AM
I still don't get what you're talking about sorry. Did you test that it worked with the red box and white X for top right of window in FF?

Open your wz_tooltip.js file and go to tt_MkTipSubDivs function and replace the following line


+ '<span id="WzClOsE" style="position:relative;left:2px;padding-left:2px;padding-right:2px;'

with this one


+ '<span id="WzClOsE" style="position:relative;left:2px;padding-left:2px;padding-right:2px;background-color:#8F0000;color:#fff;font-weight:bold;'

In FF it works correctly.

Hope this helps.

johnwboyd
08-29-2008, 08:04 AM
Aaahaaaa! Now I see what you're talking about and it works! One last thing if we can get it to hover like before in FF: http://negroschristianchurch.info/index.htm

Thanks! : )