|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
|
|
#1 |
|
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 |
| View Public Profile |
| Find More Posts by MichaelThomas |
|
|
#2 |
|
macrumors 68000
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. |
|
|
|
|
|
#3 |
|
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 |
| View Public Profile |
| Find More Posts by MichaelThomas |
|
|
#4 | |
|
macrumors 6502
Join Date: Mar 2007
Location: Edge of reason
|
Quote:
__________________
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 |
|
|
|
|
|
|
#5 | |
|
macrumors 601
Join Date: May 2005
|
Quote:
__________________
.
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|