Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Highlighting Text on mouse-over
Old 06-01-2005, 04:33 PM Highlighting Text on mouse-over
Wardo's Avatar
Junior Talker

Posts: 2
Location: UK, Scotland.
Trades: 0
Im asking how you highlight text on a mouse-over, lets say, if i have a green hyperlink and put my mouse over it, i want it to go white, how can i do this~?
Wardo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-01-2005, 04:53 PM
Zeal's Avatar
Average Talker

Posts: 17
Location: Texas
Trades: 0
Usually, you do it in a style tag, like this:
Code:
<style>
a:link { text-decoration: none; color: green; }
a:hover { text-decoration: underline; color: white; }
a:visited { text-decoration: none; color: blue; }
a:active { text-decoration: none; color: black; }
</style>
a:link is for a standard link, that hasn't been clicked on. When you mouseover it, it goes to the a:hover state which will make it underlined, and the color will change to white. Now, when you click on it, you'll see it flash black, and then when you go back to the page and refresh it, it'll appear blue. Experiment with it a little bit and you'll get some cool effects.
Zeal is offline
Reply With Quote
View Public Profile Visit Zeal's homepage!
 
Old 06-01-2005, 04:56 PM
Zeal's Avatar
Average Talker

Posts: 17
Location: Texas
Trades: 0
Er...You're talking about just regular text? You can do this with javascript...

Code:
<b onMouseOver="this.style.color = ' white';" onMouseOut="this.style.color = 'green';">Da changing Sentence</b>
Zeal is offline
Reply With Quote
View Public Profile Visit Zeal's homepage!
 
Reply     « Reply to Highlighting Text on mouse-over
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29642 seconds with 12 queries