-
Inline style in html for OnMouseOver
Date: Jan 20, 2011 | Categories: Html | Written By: Mike Ballan
Was asked today to make a link have a underline on it when rolled over but it had to be “Inline” and as most people with know its very easy to make this happen in normal CSS and common enough to just put in text-decoration:none; but i have never needed to make this happen inline, but with much internet searching i have found a solution..!
Tags: Links<a href=”#” style=”text-decoration:none;” onmouseover=”this.style.textDecoration =’underline’;” onmouseout=”this.style.textDecoration=’none’;”>Your Link</a>

September 15th, 2011 at 3:08 pm
THANK YOU FOR THIS! I am in the same situation. But how would you add a color to that? I have a different color on mouseover versus mouseout. I keep playing with the code, but can’t get it to work.