Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Top 100 Snippets


..Most used JavaScript code
Search on Top100 to view the full snippets

Cookies
 Create expiration date
 Delete cookie
 Determine if cookies are turned off
 Read a cookie
 Write a cookie
Date - Time
 Calendar - 3 - month rolling
 Calendar - daily
 Calendar - monthly
 Calendar - year
 Clock - military time
 Display date - time on a web page + updates
 Last date page was modified
 Set time limit on New links
 Show date - tme, 5 formats
 Time remaining
 World Clock
Dialog
 Ask for password
 Display message when form loads
 Printer dialog
Email
 Email button
 Send URL to friend
Error Handling
 404 referrer
 Custom error handler function
 Script debugger
Finance
 Compound interest
 Loan calculations
 Sort checks
Forms
 Cancel form submission
 Check all checkboxes
 Check for numeric values
 Check for spaces in text field
  Date selection
 Email - URL validation
 Popup help
Graphics
 Preload images
 Rainbow text
 Random image
 Rollover
 Screen size
 Slideshow
 Slideshow II
Images
 Wait until page loads to animate GIF
Math
 Add commas to a number
 Calculator - simple
 Random value
 Round a value
Menus
 Menu - always visible
 Menu - cascading
 Menu - movable
 Menu - navigation buttons
 Menu - slide
Mouse
 Change status bar content on mouseover
 Display link info in statusbar
Navigation
 Button as a link - 2 methods
 Directory header
 Forward - Backward buttons
 Highlight links
 List all links on a page
 Remove underline from links
 Slideshow
Physics
 Ball drop
Sound
 Detect browser and play sound
 Play a sound file
Syntax
 External source for script
User - System
 Information Report
Windows
 Close a window
 Create content in a new window
 Open a new URL in the current window
 Open a new window ( in current window)
 Open window of specific size
 Pass data between windows
 Pass data to a new HTML file
 Popup window - controlled position
 View page source
Write
 Show time / day visitor comes to a web page..Most used JavaScript code