Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
All you need to do when writing the post, is enter a custom field with the key "expiration" and set the value in the format: "2010/01/01 18:20:00" - this would expire the post at 6.20pm on the 1st January 2010.
1
916
posted 15 years ago by gjindancer
1) if jQuery is already loaded into a browsers' cache -> do nothing
2) if the object is undefined, write a script-element into the source which references google's minified jquery file.
3) if jQuery is still undefined (let's assume Google is down)....
2
1085
posted 15 years ago by iroybot
This is to prevent duplicate content when your provider directs your http://domain.com to the same place as http://www.domain.com
1
898
posted 15 years ago by zartgesotten
I pieced together this code when I had to do this for a client:
- show the first image attached to a post (based on sort order in gallery tab) in medium size
- put all the other images attached to the post into an imageset so that when you click on...
1
1170
posted 15 years ago by zartgesotten
This will output the resulting meta value (notice the addition of "echo"):
1
885
posted 15 years ago by rickfu
This will only work in FF 3.5 and web-kit browsers after (06/26/2009)
2
818
posted 15 years ago by adamdecaf
This will only work in FF 3.5 and web-kit browsers. (post 06/20/2009)
0
866
posted 15 years ago by adamdecaf
A basic template that sets up a general static site with links to jquery, swfobject and a div container.
1
1016
posted 15 years ago by irishspacemonk
Basic setup code for using SWFObject to embed flash content in a plage.
2
1042
posted 15 years ago by irishspacemonk
Fixes and fallbacks for IE for [my reset stylesheet](http://snipplr.com/view/16353/ "DzR Full CSS Reset"). Actually two separate stylesheets: one for IE in general and one for IE6 specifically.
[Part I](http://snipplr.com/view/16353/ "DzR Maste...
0
873
posted 15 years ago by wizard04
An add-on to [my reset stylesheet](http://snipplr.com/view/16353/ "DzR Full CSS Reset"). Many helpful classes for layout, writing styles, paged media, etc.
For the `printHref` class, you'll need to replace "example.com" with your own domain.
[P...
0
870
posted 15 years ago by wizard04
A very thorough CSS reset stylesheet I created for HTML 4.01 using CSS 3 (and older).
[Part II](http://snipplr.com/view/16354/"DzR Master Stylesheet (Part II, Classes)")
[Part III](http://snipplr.com/view/16355/ "DzR Master Stylesheet (Part...
0
893
posted 15 years ago by wizard04
Just a little bit of code if u are interested in using links for form submission. I'm aware of the dangers of using links in this case, but don't really care. They're way easier to style.
0
2579
posted 15 years ago by wjbrown
Couldn't find a better way to do this, nor could I find it on teh interwebs, so here it is.
2
1389
posted 15 years ago by wjbrown
This is a slightly hard core email check. I work for clients that want real email addresses. They pay quite a bit of money so yes, I am going to give what they want...
3
981
posted 15 years ago by brownrl
Face it!
Whenever you make a website/app you always need to make XLS export for the simple people. I mean heaven to betsy if they have to take a csv file, or use phpMyAdmin.
So
Here are 3 little functions and a sample skeleton that I use fro...
6
1484
posted 15 years ago by brownrl
How to customize a Maven Calm settings.xml in order to allow multiple environment builds; for more info look here http://code.google.com/p/maven-calm/
0
741
posted 15 years ago by mpillitu
How to customize a Maven Calm profiles.xml in order to allow multiple environment builds; for more info look here http://code.google.com/p/maven-calm/
0
698
posted 15 years ago by mpillitu
http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.html
-and-
http://www.webmasterworld.com/forum46/1288.htm
0
836
posted 15 years ago by rwczippy
Used this on a project to determine whether images were loaded or not. In an image carousel, for example, you could test the next/clicked image before advancing the slide, and if 'loaded' wasn't 'true', you could add a "loading" class and attach a ne...
3
811
posted 15 years ago by dougunderscorenelson
Memory leakage in IE6/7 if the event handlers are not purged before deleting an element.
0
925
posted 15 years ago by iTony
basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash
1
1164
posted 15 years ago by stiobhart