show on mouseover

Discussion in 'Javascript' started by Rafal 'Raf256' Maj, Jun 26, 2003.

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

    <div
    onmouseover='getElementById("aaa").style.visibility="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 .:.:.:.: ,"----------"
     
    Rafal 'Raf256' Maj, Jun 26, 2003
    #1
    1. Advertising

  2. "Rafal 'Raf256' Maj" <> 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.visibility="hidden;"';
    ^^^^^^^^^

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

    /L
    --
    Lasse Reichstein Nielsen -
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, Jun 27, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt

    TO show or NOT to show

    Matt, May 2, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    397
  2. Richard
    Replies:
    0
    Views:
    542
    Richard
    Sep 5, 2003
  3. Disco Octopus

    to show image or to show flash

    Disco Octopus, May 13, 2004, in forum: HTML
    Replies:
    7
    Views:
    2,438
    Toby A Inkster
    May 14, 2004
  4. Anthony Jones
    Replies:
    0
    Views:
    688
    Anthony Jones
    Feb 17, 2009
  5. Csaba  Gabor

    Show/Hide of TD upon MouseOver/Out

    Csaba Gabor, Aug 19, 2008, in forum: Javascript
    Replies:
    0
    Views:
    330
    Csaba Gabor
    Aug 19, 2008
Loading...

Share This Page