HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 18th, 2000, 04:51 PM
merkinmuffley's Avatar
merkinmuffley merkinmuffley is offline
film at 11
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Portland, OR
Posts: 413 merkinmuffley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
i have a simple layer with some text links that appears on rollover of an area. i used the following code:

<div id="test" .. onMouseout="hide('test');">
<table>
<tr><td>(some links)</td></tr>
</table>

where hide() is a javascript function that sets the visibility of test to "hidden". when the layer becomes visible, the mouse pointer is already inside it. unfortunately, when i move the pointer over any of the links, the layer immediately disappears. why?

Reply With Quote
  #2  
Old August 18th, 2000, 06:31 PM
sellenit sellenit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 5 sellenit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I suppose u need both - onmouseover and onmouseout to run the script properly.
Check my post "layer visibility in Netscape?"
I have written an explicit code for an IE layer that appears when onmouseover and hides when onmouseout. Take a look.

Reply With Quote
  #3  
Old August 18th, 2000, 07:04 PM
merkinmuffley's Avatar
merkinmuffley merkinmuffley is offline
film at 11
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Portland, OR
Posts: 413 merkinmuffley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
thanks... you are right, i needed both those attributes to make it work correctly. actually, i had to tell it to:
-show the layer onMouseover of the hyperlink.
-show the layer onMouseover of the layer itself!!

that second one really surprises me. it seems that moving from the layer to the hyperlink and moving back are both events of some sort that redraw the layer. i don't understand enough of what's happening here to explain it clearly. can somebody point me to a good book or other source for info on this type of thing?

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by sellenit:
I suppose u need both - onmouseover and onmouseout to run the script properly.
Check my post "layer visibility in Netscape?"
I have written an explicit code for an IE layer that appears when onmouseover and hides when onmouseout. Take a look.
[/quote]


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > hiding a DIV layer w/ onMouseout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway