RyanSchurton Posted February 9, 2013 Share Posted February 9, 2013 (edited) ... Edited February 9, 2013 by RyanSchurton Link to comment Share on other sites More sharing options...
RyanSchurton Posted February 9, 2013 Author Share Posted February 9, 2013 <!doctype><html><head><meta charset="utf-8" /><script type="text/javascript" src="checkoff2.js"></script><link text/css rel="stylesheet" href="checkoff2.css"><title>Ryan Schurton</title></head><body><table border="1"><tr><td id="td1"></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><img src="lastofus.jpg" alt="lastofus" /></table></body></html> This is my HTML code i have a picture behind it and when a td element is click i am trying to make it disappear a square on the table one by one with each click. in javascript Link to comment Share on other sites More sharing options...
callumacrae Posted February 9, 2013 Share Posted February 9, 2013 Set the background colour of each TD element to white when it is clicked, which will hide the image behind it. http://jsfiddle.net/paWv5/ - it'll need some work to get it to work in IE currently. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now