Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java script in IE4

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
Does anybody know how well IE 4.0 is supposed to support javascript?

I have the following script on a page:

Code:
function gettip(txt)
			{
			tip.innerHTML=txt
			}
	
			function reset()
			{
			tip.innerHTML=""
			}

along with this html code:

Code:
      		<a href=&quot;is_main_4p0.html&quot;  class=&quot;nav&quot; onmouseover=&quot;gettip('Back to the main page')&quot; onmouseout=&quot;reset()&quot;>Main</a>
     

      
      		<a href=&quot;is_staff.html&quot; class=&quot;nav&quot; onmouseover=&quot;gettip('Some general information about our staff')&quot; onmouseout=&quot;reset()&quot;>About Our Staff</a>
      
		      		
			<a href=&quot;is_guide.html&quot; class=&quot;nav&quot; onmouseover=&quot;gettip('These are some guides to computer systems and procedures')&quot; onmouseout=&quot;reset()&quot;>A guide to IS</a>

There is a little box below the menu that displays the &quot;tip&quot; which is a description of where the link goes.

The problem is that when i view the page in IE 4.0 it looks ok but the mouseover doesn't work right. When you put the mouse over the link, the tip appears for a fraction of a second and then it disappears. If you twitch the mouse while the cursor is still over the link, the tip will reappear and then quickly disappear again.

What could be causing this problem?
 
from msdn :
onmouseenter Fires when the user moves the mouse pointer into the object.
onmouseleave Fires when the user moves the mouse pointer outside the boundaries of the object.
onmousemove Fires when the user moves the mouse over the object.
onmouseout Fires when the user moves the mouse pointer outside the boundaries of the object.
onmouseover Fires when the user moves the mouse pointer into the object.


not very helpful, but i would try :
onmouseenter instead of onmouseover (just to check)
onmouseleave instead of onmouseout (just to check)
combinations of those ...

and also, i would add onmousemove (to do the same as onmouseover)
 
hey isa, NEVER use that orange color again! It hurts my eyes trying to see it on the blue background! X-) Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
yes but i love when your eyes are moving like this ;)

i won't do it again ! i promise !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top