You are here

README.txt in jQuery Map Hilight 7

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


-------------------------
Description
-------------------------
jquery Map Hilight is a javascript wrapper module for the jQuery Maphilight 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.


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

PREREQUISITES:

1. This module requires the Libraries API.

2. This module requires the jQuery Maphilight plugin (v1.1.2 minimum).

3. This module supports the jQuery metadata plugin from the jQuery plugins module.

4. This module supports downloading the jQuery Maphilight plugin via drush.


STANDARD INSTALLATION:

1. Download and install the Libraries API module from: http://drupal.org/project/libraries

2. Download and install the jquery Map Hilight from: http://drupal.org/project/jq_maphilight

3. Download the jquery Map Hilight plugin from https://github.com/kemayo/maphilight

4. Extract the jquery.maphilight.min.js file into the sites/all/libraries/jquery.maphilight directory.

5. Navigate to admin/config/content/jq_maphilight. If the plugin is properly installed you should see a message
indicating the path where it has been found in the "jQuery Maphilight Plugin Status" fieldset.

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


DRUSH INSTALLATION:

1. drush en -y libraries jq_maphilight

2. drush maphilight-plugin


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

1. Set sitewide options as desired in the jQuery Maphilight Plugin Settings (admin/config/content/jq_maphilight).

2. Select whether you want to automatically add the Maphilight library to every page. If not,
drupal_add_library('jq_maphilight', 'jquery.maphilight'); must be executed to enable the library as needed. Plus all
following settings will be ignored.

3. Select whether you want to highlight all image maps automatically (the default setting) use class="jq_maphilight"
on the <img> tag of any image maps you wish to be highlighted.

4. 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}. Requires jQuery module.

   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'}

-------------------------
Compatibility Notes
-------------------------

For image module compatibility see http://drupal.org/node/495126#comment-1722882.


-------------------------
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="{strokeColor:'000000',strokeWidth: 5}" src="/sites/default/files/images/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 7.x
  2. -------------------------
  3. Description
  4. -------------------------
  5. jquery Map Hilight is a javascript wrapper module for the jQuery Maphilight plugin. It enables the simple addition
  6. of mouseover highlighting of hotspots to HTML image maps without requiring the editing of theme files or knowledge
  7. of Javascript/jQuery.
  8. -------------------------
  9. Installation Instructions
  10. -------------------------
  11. PREREQUISITES:
  12. 1. This module requires the Libraries API.
  13. 2. This module requires the jQuery Maphilight plugin (v1.1.2 minimum).
  14. 3. This module supports the jQuery metadata plugin from the jQuery plugins module.
  15. 4. This module supports downloading the jQuery Maphilight plugin via drush.
  16. STANDARD INSTALLATION:
  17. 1. Download and install the Libraries API module from: http://drupal.org/project/libraries
  18. 2. Download and install the jquery Map Hilight from: http://drupal.org/project/jq_maphilight
  19. 3. Download the jquery Map Hilight plugin from https://github.com/kemayo/maphilight
  20. 4. Extract the jquery.maphilight.min.js file into the sites/all/libraries/jquery.maphilight directory.
  21. 5. Navigate to admin/config/content/jq_maphilight. If the plugin is properly installed you should see a message
  22. indicating the path where it has been found in the "jQuery Maphilight Plugin Status" fieldset.
  23. 6. If desired, follow the instructions for the Test Page below to test the functionality of the module and plugin.
  24. DRUSH INSTALLATION:
  25. 1. drush en -y libraries jq_maphilight
  26. 2. drush maphilight-plugin
  27. -------------------------
  28. USAGE
  29. -------------------------
  30. 1. Set sitewide options as desired in the jQuery Maphilight Plugin Settings (admin/config/content/jq_maphilight).
  31. 2. Select whether you want to automatically add the Maphilight library to every page. If not,
  32. drupal_add_library('jq_maphilight', 'jquery.maphilight'); must be executed to enable the library as needed. Plus all
  33. following settings will be ignored.
  34. 3. Select whether you want to highlight all image maps automatically (the default setting) use class="jq_maphilight"
  35. on the tag of any image maps you wish to be highlighted.
  36. 4. Override any of the sitewide options specified on the admin page by including an additional class on the image
  37. tag (along with the jq_maphilight class) with the following format: {option:value,option:value}. Requires jQuery module.
  38. Available Options:
  39. fill (Boolean, true/false) - Whether to fill the shape
  40. fillColor (String, HTML color notation without the # & with single quotes) - The color to fill the shape with
  41. fillOpacity (Number, 0 - 1) - The opacity of the fill (0 = fully transparent, 1 = fully opaque)
  42. stroke (Boolean, true/false) - Whether to outline the shape
  43. strokeColor (String, HTML color notation without the # & with single quotes) - The color of the outline
  44. strokeOpacity (Number, 0 - 1) - The opacity of the outline (0 = fully transparent, 1 = fully opaque)
  45. strokeWidth (Number) - The thickness of the outline
  46. fade (Boolean, true/false) - Whether to fade in the shapes on mouseover
  47. Example: {fill:false,strokeColor:'FFFFFF'}
  48. -------------------------
  49. Compatibility Notes
  50. -------------------------
  51. For image module compatibility see http://drupal.org/node/495126#comment-1722882.
  52. -------------------------
  53. SUPPORT
  54. -------------------------
  55. For support, please submit requests via the project issues queue at: http://drupal.org/project/issues/jq_maphilight
  56. -------------------------
  57. Test Page
  58. -------------------------
  59. Copy the sample.png image from the jq_maphilight module directory to wherever you keep your images. Then copy the
  60. following code into the body of a page (be sure to update the image href location & set the Input Format to
  61. Full HTML or add the MAP and AREA tags to the allowed tags for filtered html). Hover the mouse over the boxes
  62. to see the highlighting in action.
  63. <-------------------------------------BEGIN---COPY---BELOW--------------------------------------------------->
  64. This is a sample image map with jquery based javascript hilighting:

  65.