Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a seperate window 2

Status
Not open for further replies.

tony4x4

Technical User
May 14, 2002
13
0
0
ZA
Hi there, please help me with a basic solution. Please have a look at I had this written for me but it is too complex to update. I am trying to create the same thing but just using html. Using hot spots I will have a hyperlink to a new page per company i.e. cosy.html. But I would like to specifiy the height and width of the window and preferbly switch off scroll bars. How can I do this? Can it be done using plan HTML or does there have to be a function. If a function what is the simplist way to do it?
 
Thanks Vraqabond.

Please can I ask you how I would incorporate that code into the following :-

<td><table width=&quot;100%&quot; height=&quot;320&quot; border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot;>
<tr valign=&quot;top&quot;>
<td width=&quot;66&quot;>&nbsp;</td>
<td width=&quot;463&quot;><h1><map name=&quot;FPMap2&quot;>
<area target=&quot;_blank&quot; href=&quot;cosy.htm&quot; shape=&quot;polygon&quot; coords=&quot;63, 105, 126, 69, 190, 108, 190, 178, 128, 213, 65, 179&quot;>
</map>
<img border=&quot;0&quot; src=&quot;IMAGES/hives.jpg&quot; width=&quot;454&quot; height=&quot;449&quot; usemap=&quot;#FPMap2&quot;></h1>
</td>
 
OK, probably this will be better. Users without JS will have the link open in a new window (target=&quot;_blank&quot;) while those with JS will get it in your special window:
Code:
<area target=&quot;_blank&quot; href=&quot;cosy.htm&quot; onclick=&quot;window.open('[URL unfurl="true"]http://www.google.com',[/URL] 'cosy', 'width=400,height=300,scrollbars=no'); return false;&quot; shape=&quot;polygon&quot; coords=&quot;63, 105, 126, 69, 190, 108, 190, 178, 128, 213, 65, 179&quot;>
 
Hi Vragabond,

Sorry to keep bothering you with this trivia problem, but I still seem to be having a problem. The above does open a seperate window but not using window.open. Please could you have a look at and select Photo-X and tell me where I am going wrong.

Regards
Tony
 
The script does not like the dash in the window name:

<area target=&quot;_blank&quot; href=&quot;photox.htm&quot; onclick=&quot;window.open(' 'PHOTOX', 'width=400,height=300,scrollbars=no,toolbar=no,menubar=no'); return false;&quot; shape=&quot;polygon&quot; coords=&quot;245, 285, 328, 283, 368, 349, 330, 418, 250, 417, 211, 351&quot;>

Just remove the dash and it should be ok
 
Thanks for the quick response and helpfulness.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top