By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,379 Members | 1,748 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,379 IT Pros & Developers. It's quick & easy.

show on mouseover

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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.