scriptaculous requirements
<div id="flash_box" class="flash_box" style="display:none;"> <div id="fb_content" class="fb_content"> <%= flash[:warning] %>
The div 'flash_box' only works with scriptaculous when
style="display:none;"
is used _inline_.
TextSnippets > deckard > javascript
2741 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
<div id="flash_box" class="flash_box" style="display:none;"> <div id="fb_content" class="fb_content"> <%= flash[:warning] %>
style="display:none;"
hide_warning = "window.setTimeout('Effect.BlindUp($(\\'flash_box\\'), {duration:.3})', #{@warning_timeout ||= 8000})"
<select id='element_id' onChange="some_javascript_func"> <a href="#" onclick="$('element_id').onchange();">