View Full Version : this.style.background no-repeat
05-30-2005, 10:32 AM
I am using >>>
how can i add a no-repat and 50% 50% position ?
05-30-2005, 10:37 AM
05-30-2005, 10:28 PM
you mean this code :
onmouseover="this.style.background='url(btn_over.gif) no-repeat 50% 50%';" onmouseout="this.style.background='url(btn.gif) no-repeat 50% 50%';"
should work ?
05-31-2005, 05:32 AM
background:url(btn_over.gif) no-repeat 50% 50%;
background:url(btn.gif) no-repeat 50% 50%;
You can use :hover and :active pseudo-classes to any element except in IE where those are only applicable to links. But there's a fix (http://www.vladdy.net/demos/iepseudoclassesfix.html) for IE without putting onmouseover and onmouseout handlers to each element.
05-31-2005, 08:02 PM
CSS is not a problem
06-01-2005, 08:07 AM
It's your choice, I'm just suggesting an easier and better alternative solution.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.