Created
February 15, 2012 15:01
-
-
Save ChrisMoney/2af179ff49d4df7aadbe to your computer and use it in GitHub Desktop.
Javascript --Add border to image onclick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Jquery Version | |
| $("table#").clickFunction(greyOut).slow(function(){ | |
| $("image",this)resize(100,100); | |
| $(this).wrap.css("border", "solid 1px white" | |
| <a href="javascript: self.close()">Close Window</a>); | |
| //Javascript Version | |
| javascript: | |
| for(i=0;i<document.getElementsByTagName('img').length;i++){ | |
| var imgTag=document.getElementsByTagName('img')[i]; | |
| imgTage.resize(100, 100); | |
| imgTag.style.border='2px solid white'; | |
| <a href="javascript: self.close()">Close Window</a>); | |
| } | |
| }void(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment