/    Sign up×
Community /Pin to ProfileBookmark

Problem with Popups

I Have a problem with the pop up I am trying to create.

I am trying to open PORTFOLIO_EST.swf in a pop up window as well as in the main window.

I used the pop up generator to provide the script, but when I use it I get multiple pop up windows.

Heres the script:

[SIZE=”2″][SIZE=”1″][COLOR=”Teal”]<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<SCRIPT LANGUAGE=”JavaScript”>

function popUp(URL) {
day = new Date();
id = day.getTime();
eval(“page” + id + ” = window.open(URL, ‘” + id + “‘, ‘toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=923,height=438,left = 50.5,top = 165’);”);
}
// End –>
</script>

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>:: PORTFOLIO ::</title>
</head>
<body bgcolor=”#ffffff”>

<!–url’s used in the movie–>
<!–text used in the movie–>
<!– saved from url=(0013)about:internet –>
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0” width=”923″ height=”438″ id=”ESTATE/PORTFOLIO_EST” align=”middle”>
<param name=”allowScriptAccess” value=”sameDomain” />
<param name=”movie” value=”PORTFOLIO_EST.swf” /><param name=”quality” value=”high” /><param name=”bgcolor” value=”#ffffff” /><embed src=”PORTFOLIO_EST.swf” quality=”high” bgcolor=”#ffffff” width=”923″ height=”438″ name=”ESTATE/PORTFOLIO_EST” align=”middle” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
</object>
<body>
<BODY onLoad=”javascript:popUp(‘PORTFOLIO_EST.html’)”>

</body>
</html>

I’ve tried taking out some of the script but it ends up not opening a pop up window.

If anyone could help it would be most appreciated.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @koh 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.13,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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