Site hosted by Angelfire.com: Build your free website today!
<script language="JavaScript">
window.resizeTo (screen.availWidth, screen.availHeight); window.moveTo (0, 0);
</script>

Bruceee's Sandpit
Web Design with SiteSpinner
home
home
home
Miscellaneous Code

The following are short bits of code you can place in your SiteSpinner workpage to do something useful. If you don't know how to do this, first see Including Code on Your Pages.

I have either used or tested everything here myself, so it should work for you too. If you find anything that doesn't or has bad side effects, please let me know.
Maximize a Window
This code will 'maximize' a window when it is opened. Actually it is not a true maximize -- rather it is 'make the window full-screen'  Use carefully -- you can annoy your viewers if you mess with their window sizes. Place this as a code object in the page to be maximized:
Send a Window to the Back
Place this code object on the page whose window is to be sent to the back, behind other browser windows:
<HR NOSHADE WIDTH=600>
Draw a Horizontal Line
Place this code object on your workpage where you want the line to start. Change the width parameter to be the length in pixels that you want:
<script language="JavaScript">
window.blur();
</script>
Hide Vertical Scroll Bar
Internet Explorer has the habit of displaying the scroll bar even on short pages when it is not needed. Go to Page Editor > Header > New Header > Custom Header and paste in this code. While you are there, give the header a name like 'NoScrollbar'
<style type="text/css">
body {overflow:auto;}
</style>
<SCRIPT LANGUAGE=JAVASCRIPT SRC="common.js">
</SCRIPT>
Include a Javascript File
To include a common Javascript file in your page, add this as a code object near the top of your page:
More details on Javascript includes.
| Home | Bandwidth | Bookmarks | Buttons | Code | Images | Map | Music | Review | Sounds | Email |

Close a Window
To close a browser window, enter the following in a text link:
  • Link Type:    -blank-
  • Link URL:     javascript:close();
  • Link Text::     Close this window (or anything you like)
Example: Close this window
code
code
code
Add code to your pages
<SCRIPT LANGUAGE="Javascript">
var url=location.href;
var title='Bruceee\'s Sandpit';  //change to suit your site
function newfavorite(){
if(document.all)
window.external.AddFavorite(url,title)
}
</SCRIPT>
Bookmark a page
Placing this code on your page makes it a little easier for visitors using Internet Explorer to bookmark your site.

Firstly a code object -- you may want to modify the url and title to suit your page.
Now a text link to the code:
  • Link Type:    -blank-
  • Link URL:     javascript:newfavorite()
  • Link Text::     Bookmark this page (or anything you like)
You could instead use a small image and place a very similar link on that.

Example: Bookmark this page