ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

10
Date Submitted Wed. Nov. 9th, 2005 11:45 PM
Revision 1
Helper poncho
Tags Form | JavaScript | Zero
Comments 0 comments
ZeroField
10
Date Submitted Fri. Feb. 10th, 2006 7:52 AM
Revision 1
Helper lilleman
Tags Cookie | Handler | JavaScript
Comments 2 comments
Cookie Handle
10
Date Submitted Mon. Mar. 6th, 2006 7:09 PM
Revision 1
Helper Snyke
Tags ajax | DHTML | JavaScript | snyke | web2.0 | web20
Comments 1 comments
AJAX: In situ edit
A simple edit in place using Prototype, based on the tutorial @ 24ways.org
10
Date Submitted Fri. Aug. 25th, 2006 7:30 PM
Revision 1
Helper psykoprogrammer
Tags inheritance | JavaScript
Comments 0 comments
A small example demonstrating inheritance in Javascript, complete with calling base class constructors and methods. For the more detailed description, visit http://www.adampresley.com.
10
Date Submitted Wed. Feb. 28th, 2007 3:35 PM
Revision 1
Helper mjlintz
Tags JavaScript
Comments 2 comments
Highlight table row on rollover.
10
Date Submitted Wed. Nov. 9th, 2005 8:41 PM
Revision 1
Beginner vinnie
Tags Hover | JavaScript | Row
Comments 0 comments
Table Row Hove
10
Date Submitted Mon. May. 1st, 2006 8:26 AM
Revision 1
Coder mattrmiller
Tags Focus | Form | JavaScript | Password | Username
Comments 0 comments
This is a correct way to do login form auto-focus, checking to see if either username or password have focus already. This prevents someone from typing a username hitting TAB, then having JavaScript chime in, resetting focus to Username while user is typing in their password. In this case, the password is appended to the username which is in plaintext.
10
Date Submitted Fri. Aug. 18th, 2006 1:13 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
This will convert the time from number of seconds to HH:MM format
11
Date Submitted Thu. Oct. 5th, 2006 10:26 PM
Revision 1
Scripter Fordiman
Tags "stupid | clock" | JavaScript
Comments 1 comments
This is an analog clock script designed to jump in place of a div element of class 'analogclock'.

The div tag is not replaced in this custom element, but instead is used as a pseudo-document to hold the clock itself. The 'hands' are implemented using arrays of generated divs.

I was actually inspired to write this widget because of an article on About.com's Javascript pages written by a guy named Stephen Chapman. His code was a mess, but I only discovered this after delving through two layers of 'unescape()' obfuscation.

The basics: You control the look of the numbers and the 'box' model of the clock using basic CSS. You control the clock's size (it will always be square) using the 'size' attribute.

The 'seconds', 'minutes', and 'hours' attributes are for the color of the 'hand's. 'numstyle' can be 1, i, I, or '.', each refering to a different type of face-numbering for the clock

The 'localzone' attribute tells the script to use the user's local time zone. If it's '0', 'false' or 'no', the clock will use the 'clockzone' attribute to determine what time it is (the clock zone is relative to GMT, so, for example, US Eastern is -5. The clock automagically figures out if we're in DST, so you don't have to.)

The 'city' and 'country' are for if you want to put in the city/country of origin for your clock. To be honest, you can put anything there.

Lastly, I designed my version of the clock to be able to not 'tick', i.e., work like the old-school analog clocks. If you want ticking, add 'tick=1' to the attribute list

As with all of my widgets, the idea here is that you can just include the .js file and start dropping in tags without needing to know any ECMAScript at all.

Additionally, for you ECMAScripters, I was very careful to keep my pollution of the global namespace to one class: analogClock.

Example of use:




11
Date Submitted Sun. Oct. 29th, 2006 12:52 PM
Revision 1
Scripter SCoon
Tags JavaScript | PHP | Web
Comments 0 comments
Enforce loadig fresh script code for the external javascript files. Compatible with HTTP 1.0.