-
Book Overview & Buying
-
Table Of Contents
WordPress Plugin Development: Beginner's Guide
By :
There are a number of libraries available which simplify the usage of JavaScript by providing ready-made functions for the most common tasks. The most popular today are jQuery, Scriptaculous and MooTools. WordPress comes with the first two pre-installed, and we will be using jQuery for our plugins.
Although our plugin is fine, we would like it to interact with the user and show them the information when they want it, and where they want it. Responding to the user hovering the mouse over the link on the blogroll sounds like a good place to start.
Let's create a jQuery JavaScript that will show additional information in the blogroll, using the hover event as a trigger.
We will create an external file to store our JavaScript and use it to display a message directly in the blogroll, when the user hovers the mouse over one of the links.
Create a new file called wp-live-blogroll...
Change the font size
Change margin width
Change background colour