define image source in css  [ 722 views ]

Goal: change the image content by css definition

like this:

img {
  content:url(../images/.../img.png);
}
img:hover {
  content:url(../images/.../img_hover.png);
}
#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }