Created
April 23, 2012 01:33
-
-
Save mihahribar/2468113 to your computer and use it in GitHub Desktop.
This file contains 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
function buttonEndings() { | |
if (!document.getElementsByTagName) { | |
return false | |
} | |
var buttons = getElementsByClass("button"); | |
/* loop through all buttons and attach a div */ | |
for (i=0; i < buttons.length; i++) { | |
var div = document.createElement("div"); | |
div.className = "buttonEnding"; | |
insertAfter(div, buttons[i]); | |
} | |
} | |
addLoadEvent(buttonEndings); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment