/    Sign up×
Community /Pin to ProfileBookmark

New Window Error: Please Help!

I am trying to open a new window when you click an enter button and I want the new window to be in a set position and a set size.

However, on clicking the enter button, nothing is currently happening and I really cannot understand why! The page can be located at [url]http://www.returnatoner.com/fozz.htm[/url]

The code I have (and that isn’t working for some strange reason) is: –

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Fozz | Official Site</title>
<style type=”text/css”>
body {
scrollbar-face-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #000000;
scrollbar-arrow-color: black; }
A:link {text-decoration: none; color: #CCFFFF; }—–>{ }
A:visited {text-decoration: none; color: #CCFFFF; }—–>{ }
A:active {text-decoration: none; color: #CCFFFF; }—–>{ }
A:hover {text-decoration: underline; color: #FFFFFF}–>
</style>
<script language=”JavaScript”>
<!–

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//–>
</script>

<script>

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf(“#”)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf(“?”))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//–>
</script>
<script>
<!–
function Enter(){
EnterWindow = window.open(“main.htm”,”Enter”,”left=0,top=0,screenX=0,screenY=0,width=792,height=542, resizable=yes”);
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//–>
</script>
</head>

<body leftmargin=”0″ topmargin=”20″ bgcolor=”#000000″>

<div align=”left”>
<table border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr>
<td background=”fozz-background.JPG” width=”802″ height=”210″ valign=”top”>
<div align=”left”>
<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”802″>
<tr>
<td valign=”bottom” height=”120″ width=”202″></td>
<td valign=”bottom” height=”120″ width=”132″ align=”right”>
<p style=”margin-right: 8″><b><font color=”#C0C0C0″ size=”1″ face=”Arial”>Site
Requirements:</font></b></td>
<td width=”462″ valign=”bottom”><b><font color=”#C0C0C0″ size=”1″ face=”Arial”>Best
Viewed:</font></b></td>
</tr>
<tr>
<td width=”202″ valign=”bottom” height=”0″></td>
<td width=”132″ valign=”bottom” height=”0″ align=”right”>
<p style=”margin-right: 8″><font color=”#FFFFFF” size=”1″ face=”Arial”><b><a href=”http://www.microsoft.com/windows/ie/default.htm” target=”_blank”>Internet
Explorer 4+</a></b></font></td>
<td valign=”bottom” width=”462″><font color=”#FFFFFF” size=”1″ face=”Arial”><b><a href=”http://www.microsoft.com/windows/ie/default.htm” target=”_
blank”>Internet
Explorer 5+</a></b></font></td>
</tr>
<tr>
<td width=”202″ valign=”bottom” height=”0″></td>
<td width=”132″ valign=”bottom” height=”0″ align=”right”>
<p style=”margin-right: 8″><font color=”#FFFFFF” size=”1″ face=”Arial”><b><a href=”http://www.netscape.com/” target=”_blank”>Netscape
Navigator 4+</a></b></font></td>
<td valign=”bottom” width=”462″><b><font size=”1″ face=”Arial” color=”#CCFFFF”>800
x 600 Resolution</font></b></td>
</tr>
<tr>
<td width=”202″ valign=”bottom” height=”0″></td>
<td width=”132″ valign=”bottom” height=”0″ align=”right”>
<p style=”margin-right: 8″><font color=”#FFFFFF” size=”1″ face=”Arial”><b><a href=”http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash” target=”_
blank”>Flash
5 Plug-In</a></b></font></td>
<td width=”462″ valign=”bottom”><b><font size=”1″ face=”Arial” color=”#CCFFFF”>32
Bit Display</font></b></td>
</tr>
<tr>
<td width=”202″ valign=”bottom” height=”0″></td>
<td width=”132″ valign=”bottom” height=”0″ align=”right”>
<p style=”margin-right: 8″><b><font size=”1″ face=”Arial” color=”#CCFFFF”>800
x 600 Resolution</font></b></td>
<td width=”462″ valign=”bottom”></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<table>
<td width=”636″ height=”36″ align=”right” valign=”bottom”><p><a href=”javascript:Enter()” onMouseOut=”MM_swapImgRestore()” onMouseOver=”MM_swapImage(‘Enter’,”,’entersite2.gif’,1)”><img src=”entersite1.gif” alt=”Enter Site” name=”Enter” width=”200″ height=”24″ border=”0″></a><a href=”javascript:Enter()”>
</a></p></td>
</body>

<script language=”JavaScript”>
<!–

window.open = SymRealWinOpen;

//–>
</script>
</html>

Please help, I would be so grateful!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@PittimannApr 11.2004 — Hi!

Just get rid of that:
---------------------


var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)

{

return (new Object());

}

window.open = SymWinOpen;
---------------------


below the function SymError()

and of this at the bottom:
---------------------


<script language="JavaScript">

<!--

window.open = SymRealWinOpen;

//-->

</script>
---------------------


Then it will work...

Cheers - Pit
Copy linkTweet thisAlerts:
@JamesHatterauthorApr 11.2004 — You've done it!

Thank you so much!

You're a legend! ?
Copy linkTweet thisAlerts:
@PittimannApr 11.2004 — Hi!

You're welcome! :p

I want to refuse the "legend" compliment - that will be for post mortal times ?... (thanks anyway!)

Cheers - Pit
×

Success!

Help @JamesHatter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...