gotcha41 0 Report post Posted January 19, 2005 how do you add width and height to your page? without adding it to your link you previously clicked... I mean, that the width and height should be included in the ORIGINAL page... i hope someone can help me with this... thanks in advance! btw: i'm not that familiar with scripting... Share this post Link to post Share on other sites
bjrn 0 Report post Posted January 19, 2005 Do you want to resize the user's window (like a pop-up), or do you just want to set the height and width as in the amount of space in the window your page takes (like a page where the content is 700px (or something) wide, no matter how large the user's screen is)? Share this post Link to post Share on other sites
gotcha41 0 Report post Posted January 21, 2005 Do you want to resize the user's window (like a pop-up), or do you just want to set the height and width as in the amount of space in the window your page takes (like a page where the content is 700px (or something) wide, no matter how large the user's screen is)? 41978[/snapback] I will explain it in an other way;the situation and problem is: In an msn-group I wanted to place a link to a site that contains a musicplayer outside the site, in a new window. (A musicplayer that doesn't take the whole screen). I found a way to make the screen smaller, by adding sizes to the link code, but now the problem is: MSN-groups doesn't support this code or pop-ups!! Now i'm searching to find a way to take you to this resized page, in a new window. the only manner to open the link in a new window is to right-click the link-> open in new window. But this makes the link open in a full sized-window. (with al the navigationbuttons etc.. , what you don't have in a pop-up, which i prefer). I hope you (or someone else) understood what i'm trying to say and is willing to help me . Share this post Link to post Share on other sites
bjrn 0 Report post Posted January 22, 2005 Okay, if I've understood it right it shouldn't be such a problem. As I understand it you know how to open a nice resized popup using a javascript link, but MSN groups is disabling all javascript (or at least the bit needed for the popup) on it's site.Assuming the popup is not on MSN groups this should work. First you have the link to the musicplayer, something like: <a href="musicplayer.html" target="_blank" title="The best music player ever">Click here to open a new window with my fantastic music player.</a> (edit names & such where needed).And then in the musicplayer page you put <body onload="resizeTo(200,200);"> instead of just <body>. That should resize the new window. This will still leave the address bar, status bar, scroll bar and so on in the window. You should be able to disable those things too, but I don't quite know how. If you want to do more than resize the window (like disable those bars), i'd make a function out of it so you get something like:<html><head><title>Music player</title><script language="javascript" type="text/javascript">function loadWindow() { resizeTo(200,200); //code for disabling the bars goes here}</script></head><body onload="loadWindow();">Here goes the music player stuff</body></html>It's the onload and the function it calls that are important, the I've just added so we get a whole page. And you can of course change the resizeTo values from 200, 200 to whatever you want. I think the first one is width and the other one is height, both in pixels.I hope this helps! Share this post Link to post Share on other sites
gotcha41 0 Report post Posted January 22, 2005 owkeej, thank you very much for helping me. it seems that you've understood my problem!I will try your proposal and I hope it will work.. I'm about to find out...Btw: i'm going to add 1 point to your reputation, you deserve it! Nice job bjrn .EDIT: i used your code(s) and it works, but there are still some (little) problems:-the "_blank"-part doesn't work in MSN-groups, but that can be solved by right click the link--> open in new window-the menu's nor the scrollbars aren't disabled, i need to find a code to solve this. I hope someone can help me with that. Share this post Link to post Share on other sites
ket 0 Report post Posted January 24, 2005 try this code to disable the menus, scrollbars, titlesbars, toolbars, and everything else that gets on your way.. menubar=0,scrollbars=0,titlebar=0,toolbar=0 hope that helped, if you have any more questions, dont be afraid to ask, and if i helped you, dont be afraid to add one point to my reputation. Share this post Link to post Share on other sites
bjrn 0 Report post Posted January 24, 2005 try this code to disable the menus, scrollbars, titlesbars, toolbars, and everything else that gets on your way.. menubar=0,scrollbars=0,titlebar=0,toolbar=0 42845[/snapback] So where would that go? Could you show us how the whole popup page should look? Share this post Link to post Share on other sites
gotcha41 0 Report post Posted January 24, 2005 try this code to disable the menus, scrollbars, titlesbars, toolbars, and everything else that gets on your way.. CODEmenubar=0,scrollbars=0,titlebar=0,toolbar=0 hope that helped, if you have any more questions, dont be afraid to ask, and if i helped you, dont be afraid to add one point to my reputation. thanks for the code, but i'm not raising your reputation, because you "asked" for it. MOre luck next time ! thanks anyway.. So where would that go? Could you show us how the whole popup page should look? 42931[/snapback] i don't know if you are talking to me but i can give you this information: The link that has it's destination at MSN-groups is : <a href="http://gotcha41.trap17.com/radio.blog/index.php" target="_blank" title="The best music player ever">Click here to open a new window with my fantastic music player.</a> and the code for the musicplayer is at this moment: <body onload="resizeTo(222,340)" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0" width="220" height="300"><param name="src" value="radioblog.swf?autoplay=<? echo $_GET['autoplay']; ?>"><param name="quality" value="high"><embed src="radioblog.swf?autoplay=<? echo $_GET['autoplay']; ?>" type="application/x-shockwave-flash" PLUGINSPAGE="get.adobe.com/flashplayer/; width="220" height="300"></object><br><!-- BANNER --><script language="javascript">document.write('<a href="radioblogclub.com+document.URL+'" target="_blank"><img src="banner.gif" height="40" width="220" border="0"></a>');</script><!-- END BANNER --></body></html> I don't know where menubar=0,scrollbars=0,titlebar=0,toolbar=0 should be inserted to.... a little more information plz .. Share this post Link to post Share on other sites
bjrn 0 Report post Posted January 24, 2005 i don't know if you are talking to me but i can give you this information...Thanks, but I was (as you perhaps suspected) asking ket, because his post didn't really make any sense to me. Share this post Link to post Share on other sites