PDA

View Full Version : Brain problems, need HTML help



idolthoughts
December 5th, 2004, 01:25 PM
Ok so I am working on a new site for AngeredPenguin.com and well I am in a small block. I need to know how to set it so after my flash intro loads it will open up a smaller window with the main page on it. If anyone knows please I'd love to hear it.

ironikart
December 5th, 2004, 04:13 PM
use getURL() in flash to target a javascript command you embed on your HTML page. There should be plenty of info in the flash section and I think this site even hosts a few tutorials on it.

idolthoughts
December 5th, 2004, 07:13 PM
heres what i did but thanks for that I need to learn Flash a little more though lol im just lazy i guess.

HEAD

SCRIPT LANGUAGE="JavaScript"
!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=0,width=640,height=480,left = 960,top = 272');");
}
// End --
/script

A HREF="javascript:popUp('index2.html')">Open the Popup Window/A

[m]
December 5th, 2004, 08:49 PM
Well then, use getURL("javascript:popUp('index2.html')"); at the and of the intro and you're fine. Don't forget to include the <script>javascript stuff</script> in the html document!