You are here

README.txt in jQuery Map Hilight 5

Same filename and directory in other branches
  1. 6 README.txt
  2. 7 README.txt
jQuery Map Hilight Module

/-------------------------------------------------------------------------------------------------\
D5 DISCLAIMER - USE AT YOUR OWN RISK
---------------------------------------------------------------------------------------------------

This module was originally written directly for D6 (the jquery plugin it wraps requires jquery v1.2+). As a convenience, in response to interest for a D5 version, it has been backported. Using it with D5 requires the 2.x version of jquery_update which involves an update to the core jquery. I've tested it and it works fine with a core install. I will support the actual module itself on D5 to the best of my ability-- however, be aware that there may be contributed modules that don't play nice with the jquery_update 2.x module.
\-------------------------------------------------------------------------------------------------/



-------------------------
Description
-------------------------
jQuery Map Hilight is a javascript wrapper module for the jquery Map Hilight plugin. It enables the simple addition of mouseover highlighting of hotspots to HTML image maps without requiring the editing of theme files or knowledge of javascript/jquery. Simply add class="jq_maphilight" to the image tag of any image map you wish to hilight.


-------------------------
Installation Instructions
-------------------------

PREREQUISITES: 
1. This module requires jquery version 1.2 minimum. For Drupal 5 users, this will mean upgrading the included jquery which is version 1.0.1. See this thread for a patch for upgrading: http://drupal.org/node/156221 (comment #48 seems to contain the lastest working patch).

2. This module requires the jquery_plugin module (with the included metadata plugin) for D5. Be sure to download and install it first.

3. This module requires the jQuery Map Hilight plugin (v1.1.2 minimum) from http://plugins.jquery.com/project/maphilight.


INSTALLATION:

1. Download and install the jquery_plugin module from http://drupal.org/project/jquery_plugin.

2. Download the jquery Map Hilight plugin from http://plugins.jquery.com/project/maphilight.

3. Extract the jquery.maphilight.min.js file into the jquery_plugin directory.

4. Navigate to admin/settings/jq_maphilight. If the plugin is properly installed you should see a message indicating the path where it has been found in the "jQuery Map Hilight Plugin Status" fieldset.

5. If desired, follow the instructions for the Test Page below to test the functionality of the module and plugin.


-------------------------
USAGE
-------------------------

1. Set sitewide options as desired in the jQuery Map Hilight Plugin Settings (admin/settings/jq_maphilight).

2. Add class="jq_maphilight" to the IMG tag of any image map you wish to be hilighted.

