Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1670
posted 16 years ago by zartgesotten
This will output the resulting meta value (notice the addition of "echo"):
1
1184
posted 16 years ago by rickfu
This will only work in FF 3.5 and web-kit browsers after (06/26/2009)
2
1016
posted 16 years ago by adamdecaf
This will only work in FF 3.5 and web-kit browsers. (post 06/20/2009)
0
1106
posted 16 years ago by adamdecaf
A basic template that sets up a general static site with links to jquery, swfobject and a div container.
1
1334
posted 16 years ago by irishspacemonk
Basic setup code for using SWFObject to embed flash content in a plage.
2
1525
posted 16 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
1127
posted 16 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
1121
posted 16 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
1138
posted 16 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
2938
posted 16 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
1639
posted 16 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
1570
posted 16 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
1974
posted 16 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
964
posted 16 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
916
posted 16 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
1115
posted 16 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
1389
posted 16 years ago by dougunderscorenelson
Memory leakage in IE6/7 if the event handlers are not purged before deleting an element.
0
1208
posted 16 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
1687
posted 16 years ago by stiobhart
this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list
1
1625
posted 16 years ago by stiobhart