Results 1 to 3 of 3

Thread: Displaying text on Mouseover

  1. #1
    Join Date
    Jun 2005
    Location
    San Jose, CA (home); Rochester, NY (school)
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Displaying text on Mouseover

    Hello again,

    The question I have today is about something I'm not entirely sure is possible..and if it is I have absolutely no idea how to do it. So I'm appealing again to you javascript experts.

    What I'd like to do on the page I'm currently working on is display a description of a product type on a mouseover. More specifically, the page will be the starting point for customers to look at various styles of cabinet doors. The names of the styles don't tell you much, but screen real estate is limited because we're trying to avoid scrolling on the site (don't ask). So I want to display a short paragraph about each type next to the menu, but only on the mouseover, so that there is only one paragraph shown at a time.

    The best code I've found for this so far is featured here, but it apparently will not work in older browsers and will display ALL text fields at once, which of course would be a complete mess.

    So, is there a good way to tell browsers that can't read the code to ignore it completely? Or is there a better way to do this to begin with?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I recommend http://www.dynamicdrive.com/dynamici...tchcontent.htm.
    Use onmouseover rather than onclick, and set collapseprevious to yes.
    Apparently, it degrades fully in older browsers.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Twey recommended a good script,

    I like this one,because I'm lazy haha, you can customize of course do a full menu if you wish, as well as pick your colours etc.

    http://www.dynamicdrive.com/dynamicindex5/popinfo2.htm

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
  •