Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Shortens a string, and adds a span with a title of the full string.
Function is useful for listings where you don't want wraping; or for places where a long string liek a username can break the layout.
1
1472
posted 18 years ago by berkes
Create a simple object and add properties and a method. Note where the object is parsed (not from top to bottom).
2
1446
posted 18 years ago by 1man
simply adding the tags will display the contents of the array in a much better fashion.
0
2661
posted 18 years ago by scriptmakingcom
This snipped adds columnstriping to cells. It works fine for most cases, but will behave strange when combined with colspan.
Cells get an additional class 'even-col' or 'odd-col'
2
1651
posted 18 years ago by berkes
This utility function attaches listeners to a text field or text area. It supports default text for instructional copy. The original text in the field is used as the instructional/default text. When the box gets focus, it disappears and the user can...
0
1239
posted 18 years ago by elli
This will create a State select list for Textpattern if you're using the zem_contact_reborn form plugin
0
3806
posted 18 years ago by jonhenshaw
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3
1392
posted 18 years ago by jonhenshaw