Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 3:36 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ]  Bookmark and Share
Author Message
 Post subject: Pop Up Window Size
PostPosted: Sun Apr 29, 2007 4:48 pm 
Offline

Joined: Sun Apr 29, 2007 4:41 pm
Posts: 4
Location: france
hi, i'm new to flash as well as to this forum..
so this is my first post, 'hope that it sounds not too dumb... :o

i've learned how to open pop up window using javascript fuction call in html file. everything works fine, except that the window resize itself.

i made 300x200 graphic, and i typed "width=300, height=200", but
when i launch pop up window on the browser, it automatically put white blank area on the top and left side, make my graphic partly invisible..

how can i make a pop up window perfectly fits to my original graphic?

thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 7:44 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
Is the pop-up loading image.gif or a page like picture.html?? If it loads in a html page then you can get rid of the white space around the edge with a small peice of code.

Flabby Rabbit

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 7:51 pm 
Offline

Joined: Sun Apr 29, 2007 4:41 pm
Posts: 4
Location: france
it is a html page, contains a small vector graphic and two flash button object.

how can i get rid of the edge??


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 2:33 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
Add in this code inbetween your head tags:

Code:

<style type="text/css">
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
   background-color: #d6d6d6;
   overflow:hidden;
}
</style>

That should get rid of the margins on your page.

Flabby Rabbit


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 3:50 pm 
Offline

Joined: Sun Apr 29, 2007 4:41 pm
Posts: 4
Location: france
thanks million times, flabbyrabbit!
it works like magic..
i kinda understood command lines...(it's CSS commands, right?)
except what "overflow" means... :roll:

anyway, it really helped me, thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 4:48 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
To be honest i dont get the overflow bit myself. I get the margin bit because it just gets rid of the white area. I think it might work just as:
Code:
<style type="text/css">
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
}
</style>

But I haven't tried it myself.

Flabby Rabbit


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 5:22 pm 
Offline

Joined: Sun Apr 29, 2007 4:41 pm
Posts: 4
Location: france
i've just find out what it is;


http://www.w3schools.com/css/pr_pos_overflow.asp

it's very useful, and simple to use.

cool...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 5:25 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
Nice, thats really rather interesting. I needed that for the project im working on now hehe :D

Fabby Rabbit

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley