It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Pop Up Window Size

Moderator: Phate

Pop Up Window Size

Postby milc on Sun Apr 29, 2007 3:48 pm

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!
milc
 
Posts: 4
Joined: Sun Apr 29, 2007 3:41 pm
Location: france

Postby flabbyrabbit on Sun Apr 29, 2007 6:44 pm

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
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby milc on Sun Apr 29, 2007 6:51 pm

it is a html page, contains a small vector graphic and two flash button object.

how can i get rid of the edge??
milc
 
Posts: 4
Joined: Sun Apr 29, 2007 3:41 pm
Location: france

Postby flabbyrabbit on Mon Apr 30, 2007 1:33 pm

Add in this code inbetween your head tags:

Code: Select all

<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
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby milc on Mon Apr 30, 2007 2:50 pm

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.
milc
 
Posts: 4
Joined: Sun Apr 29, 2007 3:41 pm
Location: france

Postby flabbyrabbit on Mon Apr 30, 2007 3:48 pm

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: Select all
<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
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby milc on Mon Apr 30, 2007 4:22 pm

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...
milc
 
Posts: 4
Joined: Sun Apr 29, 2007 3:41 pm
Location: france

Postby flabbyrabbit on Mon Apr 30, 2007 4:25 pm

Nice, thats really rather interesting. I needed that for the project im working on now hehe :D

Fabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 0 guests