Created
July 24, 2011 15:23
-
-
Save walterdavis/1102724 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
$('myButton').observe('click',function(evt){ | |
var opts = $w('page_one.html page_two.html page_three.html page_four.html'); | |
return window.location.href = opts[Math.floor(Math.random() * opts.length)]; | |
}).setStyle('cursor:pointer'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be applied (by means of editing the ID of the button image) to a single layered image, no link or other tags needed. The script will add the button behavior automatically.