3. Override any of the sitewide options specified on the admin page by including an additional class on the image tag (along with the jq_maphilight class) with the following format: {option:value,option:value}

   Available Options:
     fill (Boolean, true/false) - Whether to fill the shape
     fillColor (String, HTML color notation without the # & with single quotes) - The color to fill the shape with
     fillOpacity (Number, 0 - 1) - The opacity of the fill (0 = fully transparent, 1 = fully opaque)
     stroke (Boolean, true/false) -  Whether to outline the shape
     strokeColor (String, HTML color notation without the # & with single quotes) - The color of the outline
     strokeOpacity (Number, 0 - 1) - The opacity of the outline (0 = fully transparent, 1 = fully opaque)
     strokeWidth (Number) - The thickness of the outline
     fade (Boolean, true/false) - Whether to fade in the shapes on mouseover
 
   Example: {fill:false,strokeColor:'FFFFFF'}
 

-------------------------
SUPPORT
-------------------------

For support, please submit requests via the project issues queue at: http://drupal.org/project/issues/jq_maphilight


-------------------------
Test Page
-------------------------

Copy the sample.png image from the jq_maphilight module directory to wherever you keep your images. Then copy the following code into the body of a page (be sure to update the image href location & set the Input Format to Full HTML or add the MAP and AREA tags to the allowed tags for filtered html). Hover the mouse over the boxes to see the highlighting in action.
<-------------------------------------BEGIN---COPY---BELOW--------------------------------------------------->
<p><strong>This is a sample image map with jquery based javascript hilighting:</strong></p>
<p>&nbsp;</p>
<img class="jq_maphilight {strokeColor:'000000'}" src="/files/sample.png" usemap="#imagemap" border="0" />
<map name="imagemap">
<area href="/" shape="RECT" coords="168,71,312,143" title="Box #1" />
<area href="/" shape="RECT" coords="72,167,168,216" title="Box #2" />
<area href="/" shape="RECT" coords="193,167,289,216" title="Box #3" />
<area href="/" shape="RECT" coords="313,169,409,217" title="Box #4" />
<area href="/" shape="RECT" coords="73,240,169,290" title="Box #5" />
<area href="/" shape="RECT" coords="193,240,288,288" title="Box #6" />
<area href="/" shape="RECT" coords="313,240,409,289" title="Box #7" />
</map>

File

README.txt
View source
  1. jQuery Map Hilight Module
  2. /-------------------------------------------------------------------------------------------------\
  3. D5 DISCLAIMER - USE AT YOUR OWN RISK
  4. ---------------------------------------------------------------------------------------------------
  5. This module was originally written directly for D6 (the jquery plugin it wraps requires jquery v1.2+). As a convenience, in response to interest for a D5 version, it has been backported. Using it with D5 requires the 2.x version of jquery_update which involves an update to the core jquery. I've tested it and it works fine with a core install. I will support the actual module itself on D5 to the best of my ability-- however, be aware that there may be contributed modules that don't play nice with the jquery_update 2.x module.
  6. \-------------------------------------------------------------------------------------------------/
  7. -------------------------
  8. Description
  9. -------------------------
  10. jQuery Map Hilight is a javascript wrapper module for the jquery Map Hilight plugin. It enables the simple addition of mouseover highlighting of hotspots to HTML image maps without requiring the editing of theme files or knowledge of javascript/jquery. Simply add class="jq_maphilight" to the image tag of any image map you wish to hilight.
  11. -------------------------
  12. Installation Instructions
  13. -------------------------
  14. PREREQUISITES:
  15. 1. This module requires jquery version 1.2 minimum. For Drupal 5 users, this will mean upgrading the included jquery which is version 1.0.1. See this thread for a patch for upgrading: http://drupal.org/node/156221 (comment #48 seems to contain the lastest working patch).
  16. 2. This module requires the jquery_plugin module (with the included metadata plugin) for D5. Be sure to download and install it first.
  17. 3. This module requires the jQuery Map Hilight plugin (v1.1.2 minimum) from http://plugins.jquery.com/project/maphilight.
  18. INSTALLATION:
  19. 1. Download and install the jquery_plugin module from http://drupal.org/project/jquery_plugin.
  20. 2. Download the jquery Map Hilight plugin from http://plugins.jquery.com/project/maphilight.
  21. 3. Extract the jquery.maphilight.min.js file into the jquery_plugin directory.
  22. 4. Navigate to admin/settings/jq_maphilight. If the plugin is properly installed you should see a message indicating the path where it has been found in the "jQuery Map Hilight Plugin Status" fieldset.
  23. 5. If desired, follow the instructions for the Test Page below to test the functionality of the module and plugin.
  24. -------------------------
  25. USAGE
  26. -------------------------
  27. 1. Set sitewide options as desired in the jQuery Map Hilight Plugin Settings (admin/settings/jq_maphilight).
  28. 2. Add class="jq_maphilight" to the IMG tag of any image map you wish to be hilighted.
  29. 3. Override any of the sitewide options specified on the admin page by including an additional class on the image tag (along with the jq_maphilight class) with the following format: {option:value,option:value}
  30. Available Options:
  31. fill (Boolean, true/false) - Whether to fill the shape
  32. fillColor (String, HTML color notation without the # & with single quotes) - The color to fill the shape with
  33. fillOpacity (Number, 0 - 1) - The opacity of the fill (0 = fully transparent, 1 = fully opaque)
  34. stroke (Boolean, true/false) - Whether to outline the shape
  35. strokeColor (String, HTML color notation without the # & with single quotes) - The color of the outline
  36. strokeOpacity (Number, 0 - 1) - The opacity of the outline (0 = fully transparent, 1 = fully opaque)
  37. strokeWidth (Number) - The thickness of the outline
  38. fade (Boolean, true/false) - Whether to fade in the shapes on mouseover
  39. Example: {fill:false,strokeColor:'FFFFFF'}
  40. -------------------------
  41. SUPPORT
  42. -------------------------
  43. For support, please submit requests via the project issues queue at: http://drupal.org/project/issues/jq_maphilight
  44. -------------------------
  45. Test Page
  46. -------------------------
  47. Copy the sample.png image from the jq_maphilight module directory to wherever you keep your images. Then copy the following code into the body of a page (be sure to update the image href location & set the Input Format to Full HTML or add the MAP and AREA tags to the allowed tags for filtered html). Hover the mouse over the boxes to see the highlighting in action.
  48. <-------------------------------------BEGIN---COPY---BELOW--------------------------------------------------->
  49. This is a sample image map with jquery based javascript hilighting:

  50.