gotcha41
Jan 19 2005, 12:03 PM
| | 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... |
Reply
bjrn
Jan 19 2005, 03:58 PM
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)?
Reply
gotcha41
Jan 21 2005, 05:04 PM
QUOTE(bjrn @ Jan 19 2005, 09:28 PM) 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)? 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  .
Reply
bjrn
Jan 22 2005, 02:23 PM
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: CODE <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 CODE <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: CODE <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!
Reply
gotcha41
Jan 22 2005, 03:36 PM
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.
Reply
ket
Jan 24 2005, 05:25 AM
try this code to disable the menus, scrollbars, titlesbars, toolbars, and everything else that gets on your way.. CODE 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.
Reply
bjrn
Jan 24 2005, 12:06 PM
QUOTE(ket @ Jan 24 2005, 06:25 AM) try this code to disable the menus, scrollbars, titlesbars, toolbars, and everything else that gets on your way.. CODE menubar=0,scrollbars=0,titlebar=0,toolbar=0 So where would that go? Could you show us how the whole popup page should look?
Reply
gotcha41
Jan 24 2005, 06:25 PM
QUOTE(ket) 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.. QUOTE(bjrn @ Jan 24 2005, 05:36 PM) So where would that go? Could you show us how the whole popup page should look? 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 : CODE <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: CODE <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="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="220" height="300"> </object><br> <!-- BANNER --> <script language="javascript"> document.write('<a href="http://www.radioblogclub.com/?ref='+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 CODE menubar=0,scrollbars=0,titlebar=0,toolbar=0 should be inserted to.... a little more information plz  ..
Reply
bjrn
Jan 24 2005, 07:20 PM
QUOTE(gotcha41 @ Jan 24 2005, 07:25 PM) 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.
Reply
Similar Topics
Keywords : adding width height- Max Table Width
- (13)
Well, I have a table that I don't want to be over 350 pixels in width - even on the largest
screens. On small screens, the table will be smaller. But on large screens, I don't want the
table to larger than 350 pixels... Is there a way to do that?...
Width Of Display Area Of Browser Window
- is there a formula? (6)
Ie Table Width In A Div Tag
- Table expands past screen at 100% (4)
Hey everyone. I have been designing websites for a long time but i have recently decided to tryout
the DIV layout technique instead of just using good old tables. However, this is the biggest problem
i have come across. So I have a page where i need to have a table to display a whole bunch of
details on armor in a game since the site is for players of final fantasy. However, when i do
width="100%" so that the table expands the whole way to the side of the div so it looks the best it
now will go past the edge and off the screen at 100%. Below is most of the code. Please h...
Div Child Height Same Height As The Father
- how to set child height to be the same.. (2)
I will try to explain myself as briefly as possible. I want have the next xhtml squeletone: CODE
<html> <head> </head> <body> <div
id="container"> <div id="header"> <div
id="searchEngine"> <!-- Search Engine Markup > </div>
</div> <div id="header2"> </div> <div
id="primarynav"> <!-- primary nav Markup > </div>
<div id="content...
Table Width Help
- table width="100%" goes off screen (2)
Hey everyone. My problem is that current i have a left menu and a right menu which are created using
a div the properties listed below. Then i have a center section to my website where i have a table
that i need to fill the remaining space on the screen (aka the space from the right side of the left
menu to the left side of the right menu). However, when i set the table's width to 100%, it goes
of the screen. Can anyone help me with this? If you look at my main page, the news section works but
only because the text forces the table to its largest size and then wraps....
Popup Window With Height And Width?
- (9)
I will try to explain: When clicking on the link, a pop-up window will be opened. I also want to
have the width=300 and height=160 (just examples /wink.gif' border='0'
style='vertical-align:middle' alt='wink.gif' /> ) Could someone give me a short code for that?...
Setting A Maximum Table Height
- (3)
How do I set a maximum table height? I tried height and max-height but neither worked. I need to
have it a certain height because more than that height it adds a vertical scrollbar, which adds a
horizontal scrollbar because I have an image that's pushing it. beeseven.trap17.com I want
the table that the updates are in to be a certain height with a scrollbar there instead of making it
above the page length and adding a main scrollbar....
Adding A Media Player On A Page
- (6)
A friend gave me this code and I'm yet to try it. She said this only works for audio files.
Do you know any codes for putting a media player on a page to view videos? /unsure.gif'
border='0' style='vertical-align:middle' alt='unsure.gif' /> ...
Looking for adding, width, height, page
|
|
Searching Video's for adding, width, height, page
|
advertisement
|
|