Click to See Complete Forum and Search --> : Image flip or z-index change


Ice3T
04-06-2003, 08:49 AM
I was wondering is it preferable to use image flips by changing the source:
<img name=pic1 src=gif1.gif onMouseOver=this.src=gif2.gif onMouseOut=this.src=gif1.gif>

Or by putting two images at the same place through css and changing their z-index:
<img src=gif1.gif style="position: absolute; top: 200; left: 200; z-index=1" onMouseOver=this.style.zIndex=-1>
<img src=gif2.gif style="position: absolute; top: 200; left: 200; z-index=0" onMouseOut=images[0].style.zIndex=1>

Other than the possible difference in length of theses are there other issues?

Nevermore
04-06-2003, 12:29 PM
You can flip images upside down etc or invert colours with CSS + Javascript, would that be any use?