image - Is it possible to change img src attribute using css? -


i'm trying change img src (not background img src) css

<img id="btnup" src="img/btnup.png" alt="btnup"/>    #btnup{     cursor:pointer; } #btnup:hover{     src:img/btnuphover; /* possible ? elegant way.*/ } 

no - css can used change css background images, not html content.

in general ui elements (not content) should rendered using css backgrounds anyway. swapping classes can swap background images.


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -