JAVA SCRIPT
    |   |   |   |   |   |   |   |   | CD SHOP  

 


 

 

 


::cookies::

Title: Favorite Background
Details: 2.55 KB * Uploaded June 30 1997
Description: Let a JavaScript cookie remember your favorite background color. On future visits, it automatically displays that background color for you.

 

Title: User Name
Details: 3.19 KB * Uploaded July 1 1997
Description: Cookies allow web pages to store information on the visitors computer and to later retrieve that information. This cookie records the visitor's name.

Title: Number Of Visits
Details: 2.31 KB * Uploaded July 1 1997
Description: This cookies records how many times the visitor has visited the page and writes to the page accordingly. (ie: You have been here 2 times).

Title: Name - Browser Info
Details: 2.75 KB * Uploaded June 30 1997
Description: This cookies records the visitor's name and also writes the visitor's browser information to the screen.

Title: Name - Visits - Last Visit
Details: 3.42 KB * Uploaded June 30 1997
Description: This cookies records the visitor's name, how many visits, and the last visit.

Title: Name - Visits - Message
Details: 3.32 KB * Uploaded June 30 1997
Description: This cookie records the visitor's name, how many visits, and displays a message depending on how many visits have been recorded.

::Equivalents::

Title: Acceleration Equivalents
Details: 5.70 KB * Uploaded July 3 1997
Description: JavaScript can help you find acceleration equivalents

Title: Area Equivalents
Details: 5.79 KB * Uploaded July 3 1997
Description: JavaScript can help you find area equivalents.

Title: Degrees to Radians
Details: 1.26 KB * Uploaded March 31 1998
Description: Use JavaScript to convert Degrees to Radians and vice versa.

Title: Energy Equivalents
Details: 5.67 KB * Uploaded July 3 1997
Description: JavaScript can help you find energy equivalents.

Title: Length Equivalents
Details: 5.18 KB * Uploaded July 3 1997
Description: JavaScript can help you find length equivalents.

Title: Mass Equivalents
Details: 5.83 KB * Uploaded July 3 1997
Description: JavaScript can help you find mass equivalents.

Title: Metrology Equivalents
Details: 5.83 KB * Uploaded July 3 1997
Description: JavaScript can help you find metrology equivalents.

Title: Power Equivalents
Details: 5.28 KB * Uploaded July 3 1997
Description: JavaScript can help you find power equivalents.

Title: Pressure Equivalents
Details: 6.31 KB * Uploaded July 3 1997
Description: JavaScript can help you find pressure equivalents.

Title: Programming Equivalents
Details: 4.03 KB * Uploaded July 3 1997
Description: JavaScript can help you find programming equivalents.

Title: Temperature Equivalents
Details: 0.67 KB * Uploaded July 3 1997
Description: JavaScript can help you find temperature equivalents.

Title: Velocity Equivalents
Details: 5.17 KB * Uploaded July 3 1997
Description: Another way to use JavaScript to find velocity equivalents.

::Froms::

Title: Anywhere Mail
Details: 1.02 KB * Uploaded August 4 1997
Description: Use this script to allow visitors to mail anyone, at any time.

Title: Check E-Mail
Details: 1.19 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that e-mail addresses provided in a form submission contain a prefix, the '@' sign, and an appropriate suffix (.com, .net, etc.).
 

Title: Country Chooser
Details: 6.08 KB * Uploaded July 24 1998
Description: If you'd like to know where visitors to your site live, add this to your feedback forms. They just choose a region, and the second menu changes appropriately, allowing them to choose their country. (If they choose USA, it allows them to select their state) Neat!

Title: Customized Window
Details: 2.54 KB * Uploaded July 11 1997
Description: Use Javascript to allow visitors to open a customized window.

Title: Exit Window
Details: 0.64 KB * Uploaded May 15 1998
Description: When a visitor leaves your page, JavaScript can automatically open a new window. Use it to say "thanks for visiting", etc. Very neat! Check it out!

Title: Focus on a Form Tutorial - Next Step Software
Details: 1.04 KB * October 25 1998
Description: What is focus? Focus is when something is active or highlighted. Example: When the cursor is in a form blinking. That form has the focus. The following are examples of how to use the focus command.
 

