Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Create a custom 404 handler page which redirects you to the correct page.
1
1664
posted 17 years ago by Meander365
Converts a given RGB colour value such as that provided by the imagecolorat() function into an html compliant colour.
1
1793
posted 17 years ago by h4rrisonjames
Determines whether or not the page has been requested directly, or through AJAX. This can allow for combining a page and related AJAX responses within the same script.
1
2951
posted 17 years ago by Wilco
Convert a coordinate (x,y) into the index for a 1D array. For example, the coordinate (3,1) would be at array index 8 if there are 5 columns.
Assumption: Arrays start at 0.
0
4126
posted 17 years ago by helloworlder
This slide show was created by Jon Raasch @ JonRaasch.com.
Just images. Look for Slide show #2 for a slide show using DIVs.
hamiltopia_jquerySlideshow2
3
2524
posted 17 years ago by thehamilton
das plugin muss über das Temp verzeichnis installiert werden siehlink
0
1468
posted 17 years ago by nico65
To prevent multiple submit from sending more than one request,
bind the submit event and store a "disabledOnSubmit" data. Next time the event "submit" will be fire, the following jQuery code will return false. All submit buttons are also disabled (...
9
2401
posted 17 years ago by dalexandre
sed is required because hg status returns paths with \ (backslash) instead of / (slash). I'm using the Windows version of Mercurial, in a linux version you can omit the sed part.
0
1801
posted 17 years ago by geekiuscaesar
this function formats a web address for use in a link.<br>
echo formatWebAddress("google.com");<br>
http://www.google.com/
1
1942
posted 17 years ago by jlvallelonga