IMG mouseover plugin for WordPress

My first WordPress plugin!

Download

Please go to IMG Mouseover on WordPress.org.

The following are new attributes to img tags:

attributedescription
oversrcWhen mouseover’d, the image should be changed to this
clicksrcWhen clicked, the image should be changed to this. To revert, simply mouseout of the image.
noresizeIf set to “true” the image area will not change in the events above.

You can also override the a links:

attributedescription
forThe ID of the image to target
for_linkReplace a hyperlink with the link contained the the href of this anchor
srcWhen clicked, the target image will be replaced with this source
oversrcWhen clicked, the target image mouseover will be replaced with this image

Example: Simple mouseover

<img src="http://farm3.static.flickr.com/2675/3820523223_cccf72f34a.jpg" class="mouseover" oversrc="http://farm3.static.flickr.com/2426/3820522177_5936afd63b.jpg"/>

aperture patch post
Using spot and patch in Apple Aperture. (mouseover to see the original.) (TODO: alignment issue redo screen capture)

94 thoughts on “IMG mouseover plugin for WordPress

  1. I love the plugin, but I am having issues with one link making a seperate image rollover. Even in the example on page 3, if doesn’t seem to work in the current versions of Chrome, Firefox, nor IE.

    For a basic rollover so far this is awesome. I have always wondered why WP has not integrated this yet as a standard feature. To be able to have an interface to set classes, and set other options for rollover image (a.jpg would be a_over.jpg) would probably make this one of the top 5 plugins available.

    Can anyone lend some help with the for=”ID” part to this plugin? I can not get it to work for the life of me.

  2. Thank you for the plugin. Quick question: how do I change the size of the mouseover image only? the src is fine but the oversrc gets stretched. Thank you for directing me to the right procedure. Isabelle

  3. First of all thank you for the plugin! One question for you… Is it possible to change the background position or say box-shadow of just the oversrc img? Thanks!

  4. Hello, great plug-in !! really !

    I have a question. Is it possible to have a text as the source of the ”popup” instead of an image ? I can only work with html code due to some restrictions.

    Thanks a lot, Will

  5. Using latest Safari, with the option noresize, when i mouse over i get the oversrc image, when i move away both images disappear along with the original image place holder. It works fine with IE and FF. If i remove option noresize then it works ok with each browser.

  6. Hello, i really would like to use this plugin but have no idea how to use it. Can someone post a video tutorial or tell me where the plugin is installed so that i may use. Thanks in advance for your help.

    Best, James

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>