public
Description: script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
Home | Edit | New

Effect.SwitchOff

Combination Effects > Effect.SwitchOff

Gives the illusion of a TV-style switch off.

Examples


Effect.SwitchOff('id_of_element');

Notes

Works safely with most Block Elements, except tables.

Demo

Source code of this demo


<div id="switchoff_demo" style="width:80px; height:80px; background:#ccc;"></div>
<ul>
  <li><a href="#" onclick="Effect.SwitchOff('switchoff_demo'); return false;">Click here for a demo!</a></li>
  <li><a href="#" onclick="$('switchoff_demo').show(); return false;">Reset</a></li>
</ul>
Last edited by cann, Wed Apr 22 01:27:24 -0700 2009
Home | Edit | New
Versions: