What I wanted to achieve: I wanted a disappearing notification message that pops up and fades out when a button is pressed. What you need: Mootools Core How I did it: Read up on Apress Mootools Essentials for about an hour and experimented on it. 1. Include mootools and the script in the head. <script [...]
Archive | Javascript RSS feed for this section
Highlighting the Current Navigation Tab with Javascript and PHP
One of our projects required highlighting of the current navigation tab. So naturally, I googled and here’s what I found: http://www.alistapart.com/articles/keepingcurrent http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css http://www.websiteoptimization.com/speed/tweak/current/ However, none of them was the solution to what we exactly needed because of our file structure. We had a unique sidebar navigation include (nav.inc.php) for every subdirectory. The ALA solution was [...]