Table Row Hover





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

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.
12
Date Submitted Mon. Oct. 30th, 2006 2:23 PM
Revision 1
Beginner Mattkins
Tags CSS | DHTML | JavaScript
Comments 3 comments
Allows you to hide all elements on an HTML page by their tag name. Extremely handy in getting around the "Windowless Elements" problem in IE, which is a bug that puts certain elements, most commonly select boxes, on top of any other element, no matter what. As you can imagine, this causes real problems with DHTML drop-down menus and such like. This is the simplest and quickest fix I've come up with, I simply set this function to run alongside the drop-down and all of the select tags vanish before a menu drops, then I run the show function when the menu retracts.
10
Date Submitted Fri. Feb. 10th, 2006 7:52 AM
Revision 1
Helper lilleman
Tags Cookie | Handler | JavaScript
Comments 2 comments
Cookie Handle
7
Date Submitted Fri. Jul. 20th, 2007 11:12 PM
Revision 1
Helper lavaramano
Tags Array | getelementsby | JavaScript
Comments 1 comments
Returns an array with all the objects with certain class. tested on IE 6 and Firefox 2
6
Date Submitted Fri. Jul. 20th, 2007 11:17 PM
Revision 1
Helper lavaramano
Tags DOM | JavaScript | Key | onkeyup
Comments 0 comments
Returns the keycode of the key we wrote on a textarea/input. works on IE and Firefox
6
Date Submitted Fri. Jul. 20th, 2007 11:42 PM
Revision 1
Helper lavaramano
Tags DOM | JavaScript | mouse | onclick | pointer
Comments 1 comments
it give us the position of the mouse. works on IE and Firefox

use:
onclick="posicion_mouse(event)"
-10
Date Submitted Tue. Oct. 17th, 2006 3:25 PM
Revision 1
Helper jeremec
Tags Attribute | div | JavaScript | Name
Comments 7 comments
One way to group elements in HTML is to assign them a name attribute. Multiple elements can share a name, then you can easily access them as an array using the getElementsByName() method.

The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple object.name returns undefined. In my case, it was a DIV in Firefox 1.5 that was behaving this way.

There is a simple work around for this that works in Firefox, I haven't tested it in others. It is to use the getAttribute method that is an extension of any element object.

This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.
11
Date Submitted Thu. Oct. 5th, 2006 12:01 PM
Revision 1
Helper Idlemind
Tags ajax | JavaScript
Comments 4 comments
I use this in my AJAX as a quick way to get the Value of the selected item in a Select HTML object. If nothing is selected, it returns zero.
(May be basic to y'all, but maybe really usefull to someone else).
11
Date Submitted Thu. Feb. 9th, 2006 2:14 PM
Revision 1
Helper Iain
Tags External | JavaScript | Links
Comments 0 comments
Enhance External Links
11
Date Submitted Thu. Feb. 9th, 2006 2:48 PM
Revision 1
Helper Iain
Tags Element | Fade | JavaScript
Comments 0 comments
Fade an Element