GJPG5
05-12-2005, 08:32 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
div a:hover { background-image: url("http://www.w3.org/Icons/valid-css.gif"); width: auto;}
div a { background-image: url("http://www.w3.org/Icons/valid-xhtml11.gif"); width: auto;}
-->
</style>
<title>CSS Rollover
</title>
</head>
<body>
<p>Hover your mouse over the W3C image to see it change; you also need a Transparent *.gif called: dotclear.gif</a>
<div>
<p>
<a href="#"><img src="dotclear.gif" width="88" height="31"
border="0" /></a>
</p>
</div>
</body>
</html>
I found this off of an old thread and am wondering if this is something that is still used to deal with CSS rollovers, also, if you have an good links to articles that discuss using css to create a rollover effect, please share.
graphic below shows a bit of what I am trying to accomplish. the main div is a holding space for a graphic, which basically is an image and then text aligned around it in that pattern, so to speak. I would like that "pinwheel" image to appear each time the cursor is moved over it, and am wondering if I can use that above block of code to achieve that.
My assumption of how to approach it is this, please tell me if my thinking is correct:
A> I need to create 4 classes attributed to selectors, ie a:/hover.1, a:/hover.2, etc.. so that it knows which layer to reveal when hovered over.
B>I need to create 9 separate DIV classes, 1 for the nest, 4 for the hidden pinwheels and the other 4 for the areas over the "buttons" that are actually part of the background graphic.
is this the correct way to think about it? also, am I using the terms right? is this even possible with CSS?
it seems mildly complex, but that is why I am a certified web newbie.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
div a:hover { background-image: url("http://www.w3.org/Icons/valid-css.gif"); width: auto;}
div a { background-image: url("http://www.w3.org/Icons/valid-xhtml11.gif"); width: auto;}
-->
</style>
<title>CSS Rollover
</title>
</head>
<body>
<p>Hover your mouse over the W3C image to see it change; you also need a Transparent *.gif called: dotclear.gif</a>
<div>
<p>
<a href="#"><img src="dotclear.gif" width="88" height="31"
border="0" /></a>
</p>
</div>
</body>
</html>
I found this off of an old thread and am wondering if this is something that is still used to deal with CSS rollovers, also, if you have an good links to articles that discuss using css to create a rollover effect, please share.
graphic below shows a bit of what I am trying to accomplish. the main div is a holding space for a graphic, which basically is an image and then text aligned around it in that pattern, so to speak. I would like that "pinwheel" image to appear each time the cursor is moved over it, and am wondering if I can use that above block of code to achieve that.
My assumption of how to approach it is this, please tell me if my thinking is correct:
A> I need to create 4 classes attributed to selectors, ie a:/hover.1, a:/hover.2, etc.. so that it knows which layer to reveal when hovered over.
B>I need to create 9 separate DIV classes, 1 for the nest, 4 for the hidden pinwheels and the other 4 for the areas over the "buttons" that are actually part of the background graphic.
is this the correct way to think about it? also, am I using the terms right? is this even possible with CSS?
it seems mildly complex, but that is why I am a certified web newbie.