Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Display a default value in a text field that disappears on focus and reappears on blur **if** the field is blank.
0
899
posted 15 years ago by prsjohnny
Little code snippet for automatically adding a custom field for a page or post when they are published.
0
1157
posted 15 years ago by baires
Sometimes iframes are unavoidable, and in those cases you usually don't want it to be apparent there is one. This will find the height of the iframed contents and resize the iframe accordingly, making it appear to be part of the page. Almost positive...
2
1424
posted 15 years ago by StevenW721
Put the script in the app "Spark" (download from http://www.shadowlab.org/Software/spark.php) and give it a shortcut
0
1396
posted 15 years ago by Macgeeky
In the example .description is a label and so needs to be made a block level element. For <p> elements (etc) this is not needed.
The key to all this is overflow:hidden.
0
1225
posted 15 years ago by Meander365
The `localStorage.key` method is a great way to loop over localStorage items.
0
1059
posted 15 years ago by andrew8088
HTML
Magento - How do I change transaction email details? - 'How do I' Questions - eCommerce Software for Growth
0
1235
posted 15 years ago by dmistriotis