HighDots Forums  

Question on window resizing......

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Question on window resizing...... in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bmargolas
 
Posts: n/a

Default Question on window resizing...... - 07-12-2004 , 04:05 PM






when my web page is opened, I want the user window to automatically resize to a size specified by me. How would I go about doing this?

Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 04:09 PM







Quote:
when my web page is opened, I want the user window to automatically resize
to a size specified by me. How would I go about doing this?

Google for 'resizing browser with javascript' to find lots of scripts.
Here's one I use:

<a href="page.html" onClick="window.open('page.html', 'windowname',
'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,r
esizable=yes,copyhistory=no,width=300,height=290') ;return false;">Text
Link</a>


-Darrel




Reply With Quote
  #3  
Old   
seb
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 04:50 PM



<script language="JavaScript"><!--
self.moveTo(0,0)
self.resizeTo(600,450)
//--></script>

Change moveTO and resizeTo numbers as desired

bmargolas wrote:

Quote:
when my web page is opened, I want the user window to automatically resize to a size specified by me. How would I go about doing this?

Reply With Quote
  #4  
Old   
Alan
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 04:58 PM




Quote:
script language="JavaScript"><!--
self.moveTo(0,0)
self.resizeTo(600,450)
//--></script
this is one of the reasons why folks will disable JavaScript.



Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 05:00 PM



Be aware that some regard this as rude behavior.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"seb" <sebnewyork (AT) earhlink (DOT) netTakeThisOut> wrote

Quote:
script language="JavaScript"><!--
self.moveTo(0,0)
self.resizeTo(600,450)
//--></script

Change moveTO and resizeTo numbers as desired

bmargolas wrote:

when my web page is opened, I want the user window to automatically
resize to a size specified by me. How would I go about doing this?




Reply With Quote
  #6  
Old   
darrel
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 05:13 PM



Quote:
script language="JavaScript"><!--
self.moveTo(0,0)
self.resizeTo(600,450)
//--></script
This will resize the CURRENT window...not usually a good idea. It'll piss
some (if not many) people off.

-Darrel




Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 05:20 PM



On Mon, 12 Jul 2004 16:13:44 -0500, "darrel" <notreal (AT) hotmail (DOT) com>
wrote:

Quote:
This will resize the CURRENT window...not usually a good idea. It'll piss
some (if not many) people off.

Not me. It won't do anything in my browser. ;-)


Gary


Reply With Quote
  #8  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 06:17 PM



.oO(seb)

Quote:
script language="JavaScript"><!--
self.moveTo(0,0)
self.resizeTo(600,450)
//--></script
What makes you sure ...

* that the user will like it?
* that the new window size will fit the user's screen?
* that the window will be fully visible at this place on screen?
* that the user's browser will allow such crap at all?

Quote:
Change moveTO and resizeTo numbers as desired
Change the entire stuff to an empty string before release, that works
best. Only use such scripts if you want to annoy visitors, that makes it
easier for them to leave the site immediately.

Micha


Reply With Quote
  #9  
Old   
darrel
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 06:46 PM



Quote:
What makes you sure ...

* that the user will like it?
* that the new window size will fit the user's screen?
* that the window will be fully visible at this place on screen?
* that the user's browser will allow such crap at all?
and...

* the user isn't using multipe monitors
* the user doesn't have their side-bars open (bookmarks, history, etc...)

-Darrel




Reply With Quote
  #10  
Old   
bmargolas
 
Posts: n/a

Default Re: Question on window resizing...... - 07-12-2004 , 11:40 PM



my use isn't as compicated as all of this. I'm an artist and simply want total control over the end product. thats it. I do appreciate all of the input!!!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.