www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to highlight words when scrolling over them, and when clicking it permanently

  1. #1
    Join Date
    Jul 2010
    Posts
    1

    How to highlight words when scrolling over them, and when clicking it permanently

    Hey! Thanks for helping. I'm new with Javascript but familiar with HTML.

    I'm working on a project where I want to...
    1) highlight a word when I roll-over it-- but it doesn't remain highlighted if i scroll off it.
    2) permanently highlight a word if I click on it.

    That will definitely help me with a large chunk of what I'm trying to do. I've searched everywhere and cannot find out exactly how to do it.

    Thanks for your time!

    Accurate270

  2. #2
    Join Date
    Mar 2010
    Posts
    2,803
    someone asked the same question recently in another thread.

    I think one of the solutions suggested was putting each word in a <span> and then use either css or javascript to highligt the span when a user hovered on it.

    There might have been other solutions as well after I last visited that thread.

    If you do a search of the forums, it should come up.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles