anyone got a good mouseover image swap technique that uses onmouseover
and onfocus ?
IMO the use of onmouseover and onfocus _excludes_ 'accessible'.
If it is a menu like thingy, it could be something like:
markup:
<div id="preload">
<img src="link.png">
<img src="visited.png">
<img src="focus.png">
<img src="hover.png">
<img src="active.png">
</div>
<ul id="menu">
<li><a href="foo.html">foo</a></li>
<li><a href="bar.html">bar</a></li>
</ul>
styles:
html,body {
background:black; }
#preload img {
position:absolute;
top:-1200px;
left:-1200px;
width:1px;
height:1px;
}
ul#menu {
position:$position;
display:block;
padding:0;
border:0;
margin:0;
background:transparent; }
#menu li {
display:block;
width:9em;
height:1.7em;
line-height:1.7em;
list-style:none;
padding:0;
border:2px outset gray;
margin:0 auto auto 0;
text-align:center;}
#menu a:link,
#menu a:visited,
#menu a:focus,
#menu a:hover,
#menu a:active {
display:block;
width:9em;
height:1.7em; }
#menu a:link {
display:block;
backgound:black url('link.png');
color:yellow; }
#menu a:visited {
background:grey url('visited.png');
color:white; }
#menu a:focus {
background:yellow url('focus.png');
color:black; }
#menu a:hover {
background
range url('hover.png');
color:white; }
#menu a:active {
background:red url('active.png');
color:yellow; }
Not tested, but you get the idea. Use plain and simple (and proper) markup
and use css to create the image swap effect.
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog |
http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp |
http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen |
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'