View Full Version : Resolved Setting background image onmouseover/hover.
I have a container div that has a number of images in it. What I am trying to do is give each image a "wrapper" on a mouseover or hover by setting a background image that will extend beyond the height and width of the images. What I want is for a background image to be set dynamically depending on what image the mouse is over.
I've read that there might be something I can do with the anchor tag.
So is there any way that I can set a background image dynamically?
12-03-2012, 03:17 PM
Hi there Ax3l,
Here is a basic example...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
border:1px solid transparent;
box-shadow:4px 4px 4px #999;
<img id="image0" src="anim1.gif" alt="">
12-03-2012, 06:29 PM
No problem, you're very welcome. ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.