![]() |
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? |
Hi there Ax3l,
no need for javascript, CSS will do the trick. ;) Here is a basic example... Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
Very simple, thank you.
|
coothead |
| All times are GMT +1. The time now is 09:30 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.