SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change text on mouseover in NS4?

    Hi,

    I found a js that would change the text in a given area of the page when I mouseover a link in IE. I even found one that says it also works in NS6. But - can it be done in NS4??

    (My current home page - being redesigned! - is at http://www.onlineClarity.co.uk. It uses the IE-and-not-NS mouseover link description.)

    Is there any other, cross-browser way to do this (on an html page)?

    Thank you for any help!
    I Ching with Clarity
    http://www.onlineClarity.co.uk

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm 99.9% sure you are trying to solve an un-solvable problem.

    Maybe someone here knows better, but I'm pretty sure you can't get text-rollovers in NS4.x
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    change the visibility on them,

    ie

    Code:
    function hide_show(what, obj)
    {
      if (document.all)
      {
        document.all[obj].style.visibility = 'visible';
      }
      else if (document.getElementById)
      {
        document.getElementById[obj].style.visibility = 'visible';
      }
      else if (document.layer)
      {
        document.layer[obj].style.visibility = 'visible';
      }
      else alert('just get a new browser lol')
    }
    try something along them lines instead.

  4. #4
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Andrew! I appreciate it. The only snag is that I know no javascript at all - I just cut and paste. (I can agree with the 'alert', though. The number of things that won't work in N********...)

    So... could you possibly tell me how I'd use this? I guess what you wrote goes in the <head></head>, so then what do I put for the links, and what goes in the area for the text? (Think 'clueless'. )

    I'd like to have several links with descriptions appearing in one table cell, and a default text there. Can it be done?Or should I just ignore the wretched browser?
    I Ching with Clarity
    http://www.onlineClarity.co.uk

  5. #5
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Hilary
    The only snag is that I know no javascript at all - I just cut and paste.
    (that's quite a "snag" !!)
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


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
  •