Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Note that the comment is part of the code here. IE 5+ (including Mac) will evaluate to true by using conditional compilation.
0
1429
posted 17 years ago by cczona
Makes the form field background yellow and the border red when it is the active field. Works in most browsers except the usual lame ones (IE5.5 & 6).
1
1278
posted 17 years ago by will
ExpiresActive tells the apache2 to use the expires module.
ExpiresDefault specifies the expire date for all mime-types in this directory.
ExpiresByType specifies the expires date for the specified mime-type in this directory.
2
1739
posted 17 years ago by CharlyBr
recover to normal speed with
/sbin/ipfw delete 100
/sbin/ipfw delete 200
... or reboot
0
1623
posted 17 years ago by zingo
„Versioning and Cross-document InteractionInternet Explorer 8 introduces the IE8 standards mode by default—this lets Web designers use the latest rendering features available in Internet Explorer 8. In addition to layout changes, IE8 standards mo...
3
2276
posted 17 years ago by localhorst
https://www.chrisjmendez.com/2008/03/23/mysql-commands-i-wish-i-could-remember/
9
1788
posted 17 years ago by chrisaiv
[directory]
├index.php //this snippet
├imageA.jpg
├imageB.gif
â””imageC.png
This snipet displays the thumbnail of the picture file that exists in the
same directory.
When the thumbnail image is clicked, the original size image is...
6
1868
posted 17 years ago by kyokutyo
I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.
1
1987
posted 17 years ago by neal_grosskopf
IE7 and IE8 support “No Add-ons Mode,†a troubleshooting mode. When you run IE this way, no 3rd party code runs... You can start No Add-ons Mode in a few ways:
(To exit No Add-ons Mode, simply close that browser window.)
0
1440
posted 17 years ago by cczona
Add this arg code plus set first argument as "OG: Group nid(s)"
2
1595
posted 17 years ago by metareason
this is not the ultimate secure way, but it's at least not displaying the email link
3
1551
posted 17 years ago by iTony
Useful when trying to cleanup a large repo to see where you've made the most changes
1
2344
posted 17 years ago by JacobSingh