PDA

View Full Version : auto-launch centered popup


danl linehan
11-07-2009, 02:50 AM
i hate auto launching anything. i hate popups. my client wants both. ugh.

i know how to launch a centered popup with the click of a button, but i don't know how to launch a centered popup once a movie gets to a certain frame on a timeline... probably really easy, but i need help with this one...

thanks...

[Paul Ferrie ]
11-19-2009, 11:32 AM
I dont understand your question. getURL() will work with the within the timeline as well as on an event. Can you show what you have so far?

danl linehan
11-19-2009, 06:41 PM
i actually got it working... i used the following solution:

placed this (which i got from a pop-up generator) in the HEAD of my page:

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300,left = 440,top = 362');");
}

then placed this on the keyframe in my movie:

getURL("javascript:popUp('popuppage.html')");

worked fine!