Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-07-2004, 10:10 AM   #1
avelives
"the dude abides..!"
 
avelives's Avatar
 
Join Date: Apr 2002
Location: UK
Posts: 365
Send a message via AIM to avelives Send a message via Yahoo to avelives
Default Pop up question

Ok i have a question, i realise there are oodles of forum replies about pop up windows but none specifically cover what im after.

I have an image on my splash page with an image map which when clicked launches my site.
However i want it to launch my site in a pop up window with no toolbars etc (you know taking up the whole window)

I have found scripts for pop ups within flash and many for ones done with text links or automatically but none which seem to work on my image map.

Here is my code for the image map
HTML Code:
<map name="Map">
  <area shape="rect" coords="141,175,207,186" href="SENDEN_B.html"></map>
OR alternatively some code which will launch a window but from an image button (i could feasibly chop my intro art up and arrange it in a table so that one bit of it was the BUTTON for launching

Any help appreciated

Last edited by avelives; 10-07-2004 at 07:26 PM..
avelives is offline   Reply With Quote
Old 10-07-2004, 07:25 PM   #2
avelives
"the dude abides..!"
 
avelives's Avatar
 
Join Date: Apr 2002
Location: UK
Posts: 365
Send a message via AIM to avelives Send a message via Yahoo to avelives
Default

Hmm no body got any idea then ??
Its odd ive been looking all day for something on this and cannot find anything relevant.

Maybe i wasnt clear the first time, I basically need some javascript which i can apply to a an image (button) which launches a pop up window which is customisable (in terms of scaling/scrolling etc)

If not i guess ill have to do a flash movie to launch it as i know how to do it from flash. Either that or keep looking
avelives is offline   Reply With Quote
Old 10-07-2004, 08:22 PM   #3
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

try replacing your href with a javascript function name. then cut and paste one of the popup functions you've found into a javascript function with the same name referenced in your map. should work.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 10-07-2004, 08:27 PM   #4
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

if your doing this in dreamweaver... there is probably an extension that does this for you.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 10-08-2004, 09:46 AM   #5
avelives
"the dude abides..!"
 
avelives's Avatar
 
Join Date: Apr 2002
Location: UK
Posts: 365
Send a message via AIM to avelives Send a message via Yahoo to avelives
Default

ok i came up with the following
Code:
<script>
function openpopup(){
var popurl="SENDEN_B.html"
winpops=window.open(popurl,"","width=820,height=500,")
}
</script>
Code:
<map name="Map">
  <area shape="rect" coords="141,175,207,186" href="javascript:openpopup()"></map>
I thought id post the code in case anyone in the future had same problem i had (as it happened though solution was alot easier than i expected)
avelives is offline   Reply With Quote
Old 10-11-2004, 09:04 AM   #6
avelives
"the dude abides..!"
 
avelives's Avatar
 
Join Date: Apr 2002
Location: UK
Posts: 365
Send a message via AIM to avelives Send a message via Yahoo to avelives
Default

I have this working now (as i said above) but id quite like to know how i can add an address and tool bar to the pop up and make it maximised on spawn...

Any ideas how to do this or decent tutorial which will explain it (javascript isnt one of my strong points)
avelives is offline   Reply With Quote
Old 10-11-2004, 03:05 PM   #7
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

winpops=window.open(popurl,"","width=820,height=50 0,location=yes,toolbar=yes")

location is the address bar, yes to show, no to hide
toolbar is the toolbar, yes to show, no to hide.

you won't want to set the width and height if you want it maximized. so take those out. instead you could put in screen.availHeight & screen.availWidth.
i don't think thats truely maximized, but it should fill the screen.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.