Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.
0
1637
posted 18 years ago by Juanje
Just for a quick copy and paste. A cool Lorum Ipsum generator is at [lipsum.com](http://www.lipsum.com/).
1
1786
posted 18 years ago by wizard04
This will print every number from 0000-9999. Each number is comma separated.
The goal was not pretty / readable code, but to get all code on a single line.
0
1396
posted 18 years ago by tgpo
Creates a drop shadow for a div. In IE I can't get `filter:alpha(opacity=__)` to work right, but it degrades gracefully without it so I left it out.
5
2304
posted 18 years ago by wizard04
Quick and easy way to feed flickr images into your website
2
2001
posted 18 years ago by jessnoonyes
Uses a regular expression to validate a string as a validly formatted email address.
1
2094
posted 18 years ago by Anthony
Basically, this is the XHTML web standards template you see on the front page. I usually end up removing a few things, so this is just that template... but with the junk removed.
1
2037
posted 18 years ago by Jacolyte
First noscript tag redirects the user to the page telling them to allow scripts. Second section is an example page of one which will go to the default page if scripts are allowed, or to give them a message otherwise.
1
1824
posted 18 years ago by Anthony
Post a stripped down version of the page if you can. One that shows exactly how the iframe fits into the structure of the page.
The solution I settled on works like this:
The parent page has a javascript function like this:
function insertIt()...
0
2309
posted 18 years ago by jamesming
Gets a ClientScriptManager reference from the Page class. If the client script is not already registered on the page, builds and registers a script. Useful for building a script dynamically and ensuring that it gets registered during the correct s...
1
1826
posted 18 years ago by Anthony