Created
July 27, 2011 14:00
-
-
Save walterdavis/1109419 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
var opts = $w('effect_one effect_two effect_three'); | |
var v = opts[Math.floor(Math.random() * opts.length)]; | |
var div = new Element('div',{ | |
id: v + '_hype_container' | |
}); | |
var scrpt = new Element('script', { | |
type:'text/javascript', | |
src: v + '_Resources/' + v + '_hype_generated_script.js' | |
}); | |
$('yourTargetElement').insert(div); | |
div.insert(scrpt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment