Multi popups from 1 page

okay - i read the ‘Launching a Centered Pop-Up Window’ and everything works okay, but here is my question:

i have 3 separate links from the main page that need to be pop-ups. do i make a layer for each button in order to put the script in on the time line?

you could write a function for it :slight_smile: and then just pass it through.

[AS]
//put this in frame
function popMyWindowsBaby(passURL) {
getURL(passURL, “_self”);
}

//put this on your button
on(release) {
popMyWindowsBaby(‘javascript:your javascript code here;’);
}

that worked just perfect – thanks. i never thought about going about it that way. i gues i was doing that **** thing called ‘thinking’ again. it was late last nite snirt

okay – i had it working, but now (as you can tell from my other reply – i screwed something up) i am going to start over and see if maybe i miss typed someting. i’ll get back to you to let you know if it worked

and by the way – thanks – your answers really help.

i´m sorry but could you explain a bit more the code?

[AS]
//put this in frame
function popMyWindowsBaby(passURL) {
getURL(passURL, “_self”); WHY _SELF IF IT IS A POPUP? AND IN WHAT FRAME YOU MEAN TO PUT IT??
}

//put this on your button
on(release) {
popMyWindowsBaby(‘about :your javascript code here;’); DOES ABOUT: GOES OR IT´S JUST AN EXAMPLE AND WHAT YOU MEAN BY JAVASCRIPT CODE HERE??
}

i´m sorry again if these questions are too newbie ::))