How do I control attributes of pop-up window? 2

C

Chris Mitchell

I have created two pages, both of which contain the same picture
'FNetNT.jpg'.



I'm trying to create an Image Map, such that clicking on the defined area in
the picture brings up a new window configured to my specification.



I've tried Spawn, thanks to JimCo, and this works fine in my browser. My
problem is that I need to insert the code generated in a particular form
into Obtree C4 content management system, which has some restrictions as to
what can and can't be included.



My two pages are as follows.



Page 1

<p>&nbsp;

<img src="FNetNT.jpg" usemap="#FNetNT">

<map name="FNetNT">

<area target="_blank" href="wat_decode.htm" shape="rect" coords="326, 382,
711, 460">

</map>

</p>

This works only on the defined area, as desired, but brings up a new window
complete with Toolbars, Scrollbars etc which I don't want.



Page 2

<html>



<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>New Page 1</title>

<script language="javascript">function MyWindowNo01</script>

</head>



<body>



<p>

<img border="0" src="FNetNT.jpg" width="720" height="540"

onclick="MyWindowNo01=window.open

(url='wat_decode.htm',name='FNetNTWATDJSU',options='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=55,left=250,top=250',scaleType='pixel');return
false;">

</p>



</body>

</html>

This works, but on whole picture, not just the defined area, but brings up
a new window in the desired format.



Is there some way I can combine these to get what I want without using
javascript?
 
J

Jens Peter Karlsen[FP MVP]

Use an "onclick" event to call the popup script.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top