Navigation
0 users online :: 0 Guests and 0 Registered
Records in this category
- 04. What are the requirements to install and use Locator Maps?
- 19. Is it possible to install Locator Map to WordPress (Joomla, Drupal, other CMS) website?
- 18. Is it possible to update the map dynamically with a PHP/Perl/ASP script generating an appropriate XML "on the fly"?
- 14. How to change the background color of the Locator Map?
- 01. How do I install the Locator Map on a webpage?
- 15. How to make the background of the map transparent?
- 16. How to set an image as a background for the map?
- 11. How to change the names on the Locator Map (countries, states, regions etc)?
- 08. How to change the colors of each region on the map?
- 09. How to change the colors of texts on the map?
- 05. How to open some URL when a user clicks on the map?
- 07. How to open a URL in a new window?
- 12. How to display some data in a popup window when a user moves the mouse over a region?
- 13. Is it possible to display a formatted text in a popup window?
- 10. How to change colors of a popup window?
- 20. What is the difference between Locator Map 3.0 and 4.0?
- 17. How to display some data on the page when a user clicks a region?
- 02. How to install Locator Map 4.0 to my website (detailed description)?
- 03. Can I test the map locally?
- 06. I tried to add a link to a state in the map, but it is not working. Why?
Tags
Locator Maps » Version 4.0
ID #1019
05. How to open some URL when a user clicks on the map?
In order to assign some URL to the click on a particular region, do the following.
1. Open the locator_map.xml in any code/text editing application.
2. Find the desired region section and look for the <link> tag there.
... <state> <id>6</id> <name>Colorado</name> <link></link> <info></info> <color_map>0x7798BA</color_map> <color_map_over>0x366CA3</color_map_over> <frame></frame> <image></image> </state> ...
Write the URL you need within this tag:
... <link>http://www.yoururl.com/Colorado_dealers.asp</link> ...
Any valid URL will suite here. Additionally, you can specify custom JavaScript code here:
...
<link>javascript:window.alert('Hello world!')</link>
...Tags: -
Related entries:
- 04. What are the requirements to install and use Locator Maps?
- 14. How to change the background color of the Locator Map?
- 15. How to make the background of the map transparent?
- 11. How to change the names on the Locator Map (countries, states, regions etc)?
- 08. How to change the colors of each region on the map?
Last update: 2011-04-28 07:16
Author: Fla-shop Team
Revision: 1.6
You cannot comment on this entry