Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Focus and keypress events determine when to hide, show, or dim a label.
Use in tandem with the following HTML/CSS:
HTML
----
<li>
<label>First Name</label>
<input>
</li>
CSS
----
li {
position: relative;
}
la...
0
938
posted 14 years ago by mikemetcalf
Tired of running seperate scripts for jBoss with/out jRebel and manual cleaning temp.
0
823
posted 14 years ago by dogrizz
The date format is dd/mm/YYYY but you can replace slashes by anything else.
0
1082
posted 14 years ago by ptiswitz
If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank).
To use give your form field a class of 'default-value'
3
1262
posted 14 years ago by f6design
If a post is published without setting a featured image and there is an image attachment, this will select an image from the media library and set it as the featured image.
0
1033
posted 14 years ago by chrs
given a url:
>`http://www.someurl.com/page.html?param1=foo¶m2=bar`
You can use map.param1 outside of the function such as:
>`$('#some_hidden_field').val(map.param1);`
0
840
posted 14 years ago by agdm
Add this piece of code in your .htaccess file located in wordpress root directory
0
988
posted 14 years ago by kirichev
This is 3 lines of javascript code to tweetify plain text returned by Twitter API
Input : RT @TTintheCloud: How much are free #cloudcomputing trial offers from Google, Amazon and Microsoft actually WORTH? http://bit.ly/i4w4qa
Output : RT <a hre...
1
731
posted 14 years ago by naren1012
Put this code in your theme, where you want to show followers count. Don't forget to change USERNAME.xml to your twitter user name.
0
1109
posted 14 years ago by kirichev
Re-indexes an array so that the array keys count up from zero. This is useful if you have previously removed some array nodes.
0
922
posted 14 years ago by f6design
Show a notification immediately after application enter in background (but you can schedule it too)
0
1135
posted 14 years ago by rabc