home *** CD-ROM | disk | FTP | other *** search
/ PC User 2005 May / CD / PCU0505CD.iso / software / full / coffecup / files / html2005.exe / %MAINDIR% / Javascript / ResizeToFullScreen.xml < prev    next >
Encoding:
Text File  |  2005-02-16  |  834 b   |  38 lines

  1. <ccResource>
  2.   <ccTitle>
  3. Resize to Full Screen    
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. Use this script to make sure that your user's browser is opened up to full size.
  10.   </ccDescription>
  11.   <ccInstructions>
  12. The code goes only inside the BODY tags.  You can change the items below to suit your needs.
  13.   </ccInstructions>
  14.   <ccHeadContent>
  15.   
  16.   </ccHeadContent>
  17.   <ccBodyContent>
  18. <script>
  19.   function full_screen(){
  20.   window.moveTo(0,0)
  21.   window.resizeTo(screen.width,screen.height)
  22.   }
  23. </script>
  24.  
  25. <form>
  26. <input type="button" onClick="full_screen()" value="Full Screen!">
  27. </form>
  28.   </ccBodyContent>
  29.   <ccElementContent>
  30.   
  31.    <ccElementName></ccElementName>
  32.    <ccElementAction></ccElementAction>
  33.    
  34.   </ccElementContent>
  35.   <ccExtraData>
  36.  
  37.   </ccExtraData>
  38. </ccResource>