Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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