Open prototip on page load
Posted on May 21st, 2009
I needed a prototip to open automatically on page load. $(<id>).prototip.show() should do that, but it just wasn’t working. Nick Stankenburg over on his Prototip forum gave me some ideas, but nothing worked until I set the prototip to open on a very short delay:
if(window.location.hash == '#vote-now') {
document.observe('dom:loaded', function() {
setTimeout("$('left-vote-button').prototip.show()",100);
});
}

Discussion Area - Leave a Comment