|

JavaScript.com Latest JavaScripts Web Feed
JavaScript.com Latest JavaScripts 
Sun Apr 24 04:30:19 EDT 2011
Home: http://www.javascript.com
Feed: http://www.javascript.com/jss.rdf
getStyle - Use this snippet to get the rendered style of an element. Quick and simple to implement.
Display Page URL - Sometimes you may want to give your visitor the URL of the page they are on. You can provide the entire path with breadcrumb scripts but, if you just want to give them the current URL, this short snippet will do the trick. Just place it anywhere on the page you want to display the URL.
Dynamic Drop Down List - Use this script when you need to offer multiple choices in your forms. Clicking a link dynamically changes the contents of the accompanying drop down list. Add as many options as you need. Complete details are explained in the script.
Accept Terms - This script allows your visitors to accept your terms and conditions before proceeding by checking a box. If they don't agree, an exit button will takes them to a designated page.
Image Tool Tips - This script creates 'tool tips' for images. Use as much text as you want. Formatting is controlled through the use of style sheets. The text will re-size, according to the screen width and placement of cursor.
Expanding Text - Draw attention to information on your site with JavaScript-powered expanding text! Just enter the text you want to use, the max size you want it to reach, and speed it should "grow" and it's ready to go. Neat!
Confirm Entry - This JavaScript asked you if you would like to continue. If you say "OK", it loads the page. If you click "CANCEL" (kinda like no) then it takes you back where you came from. Very neat! Really short!
Match Cases - Modifies a number by adding commas after every third digit. For example, 123456789 is converted to 123,456,789. The script example shows this script as used on numbers of various sizes. And, it demonstrates a clever use of the modulus operator.
Safe Colors - If you are involved with graphics creation or website design, it's important to understand how colors are seen on different browsers and different platforms. This script will show you all the "safe" colors, the ones that show up the same for all browsers and platforms. So, when you design a site or create an image, be sure to use the "browser-safe" colors! Don't you just love JavaScript?
Redirect if Page Moved - This script will automatically redirect the visitor to another page after a given number of seconds if the requested page is no longer available or has been moved to a new location.
IP Address - This script displays the user's IP address in the title bar, status bar, and/or an alert box.
CSS Support Redirect - Cascading Style Sheets (CSS) are supported in version 4.0 and new browsers. So, you can easily redirect visitors to your site who have CSS (those with version 4.0+ browsers) to your CSS page, and send everyone else who doesn't have CSS to a normal page without CSS.
Fading Button - Move your mouse over the button and watch it fade to another color and then fade back to original color once you move your mouse off. The message on the button will even change after you click on it!
Knight Game - This logic game is simple and fun to play. Simply move the knight in legal knight chess moves to every square on the board in as few moves as possible.
Auto Popup Window - Automatically opens a small popup window and closes it after a specified time. Great for displaying important messages without forcing users to close multiple windows!
|