Focus

What is focus? Focus is when something is active or highlighted. Example: When the cursor is in a form blinking. That form has the focus. The following are examples of how to use the focus command.

 



 

Focus to a text box when page loads.


 

See how the cursor is already in the form. Normally the cursor won't be in it. Put the following lines into your body tag.



An example is:
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="this.document.form1.a.focus();">
or
<body onLoad="this.document.form1.a.focus();">

And put this somewhere in your page.



 



 

Giving focus to a form and to having all the words inside it highlighted

Just copy the following lines.



 



 

Highlighting a text area

Hello there!!!

 

Now all you need to do is goto Edit and hit copy and BAM! You just copied that script!! To use this copy this code.



You can use this for regular text boxes as well!
 



 

Giving the focus to a button

 


See how the text in the button has a box around it. If you hit the space bar, you can press in the button. A more practical use for this is using the onLoad function. Here is the script.



 



Quick Note: To declare a certain form or button part of you code would look like this:
< body onLoad="document.form1.a.focus()">
In the onLoad command, "document" refers to the current document. "form1" refers to the the name of a from. "a" refers to the name of the input type within the form. "focus()" is the focus command ( "select()" selects all the text). This should help you if you want to create your own focus commands.
 

Title: Initial Caps
Details: 2.10 KB * Uploaded July 11 1997
Description: Use Javascript to convert entries to Initial Caps. Also, this script prevents jokers from typing in all caps.

Title: Items List
Details: 1.30 KB * Uploaded August 4 1997
Description: Javascript can remember a list of several items you enter. Just enter an item and click 'Add to List'. When you are finished, click 'Show List' to see the entries.

Title: Mail - Pick Subject
Details: 4.15 KB * Uploaded July 11 1997
Description: Use Javascript to help organize your visitor e-mail. Visitors pick from several predetermined subjects the most appropriate subject for their e-mail. Visitor are also prompted to reenter information for incomplete or invalid entries. A cookie also records the visitor's name for future e-mails.

Title: Mailing List
Details: 4.56 KB * Uploaded July 11 1997
Description: Use Javascript to sign up visitors for your mailing list. Once again, Javascript ensures that the visitors have filled out the form completely and correctly. Visitors area also prompted to reenter any incomplete or invalid entries.

Title: Multiple Mailer
Details: 1.78 KB * Uploaded July 3 1998
Description: JavaScript can help you send an e-mail to anyone on your "list". Just use the pulldown menu to select a recipient, compose your message, and hit 'Send Message' to send it. This too, is another good JavaScript example for all beginners to learn from

Title: New Window
Details: 0.96 KB * Uploaded May 15 1998
Description: Do you have a link that you'd rather have open in a new window? This little script will do just that! You can even use a button or a text link to open the new window! Check out the example and see what you think!

Title: No Entry
Details: 1.00 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that visitors do not leave a form entry blank.

Title: No HTML
Details: 1.15 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that visitors do not type in HTML entries.

Title: Smut Engine
Details: 1.31 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that forms submissions to do not contain words you don't want. It can eliminate dirty words or competitors' names.

Title: Suggestions
Details: 3.82 KB * Uploaded July 11 1997
Description: Use Javascript to allow visitors to send your feedback

Title: Selection Validation
Details: 3.04 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that visitors choose both a radio button and a checkbox. Invalid submissions are cancelled.

Title: Validation
Details: 2.47 KB * Uploaded July 11 1997
Description: Let Javascript help you receive feedback from your visitors

Title: Cookie Form Validation
Details: 2.71 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that all elements of a form are properly filled out before mailing.

Title: Date Validation
Details: 1.38 KB * Uploaded Jully 11 1997
Description: Use Javascript to figure out if a certain date has or will be valid.

Title: Guestbook Validation
Details: 5.95 KB * Uploaded July 11 1997
Description: Use Javascript to ensure that all elements of a form are properly filled out before mailing.

Title: Information Validation
Details: 1.16 KB * Uploaded July 11 1997
Description: Test the powers of Javascript. Watch as Javascript tells you if information about you is valid or not.

 

 


 

 

NEXTPAGE


 



TEDADE BAzdid AZ in PagE::>