Microsoft KB Archive/286015

= HOW TO: Open a Custom Window from an Image Map by Using DHTML Using FrontPage 2000 =

Article ID: 286015

Article Last Modified on 7/4/2007

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition

-



This article was previously published under Q286015



IN THIS TASK
SUMMARY
 * Create a Sample Page

REFERENCES



SUMMARY
This article describes how to use Dynamic Hypertext Markup Language (DHTML) to open a custom browser window from an Image Map hotspot. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

back to the top

Create a Sample Page
Follow these steps to create a DHTML sample by using the Image Map editing features of FrontPage 2000.  Open a new, blank page in FrontPage. Insert an image on your page. Select the image. The Image Editing toolbar appears at the bottom of the screen. Click the Rectangular Hotspot button, and then draw a rectangular hotspot on the image. When the Create Hyperlink dialog box appears, delete all the text from the URL box, and then click OK. Switch to HTML view.  Insert the following code in the </HEAD> section of the page: <script language=&quot;javascript&quot;>

</li>  Locate the image map entry. It may resemble the following: <area nohref coords=&quot;0, 0, 100, 100&quot; shape=&quot;rect&quot;> </li>  Modify the image map entry so that it resembles the following example: <area nohref coords=&quot;0, 0, 100, 100&quot; shape=&quot;rect&quot; onClick=&quot;javascript:OpenWindow('http://www.msn.com',500,350);&quot;> </li>  As an optional item, you can modify the image tag to display a different insertion point when a user rests their mouse on the image. Locate the image tag, which may resemble the following: <img width=&quot;200&quot; height=&quot;200&quot; src=&quot;images/image.gif&quot; usemap=&quot;#FPMap0&quot;> Modify the code by adding style=&quot;cursor:hand&quot; so that the code resembles the following: <img style=&quot;cursor:hand&quot; width=&quot;200&quot; height=&quot;200&quot; src=&quot;images/image.gif&quot; usemap=&quot;#FPMap0&quot;> </li> Return to normal view and save the page.</li></ol>

back to the top

<div class="references_section">