|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Mouseover triggered before page load complete.
I have an application that contains an image map with mouseover and mouseout events tied to each area of the map. The mouseover event displays a positioned text element (inside div tags) that provides a description of area of the image map. In some cases when the page is loading, it is possible for the mouseover event to be triggered before the positioned and hidden text element is actually loaded (or so it appears). When this happens, an error occurs informing the user that the object to display cannot be found. I tried moving the div tags to load before the image, but this seems to cause problems for Netscape when rendering a <select> tag (it displays the text as a paragraph, not a listbox). Any suggestions on how to prevent this error? Thanks for any help. |
|
#2
|
|||
|
|||
|
Re: Mouseover triggered before page load complete.
"Will" <wvburke@lava.net> wrote: > >I have an application that contains an image map with mouseover and mouseout >events tied to each area of the map. The mouseover event displays a positioned >text element (inside div tags) that provides a description of area of the >image map. In some cases when the page is loading, it is possible for the >mouseover event to be triggered before the positioned and hidden text element >is actually loaded (or so it appears). When this happens, an error occurs >informing the user that the object to display cannot be found. > >I tried moving the div tags to load before the image, but this seems to cause >problems for Netscape when rendering a <select> tag (it displays the text >as a paragraph, not a listbox). Any suggestions on how to prevent this error? > >Thanks for any help. You can replace the alt property of the image when the events fires |
|
#3
|
|||
|
|||
|
Re: Mouseover triggered before page load complete.
Why don't you try attaching your event handlers after the page is loaded? "Will" <wvburke@lava.net> wrote: > >I have an application that contains an image map with mouseover and mouseout >events tied to each area of the map. The mouseover event displays a positioned >text element (inside div tags) that provides a description of area of the >image map. In some cases when the page is loading, it is possible for the >mouseover event to be triggered before the positioned and hidden text element >is actually loaded (or so it appears). When this happens, an error occurs >informing the user that the object to display cannot be found. > >I tried moving the div tags to load before the image, but this seems to cause >problems for Netscape when rendering a <select> tag (it displays the text >as a paragraph, not a listbox). Any suggestions on how to prevent this error? > >Thanks for any help. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|