Jump to content

ARRRGH!! Stupid Window!


funkyjunky
 Share

Recommended Posts

Hey!Im funkyjunky and my new site www.pulse-games.co.uk displays flash moviesBut when people click the links to view the flash it come up full screen!I would like it to come up in a 440 x 500 boxIs there a script i could use to do this? Or is it an HTML thing??I am using Dreamweaver 8 to make the site if that helpsThank you all.Ed :)

Link to comment
Share on other sites

Hi, Check out the link for syntax of popup window.http://www.javascript-coder.com/window-pop...ndow-open.phtmlThe size of the window can be altered by changing the "WIDTH" and "HEIGHT" attributes of window.open commandeg: width=350,height=250

But thats for when the page is opened...not when a hyperlink is clikced....isnt it???You can tell im new to this!cheersed
Link to comment
Share on other sites

java script:function op(){window.open('http://www.google.com','Google','width=200,height=200')}HTML:<a href="#" onclick="op();">Click here</a>This should work..

Thanks guys!You do a great jobKeep it real...(i will let you know how it goes!)ed
Link to comment
Share on other sites

Whoops dpuble post!Ummm the html version...How do i make the window a spercific size?<a href="http://www.pulse-games.co.uk/flash/earthde.swf" onclick="op();">Click here</a>Thats the code ive done...but does tht make it open a spercific size?

Link to comment
Share on other sites

the function op() is what makes the window be a specific size. the link only makes the function start. that link code is right, but I would do this:<a href="java script:op()">open</a>it basically does the same thing, it's just a better way to do it, I think. :) LG

Link to comment
Share on other sites

the function op() is what makes the window be a specific size. the link only makes the function start. that link code is right, but I would do this:<a href="java script:op()">open</a>it basically does the same thing, it's just a better way to do it, I think. :) LG

Right so how do i change the op() sizes?
Link to comment
Share on other sites

No need for a function, just put it all on the same line:

<a href="javascript:void('')" onclick="window.open('http://www.pulse-games.co.uk/flash/earthde.swf','','width=400,height=400')">Click here</a>

just an idea :)

Link to comment
Share on other sites

No need for a function, just put it all on the same line:
<a href="javascript:void('')" onclick="window.open('http://www.pulse-games.co.uk/flash/earthde.swf','','width=400,height=400')">Click here</a>

just an idea  :)

EXCELLENTRight that works!Thank you very much! Cheers for actually responding to my posts (other forums arent allways as...shall we say...quick to reply) (4 weeks and waiting...!!! :) )I only have one other question...and thats about having bars which you click browse and acsess files from a pc and upload them to a server.... Like you do if you attach a file to an e-mail...that style of upload but to a server...Do i need to make a seperate topic>?
Link to comment
Share on other sites

It's preffered that if one topic is solved then that's it finished with. If you have any new questions then start a new topic :) You can do what you want but not with javascript, you will have to use a server side language, do you know what language your server supports ie asp or php? After you find that out post your question in the relevant forum.for php: http://www.tizag.com/phpT/fileupload.phpcheers :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...