Show/Hide All Elements by Tag Name





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

« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »
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
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).
7
Date Submitted Mon. Oct. 10th, 2005 9:49 PM
Revision 1
Beginner jag5311
Tags "Square One" | CSS
Comments 1 comments
Set Everything to Square One
6
Date Submitted Tue. Oct. 11th, 2005 1:20 PM
Revision 1
Beginner jag5311
Tags Centered | CSS | Fixed
Comments 0 comments
A Simple Centered Fixed Width Layout
-1
Date Submitted Tue. Oct. 11th, 2005 1:26 PM
Revision 1
Beginner jag5311
Tags !important | CSS | IE | Styles
Comments 3 comments
Using !important to Separate Styles From IE
-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.
15
Date Submitted Sat. Aug. 5th, 2006 6:22 AM
Revision 1
Beginner Jo3y
Tags CSS | IE
Comments 2 comments
Not really a hack, but rather a workaround for layout problems with IE.
Conditional
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
« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »