home *** CD-ROM | disk | FTP | other *** search
-
- <ccresource>
- <cctitle>
- Open Link Option Chooser
- </cctitle>
- <cccategory>
- Browser
- </cccategory>
- <ccDescription>
- This code will allow the visitor to choose whether or not to open the link in a new browser window or not.
- </ccdescription>
- <ccinstructions>
- The code goes both within the HEAD and BODY tags. You can change the links to suit your needs.
- </ccinstructions>
- <ccheadcontent>
- <SCRIPT LANGUAGE="JavaScript">
-
- <!-- Begin
- function hyperlinks(target)
- {
- if (target) where = "_blank";
- else where = "_self";
- for (var i=0; i<=(document.links.length-1); i++)
- {
- document.links[i].target = where;
- }
- }
- // End -->
- </script>
- </ccheadcontent>
- <ccbodycontent>
-
-
- <div align="center">
- <form>
- <input type="checkbox" name="targetnew" onclick="hyperlinks(this.checked)"> I want the links to open in a New Window
- </form>
-
- <a href="http://www.coffeecup.com/">CoffeeCup's Main Site</a><br>
- <a href="http://www.coffeecup.com/help">Get some help!</a><br>
- <a href="http://www.coffeecup.com/software">Download our entire collection.</a>
- </div>
-
- </ccbodycontent>
- <ccelementcontent>
-
- <ccelementname></ccelementname>
- <ccelementaction></ccelementaction>
-
- </ccelementcontent>
- <ccextradata>
-
- </ccextradata>
- </ccresource>
-