-
onMouseover .....
Ya, Everyone knows the On Mouseover image scripts where theres like a man on a bike you put your cursor over it, And it changes to a woman or something, Like on the habbo buttons
But its is possible with Divs?
Like <div id="button_off">Home</div>
But on MouseOver
<div id="button_on">Home</div>
And on MouseOut back to:
<div id="button_off">Home</div>
++++Rep Ty :)
-
Ermmm... could i see a preview of what your trying to do?
-
yes there is.
duplicate the div in the CSS and add :hover to one of them and change some stuff
-
Hmm
So like
#button {
background-image: url (images/button.png)
Then what!?, How do i set the background of the div to change when hovered
Like...
background-image:hover: (images/button2.png) ?
-
#button:hover {
background-image: url (images/buttonhover.png);
}
-
Yes But...
So
<div id="button">Hi</div>
thats all i need and #button:hover will also relate to that?
-
yes .
try it and if it doesnt work, show me a link
and your sig should be sign, not sing, (unless its meant to be lol)
-
Lol i know!
#button {
background-color: #EAF7FB;
width: 20px;
float: center;
margin-right: 90px;
text-align: left;
margin-top: 0px;
font-size: 10px;
font-face: Verdana;
font-weight: bold;
font-decoration: None;
font-color: Black;
border-style: solid;
border-color: #000000;
border-width: 1px;
}
#button:hover {
background-color: #ffffff;
width: 90px;
float: center;
margin-right: 90px;
text-align: left;
margin-top: 0px;
font-size: 10px;
font-face: Verdana;
font-weight: bold;
font-decoration: None;
font-color: Black;
border-style: solid;
border-color: #000000;
border-width: 1px;
}
I tried that, But i hover over and nothing!
-
hmm, do you have a link. it may be playing up because of the widths
-
No its currently passworded
Isn't there a way of like using the image script and then replace the Images with Divs?