|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sized box
Hi,
I am using Dreamweaver MX and am having trouble getting a page to open at a certain size... basically it opens too big is there a way i can limit the size? |
|
#2
|
||||
|
||||
|
yeah, there is a behaivour that allows you to use javascript to open the window at a certain size.
failing that you can use javascript to resize the window onload. But bear in mind that a lot of users find it annoying when websites "take over" control of window sizing |
|
#3
|
|||
|
|||
|
do u know the javascript for such an act?
|
|
#4
|
||||
|
||||
|
the function call is:
PHP Code:
but you need to play about with the sizing depending on what chroming is present in the user's browser |
|
#5
|
|||
|
|||
|
ok will do
so basically <javascript> window.self.resizeTo(250,700); </javascript> at the beginning of the page? |
|
#6
|
||||
|
||||
|
well id stick it in a function and call it from the body tag:
<head>... <script type="text/javascript"> function resize() { window.self.resizeTo(250,700); } </script> ...</head> <body onload="resize()">... but thats just me being finickity ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > sized box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|