Skip to content

Instantly share code, notes, and snippets.

@mihahribar
Created April 23, 2012 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihahribar/2468113 to your computer and use it in GitHub Desktop.
Save mihahribar/2468113 to your computer and use it in GitHub Desktop.
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