CreateNamedElement





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

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
13
Date Submitted Thu. Oct. 5th, 2006 5:53 AM
Revision 1
Helper Thomas
Tags HTML | IE | images
Comments 0 comments
If you're an IE user you may have noticed that when you hover on a medium to large sized image, a toolbar appears in the corner of the image. It's basically useless as it accomplishes nothing that can't be done with a right-click.

Luckily, Microsoft has included a way for webmasters to disable this function.
10
Date Submitted Mon. Jun. 4th, 2007 2:37 PM
Revision 1
Scripter Fordiman
Tags createElement | JavaScript | kiss
Comments 1 comments
This is a function I created to ease headaches caused by creating and inserting new stuff in an HTML document dynamically. Essentially, it allows you to specify an HTML tag, in its entirety (attributes, styles, event handling, etc), via a single command. You can nest it, so as to create an entire element tree programmatically in a lot less time as with document.createElement.

Don't let the goofy function acronym fool you; this is damned powerful.

First, the function spec:
HTMLElement acne(type[,attributes[,styles[,events[,children[,parent[,document]]]]]]);

Arguments:
String type: type of element to create; same information as the argument of document.createElement
mixed Object attributes: attributes you want the new element to have (ie: href, src)
mixed Object styles: styles for the new element (ie: width, borderLeft)
(function|function Array) Object events: event handlers for the new element
HTMLElement|HTMLElement Array children: elements you want to be in the new element (ie: nesting is possible)
HTMLElement parent: parent node of object
HTMLDocument document: document to create element in

Return value: The newly created/configured element
6
Date Submitted Wed. Oct. 17th, 2007 2:34 PM
Revision 1
Helper chaos
Tags createElement | IE | JavaScript
Comments 0 comments
A wrapper on top of createElement for getting around IE problems with manipulating the name attribute. Unlike most solutions for this, it tests for which method to use once when the page loads rather than every time an element is created. By Chaos of Lost Souls MUD (a text-based fantasy RPG).
6
Date Submitted Mon. Jun. 5th, 2006 8:53 PM
Revision 1
Coder mattrmiller
Tags !important | CSS | IE | Ignore
Comments 1 comments
Normally in CSS whichever rule is specified last takes precedence. However if you use !important after a command then this CSS command will take precedence regardless of what appears after it.
4
Date Submitted Tue. Oct. 10th, 2006 3:49 PM
Revision 1
Beginner Archatas
Tags ActiveX | HTA | IE | JScript
Comments 0 comments
This JScript code could be used in HTML applications (HTA) or other user-trusted web applications for saving data into files.
4
Date Submitted Mon. Mar. 31st, 2008 6:10 PM
Revision 1
Beginner berkeley_mikeg
Tags explorer | IE | Internet | override | proxy
Comments 0 comments
I have created this sippet because I VPN into work to check problems or e-mail and had to change my IE settings to surf the internet. With this sippet, once configured will allow you to override your internet explorer proxy settings to connect and browse the internet with one double click of the mouse or as I have done, add it to my VPN profile auto starter and it reconfigures my internet browser after i'm connected.
(this will shut the browser if it's running, make the changes and launch it with the changed configuration)
-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