-
Window Size?
Hello,
I currently have a website that has a photo gallery. The home page has a link to the actual photo gallery. I'm using the (getURL) to open the photo gallery in a new window, however the new window opens up to the same size as the home page. I would like to shrink down the window size of the photo gallery so the user can still see some of the home page behind the new window.
I know javascript can take care of this problem, but I was wondering if there is a way to do it with Flash? I just need to specify the size of the new window when it opens.
Any help is appreciated.
Thank you.
-
Ryan Thomson
Even doing that from within flash requires javascript and popup blockers seem to dislike it when you use this method.. I would suggest you just use javascript.
-
Would browsers actually count that as a pop up, since it is actually a new URL? Essentially I am going to a completly different page with a different URL. I just wanted it to be a bit smaller of a window.
-
Bmcc*81
Open window here you go
PHP Code:
on (press) {
getURL ("javascript:NewWindow=window.open('http://www.yourWebSite.com/casino/casino_frame.php','newWin','width=640,height=480,left=0,top=0, toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
WORKED FOR ME!!!
-
Ryan Thomson
Originally Posted by bmcc81
PHP Code:
on (press) {
getURL ("javascript:NewWindow=window.open('http://www.yourWebSite.com/casino/casino_frame.php','newWin','width=640,height=480,left=0,top=0, toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
WORKED FOR ME!!!
hmm that's gets blocked for me using firefox, chrome or ie without any extra pop up blockers running.. that's the one I used to use a few years ago.
-
Bmcc*81
I just tested it on one of my sites and it still seems to work w/ firefox atleast. If someone finds a better solution I'm all ears.
Thx,
bmcc
-
Ryan Thomson
Would you mind posting a link to a working version? I'd love to be wrong on this one... way nice keeping it all in flash!
thanks
-
Bmcc*81
Sure,
THE LINK
and then look for the black TOURNAMENT/JACKPOTS TABS in the right collumn.
Click on the JACKPOTS TAB, you won't see the feed I'm having problems with security for that feed, but you'll be able to launch the casino software by clicking where you see "XML FEED IS TEMPORARILY DOWN"
Seems to be working on my end, I'd like to know if other people are having issues with it.
So please let me know what happens.
THX,
BMCC
-
Ryan Thomson
woot! it's works in ie 5-8, firefox, chrome and safari.
Thanks for posting, I'll put that code back in my 'use me' folder
-
Bmcc*81
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|