/    Sign up×
Community /Pin to ProfileBookmark

javascript help needed

Help i need a way to show a popup window ontop when i click a picture. I now get a popup right ontop on the first picture popup but when i click the second picture the picture changes in the popup but bellow every window. So what i need is to show the popup ontop of every window on all times.
The script i am using now=

<SCRIPT LANGUAGE=”JavaScript”>
function foto1() {
x=(screen.availWidth-500)/2;
y=(screen.availHeight-375)/2;
window.open(“fotos/1.html”,”Endpro”,”toolbar=no,top=”+y+”,left=”+x+”,scrollbars=no,resizable=no, height=375,width=500″);
window.focus();
}
</script>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@requestcodeMar 09.2004 — Try this:

NewWin=window.open("fotos/1.html","Endpro","toolbar=no,top="+y+",left="+x+",scrollbars=no,resizable=no, height=375,width=500");

NewWin.focus();
Copy linkTweet thisAlerts:
@chakraMar 09.2004 — ... sorry it doesn't work...

no menu displayed on the html page...

other suggestions?
×

Success!

Help @indolicious 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.6,
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,
)...