471,122 Members | 1,172 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

show on mouseover

Hi,
this code works only in Mozilla (not in IE) - what is the correct,
uniwersal version of it ?

<div
onmouseover='getElementById("aaa").style.visibilit y="visible;"';
onmouseout='getElementById("aaa").style.visibility ="hidden;"';
test</div>


<div name="aaa">HIDDEN</div>

--
:. http://www.raf256.com/from-news .: ~~~~~~~l-.~~~~~~\ SSN 688
:.:. Rafal (at) Raf256 (dot) com .:.: ____| ]____, '--------
:. :. Rafal 'Raf256' Maj .: .: :-( * ) . . _
:.:.:.:. GG - 1175498 .:.:.:.: ,"----------"
Jul 20 '05 #1
1 5747
"Rafal 'Raf256' Maj" <sp**@raf256.com> writes:
this code works only in Mozilla (not in IE) - what is the correct,
uniwersal version of it ?


onmouseover='document.getElementById("aaa").style. visibility="visible;"';
onmouseout='document.getElementById("aaa").style.v isibility="hidden;"';
^^^^^^^^^

The function "getElementById" is a method of the document element, and
doesn't have to exist anywhere else.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by knoak | last post: by
11 posts views Thread by Robert Baer | last post: by
3 posts views Thread by Annette Acquaire | last post: by
23 posts views Thread by Schannah | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.