I want to be able to hover over an image and a video replaces it. Such as you would do when you hover over an image and another image replaces it. Is there anyway you can do this without having to use flash. Thanks.
Page 1 of 1
Hover image to show video
#2
Posted 10 April 2009 - 10:12 AM
you might be able to do it this way but i'm not sure. i've used an unordered list but you could use something else.
probably need a height and width on the ul to match your image as the li is absolutely positioned.
be interested to know if it works.
<ul>
<li>video goes here</li>
</ul>
ul {background: url(" ") no-repeat 0 0; list-style: none; position: relative; height: ?px; width: ?px;}
li {position: absolute; left: -9999px; top: -9999px; height: ?px; width: ?px}
ul:hover li {left: 0px; top: 0px}probably need a height and width on the ul to match your image as the li is absolutely positioned.
be interested to know if it works.
Share this topic:
Page 1 of 1
Help














