Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEventListener('load',regEvent,false);
- function regEvent(e){
- document.getElementById("f2").addEventListener("click",oClick,false);
- }
- function oClick(e){
- document.getElementById("f2").style.backgroundImage = "url('img/hell.jpg')";
- }
Add Comment
Please, Sign In to add comment