funkyjunky Posted April 6, 2006 Share Posted April 6, 2006 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 More sharing options...
pulpfiction Posted April 6, 2006 Share Posted April 6, 2006 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 Link to comment Share on other sites More sharing options...
aspnetguy Posted April 6, 2006 Share Posted April 6, 2006 you can use window.open to oipen in a new window and this function lets you control the size of the new window Link to comment Share on other sites More sharing options...
funkyjunky Posted April 6, 2006 Author Share Posted April 6, 2006 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<{POST_SNAPBACK}> 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 More sharing options...
pulpfiction Posted April 6, 2006 Share Posted April 6, 2006 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.. Link to comment Share on other sites More sharing options...
funkyjunky Posted April 6, 2006 Author Share Posted April 6, 2006 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..<{POST_SNAPBACK}> 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 More sharing options...
funkyjunky Posted April 6, 2006 Author Share Posted April 6, 2006 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 More sharing options...
Little Goat Posted April 6, 2006 Share Posted April 6, 2006 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 More sharing options...
funkyjunky Posted April 6, 2006 Author Share Posted April 6, 2006 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<{POST_SNAPBACK}> Right so how do i change the op() sizes? Link to comment Share on other sites More sharing options...
Little Goat Posted April 6, 2006 Share Posted April 6, 2006 function op(){window.open('http://www.google.com','Google','width=200,height=200')}just change the width and height in the window.open() right now they are both 200.LG Link to comment Share on other sites More sharing options...
scott100 Posted April 6, 2006 Share Posted April 6, 2006 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 More sharing options...
funkyjunky Posted April 6, 2006 Author Share Posted April 6, 2006 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 <{POST_SNAPBACK}> 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 More sharing options...
scott100 Posted April 6, 2006 Share Posted April 6, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now