Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Popup screen wrong size

Posted by: Weeder Mar 5 2010, 11:48 AM

On my website (www.weeder.nl) I have one menu topic that makes a screen pop up ('Foto's bestellen sorry the website is in Dutch). I want it to be full screen which it is in firefox. But when i run my website from internet explorer the window opens with the size of a stamp. I've been looking for an error in the code but can't find anything. What am i doing wrong? How can i make sure the popup opens properly in all browers?

thanx

Posted by: Roeselhof Mar 5 2010, 12:19 PM

[quote name='Weeder' date='Mar 5 2010, 11:48 AM' post='45856']
On my website (www.weeder.nl) ... [/quote]
MS-IE handel your code:

[qoute]
<p><a href="java script:NewWindow('http://weeder.onlinefotoverkoop.nl','Winkel','width=100%','front');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Bestellen','','afbeeldingen/menu/bestellen_b.jpg',1)"><img src="afbeeldingen/menu/bestellen.jpg" alt="Foto's bestellen" name="Bestellen" width="180" height="25" border="0" id="Bestellen" /></a></p>
[/quote]

correct. You must coded the width of anchor-tag in absolute unit, not per %, if you wont an lager width as your picture has it.

Regards

Posted by: pandy Mar 5 2010, 12:21 PM

CODE
javascript:NewWindow('http://weeder.onlinefotoverkoop.nl','Winkel','width=100%','front');


AFAIK you can't use a percentage for width. IE probably interprets it as 100 pixels. What's 'front'? Does that exist?

Posted by: pandy Mar 5 2010, 12:47 PM

Sorry, Roeselhof. Didn't see your post.

Posted by: Weeder Mar 6 2010, 11:05 AM

Thanx for your reply. I've changed the width setting from 100% to 800 px but it hasnt helped. I've also tried using 'fullscreen' but no result. The 'front' command is supposed to make sure the screen pops up rather then under. Should i leave this out?


Posted by: pandy Mar 6 2010, 03:37 PM

There is no px either in JS. 'width=800'.


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)