Lost: window resizing.. automatic or manual?

Hey lost :slight_smile:
I noticed that when I click on any of the experiments on your friggin’ cool site then it opens a new resized window. The size is exactly the size of the flash movie. Did you made a script to resize it manually or is there some automatic stuff going on? :slight_smile:
[EDIT] I just hate my footer… gotta disable it[/EDIT]

I wrote my window pop up script to have the width and height called on each link. That way for each link I can define what pages loads, the width and height of the window, and other settings.

Then each of the .swf files are embedded in an HTML that has all the margins removed.

Ok thx for the help… I think I’m gonna use that method on my site toooo… :slight_smile:

I wrote the method I used in a .txt file to post on this forum for people with pop up questions.

Do you want me to attach it here for you to see what I do?

PS: My method automatically centers the pop up no matter what screen res.

hmm… ok makes it easier for me :slight_smile:

Here it is then.

well… :-
there should appear a button “Open New Window 1” right? :-
for some reason… it does not… :-\

You need to post the link code in the actual body of your html.

It is a standard HTML link, so it should show.

FIIIXXXEEEED IIIT! sorry I was a bit blind :slight_smile:
there was a line missing…

I just tested, I copied and pasted the Javascript code between the head tags of the HTML page, then I pasted the link where I wanted in my document.

Ran a test on the page, clicked the link, worked perfectly.

[edit]Late post…lol, congrats :)[/edit]

HUIA deja vu!
btw it works and everything but it does not go to the site… “the page cannot be displayed” or osmething like that :-
It works well for www.hot.ee… but it doesnät go to kirupa.com or lostinbeta.com :-\ stranngeee…

it like… doesn’t work on .com but it works well on .ee :slight_smile:
I think I screwed something upp… ok thx!

Hrmm, worked fine for me :-\

Well my link was just in there as an example so you can obviously change that…lol.

The script does effect the page loading, that is all the browsers fault.

Be sure to use http:// before all URLS.

I know about the http:// thingy but I hate it!
I can’t test it on my PC that way! I hate it I hate it I hate it!
ok my next post is hours away now…
It’s movie time!

Have fun watching the movie.

You should always use http:// before any link!

You can’t test your file if you do it that way? That is pretty retarded if you ask me :-\

Hey cool! IT works great! I just found out that I don’t have to put http:// or anything in front of it!.. I have n’t tested it on the internet yet but on my pc it works great…
But one more thing… That would be awfully perfect if I could define the background color for the new window… is it een possible??? …well of course it is… everything is possible when it comes to computers :slight_smile:

It probably is, I don’t know how to do it.

Why don’t you just set the background color inside the html file you are loading?

well yeah I could do that but if the html contains only one picture then it would be easier to make a link for the picture itself with a background color of#FFFFFF. then I don’t have to make a new html for every image but… no biggie… just a though… :slight_smile:

Oh, if you are going right to the picture itself, you cannot change the bgcolor and get rid of the margins.

You can probably do it with PHP or something, and just link to 1 php page that has all that defined, and use PHP to dynamically load in the images depending on what you call.

I don’t know PHP though.

oh… oooohhhh… ok…
Wouldn’t it be easy if there was just one script! Then everybody could do everything!
I wanted to make a guestbook I know othing about CGI/PERL/PHP/MYSQL/etc.
I had the code in PHP but my host only accepts PERL/CGI
and now… there aint gonna be no guestbook… and no flash mailing too!