Results 1 to 3 of 3

Thread: onMouseover not working in NS6.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537
    heres the code:
    ***********
    <a href="#"onMouseOver="showMenu('NorthLayer')>
    ***********
    function showMenu(menuName)

    if(ns)
    {

    eval("document" + layerRef + "['" + menuName + "']" + styleRef + ".visibility = '" + showRef + "'");

    *******
    this is where the layerRef,styleRef,showRef come from

    if (ns){ // for netscape
    layerRef = ".getElementById";
    styleRef = ".style";
    showRef = "visible";
    hideRef = "hidden";
    }

    ********
    in IE this(the ie version,very simmalar to this) I get dynamic dropdown menus

    in Netscape I get nothing. this is Netscape 6 I am trying to get this to work in.

    I can get an alert to show up from the showMenu function so I know I am reaching it, but my layer just won't show up..

    any suggestions?

    thanks
    pnj

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    I think this is your problem:

    styleRef = ".style";


    I do not believe Netscape uses 'style'.

    Take the "." out of ".visibility"

    change styleRef = ".";

    In your IE code use styleRef = ".style."; with a "." on either side of style.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537
    well,
    I sortof got it to work, the code now looks like this

    eval("document.getElementById('NorthLayer').style.left = '" + position + "px" +"'");

    the problem I am having now is the images don't allways 'show' upon Mouseover and Mouseoff.

    I meen, they swap just fine then, randomly they will just 'disapear'.
    I don't get it


    thanks for your help
    pnj

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width