Sami's Site: CSB - Trellix Support and Tests
previous    next
Test Index   ·   CSB4 Rollover Links   ·   Link Styles 1   ·   Link Styles 2   ·   Link Styles 3   ·   iFrame Tutorial - IFrames described in detail!   ·   Form sample in iFrame   ·   Arrowhead   ·   Excel   ·   Color Blind   ·   Websafe Fonts and tests   ·   Make an Alert Box   ·   Webgem Placeholder Images   ·   LINK HOVER TOOLTIP   ·   OverLIB tooltip   ·   Disguise Email   ·   Quote of the Month   ·   Map to your location!   ·   Link Border Test   ·    FORUM

Map to your location!

Two ways how to implement a Link to Mapquest!

click either link to open a new window to a pre-defined address in MapQuest
USE CODE TO MAKE A LINK:

USE CSB URL STYLE LINK:


  Capture code here:  
press Select All then COPY the contents
Select All
I have made notes in codes below and it will effect functionality!
Use the Select All choice above to copy code!


Place this script into an Insert > HTML  (webgem in Trellix)

Change BLUE items to your address information (use a + instead of space in address)
Change GREEN items to the colors of the rollover link
Change ORANGE items to your link.

<a href="http://www.mapquest.com/maps/map.adp? city=orlando&state=FL&address=6130+Colonial +Drive&zip=32807&country=us&zoom=8
" style="text-decoration: none;" onmouseover="this.style.color='#FF0000'"  onmouseout="this.style.color='#330066'"  target="_blank">Where is Home Depot in East Orlando?</a>


STYLE TIP:
The sample link uses Font Color RED on mouseover with no underline.
Conside the other styles for your link shown on this page.  

This is the URL of the specific address used
in both methods:

http://www.mapquest.com/maps/map.adp? city=orlando&state=FL&address=6130+Colonial+Drive&zip=32807&country=us&zoom=8

Change the purple items to YOUR address.
See the info below for details how to do it

CSB 4 and CSB 5 allow you to easily define where you want your link to appear.  Check below for what these mean!
DEFINE WHERE YOUR LINK WILL OPEN:
You can choose to open a link several ways:
in a new window with target="_blank"    [The links and code above use this target]
in the same window with target="_top"   [remember to tell users to click BACK after viewing map]
in a particular frame target="TRLX_Middle"
(if publishing with frames in CSB - this page is not published with frames so can not use it)
in a particular window with target="FRAME1"  (See iFrame examples)

There are some Linking Restrictions:    Read more about them on the MapQuest site.
When this page was originally written these were the rules:
The MapQuest page you are linking to may not be displayed in a frame set.  
CSB/Trellix implementation: The Mapquest page can not open under your top border so recommend you publish the page without frames.  The Mapquest page can not be opened inside an iFrame as shown here.
The MapQuest page you are linking to may not be displayed in a new browser window.
CSB/Trellix implementation: Use _top to open in the same window
01/09 update:  _blank option to open a new window DOES now work!

Description of the address link:
Parameter
Description
Examples
Req'd
address
The address for the center point of the map.
6130+Colonial+Drive
No
city
The city for the center point of the map.
orlando
Yes
state
The state for the center point of the map.
FL
Yes
zip
The zip code for the center point of the map.
32807
No
country
The country for the center point of the map.
US
No
zoom
Map zoom level, where 1=national and 10=street level
1 through 10
No

The following address field combinations can be used:
Address, city, state and ZIP code
Address, city and state
Address and city
City and state
If ZIP code doesn't match the other information, it is ignored.