Integrate script.aculo.us with WordPress

I don’t know if you noticed, but if you click the little “nav” link on the left, the navigation menu disappears. If you click it again, it will reappear. This is done via a little JavaScript and the script.aculo.us library.

I have written a short tutorial on how to achieve this effect. It is intended for the real novice. Let me know if you like it and/or if you have any issues or suggestions.

If you liked this, why not share it with your friends?
    This entry was posted in Java and JavaScript. Bookmark the permalink. Both comments and trackbacks are currently closed.

    3 Comments

    1. Posted January 7, 2011 at 10:58 am | Permalink

      Too many forget to mention that Scriptaculous is already included in WordPress!!!
      All is need is an encue script function. Here’s the details. Please make people aware! (I’m so adament, because out of 10+ sources about scriptaculous and wordpress, only one person mentioned that and prototype are already included. *curses!*)
      http://www.snilesh.com/resources/wordpress/include-javascript-librarie-in-wordpress-theme/

    2. Posted January 7, 2011 at 11:06 am | Permalink

      You’re quite right. WordPress now comes with a host of JavaScript libraries that you can enqueue.
      3 years ago, when this article was written, things were a little different.
      In spite of the changes, I still think this is a good tutorial to get to know how to add your own custom JavaScript and how you might structure everything. It needs a little update though.
      I’ve been wanting to revive my web technology project, maybe I’ll start with this.

    3. Posted January 7, 2011 at 11:14 am | Permalink

      Cool, thanks :-) Indeed, it is an important skill to learn, maybe apply the same skills/tutorial to another library? Thanks for making the world of binaries a better place!

    • Feedback or questions? Contact me right away.

      Comments have been disabled on my posts. Not because I don't want to hear from you, but because they were adding very little to the conversation (most of them were spam anyway). I do listen to you and try to keep as much posts as possible up-to-date and error free. So if you have a question, if something isn't working the way you hoped or you have general feedback, please use the contact form below. I guarantee an answer to every honest question or remark.
    • Get in touch
      1. (required)
      2. (valid email required)
       

      cforms contact form by delicious:days