Could you load two images with different z-index properties at the same absolute posistion and then have a script to swap them instead of using a preloading script? My javascript is fuzzy at best, and trying to write a script when you just forgot what DOM stands for, just isn't fun. What would the javascript look like to swap the z-indexes? I have tried a few times, but to save my dignity I will keep them offline (i accidentally started writing in php halfway through one of my attempts) Thanks!Should be something like document.getElementById(id).style.zIndex = "<number>";
Read the two articles below to find out how you can use one background image for an <a> tag to display both the "on" and "off" states of a link. No javascript required:
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/slidingdoors/">http://www.alistapart.com/articles/slidingdoors/</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/slidingdoors2/What">http://www.alistapart.com/articles/slidingdoors2/What</a><!-- m --> are you tying to do with it? it might be possible to use cssI was making a little intranet site for my dad's office, but the guy who was supposed to do it recovered from pneumonia and made it himself. Thanks for the help though!
Read the two articles below to find out how you can use one background image for an <a> tag to display both the "on" and "off" states of a link. No javascript required:
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/slidingdoors/">http://www.alistapart.com/articles/slidingdoors/</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/slidingdoors2/What">http://www.alistapart.com/articles/slidingdoors2/What</a><!-- m --> are you tying to do with it? it might be possible to use cssI was making a little intranet site for my dad's office, but the guy who was supposed to do it recovered from pneumonia and made it himself. Thanks for the help though!