Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jun 14, 2007, 05:29 PM   #1
MichaelThomas
macrumors member
 
Join Date: Feb 2007
Some quick Javascript help?

Hey,
so I am new to javascript but I am starting to see how great it can be.
I was just wundering if someone could help me apply what I need into the following script I am using.

I want no menu bar, scroll bars, status bars etc, completely striped down browser window so there is just the title at the top. How would I go about implementing this into my code?

the code I'm using is...

-------------------------------------------

<script language='javascript'>

var wide = window.screen.availWidth;
var high = window.screen.availHeight;
if (parseInt(navigator.appVersion)>3)
top.moveTo(0,0);
top.resizeTo(wide,high);
</script>
-------------------------------------------

Hope that all makes sence
Thanks in advance to anyone who can help me out!
MichaelThomas is offline   Reply With Quote
Old Jun 14, 2007, 08:03 PM   #2
epochblue
macrumors 68000
 
epochblue's Avatar
 
Join Date: Aug 2005
Location: Nashville, TN
As a user of the web, I URGE you not to use JavaScript to resize or move (or in this case, both) someone's browser.

It's intrusive and border-line offensive (IMO). The web is designed to use scrollbars so let them be. As for the menubar and all the other stuff, it's part of the browser, resizing and moving the window won't get rid of them.

PLEASE PLEASE PLEASE remove that from your app/webpage.

However...if you choose not to heed my sage-like advice, screen is its own object. Remove the window. in front of screen and that should work.
__________________
-- epochblue rolls with a 20" Rev. D Intel iMac, a 15" Rev. C PowerBook, an 80GB iPod classic, 2G shuffle, and a 4GB iPhone.
epochblue is offline   Reply With Quote
Old Jun 14, 2007, 08:32 PM   #3
MichaelThomas
Thread Starter
macrumors member
 
Join Date: Feb 2007
I wouldnt normally use something like this but since its going to be used for my portfolio and linked from a home page stating it will be full screen i personally see no problem using it
thanks for your reply. I tried removing the window. but didnt seem to work. hmmm
MichaelThomas is offline   Reply With Quote
Old Jun 23, 2007, 04:19 PM   #4
CoreWeb
macrumors 6502
 
Join Date: Mar 2007
Location: Edge of reason
Quote:
Originally Posted by MichaelThomas View Post
I wouldnt normally use something like this but since its going to be used for my portfolio and linked from a home page stating it will be full screen i personally see no problem using it
thanks for your reply. I tried removing the window. but didnt seem to work. hmmm
I would suggest having a normal sized portfolio which then had a fullscreen button, much like YouTube, etc. does for viewing videos. That would be significantly less offensive. Some people may decide not to visit your site rather than look at it full screen, so I suggest that fullscreen be an option only.
__________________
flickr | Smeagol vs. PC Video
iMac G5 20"; MBP C2D 15" 2.33GHz 2GB RAM
30" ACD; FCS 2; Maya 7.0; CS4 Design Premium
CoreWeb is offline   Reply With Quote
Old Jun 15, 2007, 07:52 AM   #5
dcv
macrumors 601
 
Join Date: May 2005
Quote:
Originally Posted by epochblue View Post
As a user of the web, I URGE you not to use JavaScript to resize or move (or in this case, both) someone's browser.

It's intrusive and border-line offensive (IMO). The web is designed to use scrollbars so let them be. As for the menubar and all the other stuff, it's part of the browser, resizing and moving the window won't get rid of them.

PLEASE PLEASE PLEASE remove that from your app/webpage.

However...if you choose not to heed my sage-like advice, screen is its own object. Remove the window. in front of screen and that should work.
I really have to agree with this. I abhor websites that try to change my window size or other browser settings, there really is no need for this.
__________________
.
dcv is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump


All times are GMT -5. The time now is 11:38 AM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC