Welcome visitor
* Login
* Register
It is currently September 15th, 2019, 11:59 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  Highlighting with javascript
PostPosted: February 11th, 2009, 10:38 pm 

Posts: 117
Hi,
how would you highlight an specific content, lets say, to help the user keep focused on what he/she is reading?


Top
 Profile  
 
  Re: Highlighting with javascript--Underline
PostPosted: February 11th, 2009, 10:46 pm 

Posts: 55
You can do it using only css, and this will work even when the user have the javascript disabled.

Divide your content in paragraphs then add this to the styles section or sheet.
p:hover 
{
   text-decoration: underline;
}

or change the color
p:hover 
{
   color: #ff0000;
}


Top
 Profile  
 
  Re: Highlighting with javascript
PostPosted: February 11th, 2009, 10:55 pm 
User avatar

Posts: 137
also you can control that using javascript with the onMouseOver and OnMouseOut...
...and you can apply an special and different style for each paragraph using id's and/or classes and/or names..
good luck


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron