SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    psycho
    Join Date
    May 2000
    Location
    London
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    currently i am using this to pop up a sub menu in javascript :

    <a href="javascript:void(null);" onmouseover="diver.style.visibility = 'visible';">


    <img src="http://64.176.203.16/images/releases.gif" width="142" height="16" border="0" alt="news.gif" name="image2"></a>

    <div id="diver" style="visibility: hidden; background: black; width: 75; height: 75; position: absolute; left: 50; top: 20;" onmouseout="this.style.visibility= 'hidden';">

    <br><center><font face="verdana" size="2" color="#FFFFFF">test</font></center>

    </div>

    ------------------------------------------
    This works in IE, but not in Netscape. I urgently need to fix this. Can anyone help me out please ?

    Thanks
    James

  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately, the Netscape way of doing this is significantly more complex, and is fraught with known bugs and limitations. Essentially, you'll need to create a JavaScript function that you use to make the menu visible/hidden, then call that function wherever you're setting the visibility now. The function will then have to determine which browser is viewing the page, and then use the appropriate code to perform the task.

    If this is something you see yourself doing regularly, I'd highly recommend you pick up a copy of "Dynamic HTML: The Definitive Reference" from O'Reilly. It's a great book that provides complete HTML, CSS, DOM, and JavaScript references as well as a 200 or so page discussion (with plenty of sample code) of cross-browser DHTML scripting that will teach you everything you need to produce these kinds of effects in a cross-browser fashion.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Bookmarks

Posting Permissions

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