AW Javascript toggler
| 559 views | Tagged - Work
AW Javascript toggler with cookie is a simple and light weight, javascript which toggles the visibility of elements with cookie. So they remain visible or hidden by cookie on the return visit.
- Features
- Demo
- Documentation
- Download
Features
- Light weight (only kb).
- Cross browser support.
- Can include any no of toggling items.
- Enabled with cookie.
Usage
- Include the javascript
<code><script type="text/javascript" src="Path to awJavascriptToggler.js"></script></code>
- Call the
toggleToggle('ID of the element to be hidden')function by a button. - Call the function
toggleInitiliaze('ID of the element to be hidden')externally by using the code<code><script type="text/javascript">toggleInitialize('ID of the element 1 to be hidden'); toggleInitialize('ID of the element 2 to be hidden'); toggleInitialize('ID of the element 3 to be hidden'); // and etc</script></code> - That’s all
Download
Click the link below to download AW Javascript toggler