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:

Last update: 2011-04-28 07:16
Author: Fla-shop Team
Revision: 1.6

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry