Forum Moderators: open

Message Too Old, No Replies

On Mouseover 'tooltip' - that doesnt use window.onload

or body.onload! - Please help!

         

Harley_m

7:37 pm on Feb 16, 2004 (gmt 0)

10+ Year Member



Urgh - im having nightmares here - can someone please help me!?

ok - I have an asp.net page (nevermind that) - which includes a DHTML/JS navigation panel, which is placed within the page by a usercontrol (and is therefore a separate page) - I also have some nifty JS to make an image, upon mouseover, display a little tooltip style text block next to the relevent icon...

the problem is that both the panelbar navigation and the text JS script want to place two separate things to the onload event ='s one of them (the navigation panel) - not working.

now normally I could combine both of these in the same body onload tag and all would be fine - but since I have no easy control over what the nav panel puts in - im looking for a way to execute without having to have this line of code from it :

if (bw.bw) onload = changeTextInit

I want to just 'do it anyway'

is this at all possible? Can you see any way round it - or is there another way of making text appear at a mouseover event without requiring a change of onload?

Thanks SO much,

Harley

Purple Martin

9:42 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't understand why you think it's necessary to use the onLoad event for a mouseover. Maybe I'm missing something about what you're trying to do.

A tooltip can be made to appear by using the onMouseOver event of the element that the cursor is hovering over. There's normally no need to use the body onLoad at all.

Harley_m

11:24 am on Feb 17, 2004 (gmt 0)

10+ Year Member



these 'tooltips' appear within the body of the page...

can anyone point me to the code required to : On a simple mouseover of an image icon - text appears in any label/panel/table - which doesnt require any silly onload calls - because, as you say - there should be no need for them...

Thanks so much,

Harley