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

  1. <ccResource>
  2.   <ccTitle>
  3. Opens A Seperate Window - N
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. This script opens a separate window for the locations you give it. Pages are neat but pictures make a cool photo album. 
  10.   </ccDescription>
  11.   <ccInstructions>
  12. Change the attributes that read menubar=0,toolbar=0, etc... and Width & Height 
  13. to meet your needs.  Make sure you place the URL's you want to go to and their names below.
  14.   </ccInstructions>
  15.   <ccHeadContent>
  16.   </ccHeadContent>
  17.   <ccBodyContent>
  18. <script language="JavaScript">
  19. <!-- Hide the script from old browsers --
  20. function surfto(form) 
  21. {
  22.   var myindex=form.dest.selectedIndex
  23.   window.open(form.dest.options[myindex].value,"main","menubar=1,toolbar=0,location=0,directories=0,status=1,copyhistory=0,width=235,height=235");
  24. }
  25. //-->
  26. </SCRIPT>
  27. <CENTER>
  28. <FORM NAME="myform">
  29.   <SELECT NAME="dest" SIZE=1>
  30.     <OPTION VALUE="http://www.coffeecup.com">CoffeeCup Software
  31.     <OPTION VALUE="http://www.tmcm.com">Too Much Coffee Man
  32.     <OPTION VALUE="http://www.netscape.com">Netscape
  33.     <OPTION VALUE="http://www.infoseek.com">InfoSeek
  34.   </SELECT>
  35. <P>
  36. <INPUT TYPE="BUTTON" VALUE="Go  !" onClick="surfto(this.form)">
  37. </FORM>
  38. </CENTER>
  39.   </ccBodyContent>
  40.   <ccElementContent>
  41.   
  42.    <ccElementName></ccElementName>
  43.    <ccElementAction></ccElementAction>
  44.    
  45.   </ccElementContent>
  46.   <ccExtraData>
  47.  
  48.   </ccExtraData>
  49. </ccResource>