這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

IMG Mouseover

外掛說明

This allows you to create a simple image mouseover feature by adding properties to an image:

It understands the following attributes which can be added to the HTML:

  • img.class=”mouseover” (activates IMG mouseover for this image)
  • img.oversrc (If specified, this rewrites the image on mouse rollover)
  • img.clicksrc (If specified, this rewrites the image on mouse click)
  • img.noresize (If set, this will make the image have the natural dimensions instead of the dimensions of the original image).
  • a.class=”mouseover” (activates A tag as a controller for another image, when clicked a class “selected” is tacked on)
  • a.for (Should be specified to point to target image. Image must be class mouseover)
  • a.for_link (If specified the ID of a link is replaced with this one)
  • a.src (If specified, the click will replace the image with this)
  • a.oversrc (If specified, the click will replace the image mouse rollover with this)
  • a.clicksrc (If specified, the click will replace the image mouse click with this)

安裝方式

Installing The Plugin

Extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to /wp-content/plugins/. Then just visit your admin area and activate the plugin. That’s it!

See Also: “Installing Plugins” article on the WP Codex

常見問題集

Installation Instructions

Installing The Plugin

Extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to /wp-content/plugins/. Then just visit your admin area and activate the plugin. That’s it!

See Also: “Installing Plugins” article on the WP Codex

使用者評論

2016 年 9 月 3 日
I usually try to avoid plug-ins that haven’t been updated for ages and/or are unproven with the current version of WordPress, but this plug-in does a simle job very well. This is a very common requirement and yet there are very few plug-ins that offer this service. shard’s article https://wordpress.org/support/topic/excellent-but-newbies-will-struggle-to-figure-it-out?replies=3 was a Godsend as the documentation is very sparse and you do need to get your hands dirty with the html. Even so, this is much much easier than manually writing html and css to do the job.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈IMG Mouseover〉的開發相關工作。

參與者

將〈IMG Mouseover〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Version 1.4.1

  • Fixed bug where mouseovers broke in version 1.4 when they are placed outside of post_content (for instance, in a widget). Note that these cannot be made HTML5 compliant (currently). (Thanks, FlowerLark for helping me find the bug.)

Version 1.4

  • HTML 5 compliant (no need to change your code, but you may need to clear supercache) as per new dataset attributes
  • Added GPL 2 license to code.
  • Updated documentation to note testing on WordPress 3.0

Version 1.3

  • TinyMCE (Visual Editor) no longer munges the HTML code

Version 1.2

  • Fixed bug that required PHP 5 in order to run.

Version 1.1

  • Support for link controllers

Version 1.0

  • Initial release