Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This function will add soft hyphens after every 3rd character in words of over 10 characters. It will not leave fewer than three characters following a soft hyphen.
Known bugs: Adds soft hyphens to URLs and within HTML tags.
0
1795
posted 17 years ago by DaveChild
A jQuery plugin that will add a 'new' icon next to files that are newer than X amount of days.
1
3076
posted 17 years ago by neal_grosskopf
Ever needed to download a bunch of files, but annoyed by having to copy them all to Speed Download? This is for you..!
http://rapidshare.com/files/131035061/file1.rar
http://rapidshare.com/files/131049211/file2.rar
http://rapidshare.com/files/...
0
1763
posted 17 years ago by Wendelboe
If `views_embed_view()` or just `$view->execute()` are called, the default view settings are used (only shows 10 entries, etc.) so we have to call `$view->set_display()` & `$view->pre_execute()`.
0
1574
posted 17 years ago by jonathanpglick
Code explains itself. I plan to do a lot more work on it - just wanted to throw it up here for a little sharing. Feel free to take it to the next level.
1
1816
posted 17 years ago by brettbergeron
Nice clean, and semantically correct breadcrumb XHTML accompanied by the CSS.
Create a transparent GIF of the symbol '>' and save it in /img/gt.gif. This will be used for older browsers that don't support the :after pseudo element.
4
2182
posted 17 years ago by PeteW
Ever wanted to give your cliant an idear on how much disk space they have remaining? The following script will tell your user how much disk space has been used and how much is remaining. In this example $diskspace refers the amount of diskspace you...
1
2166
posted 17 years ago by scopefragger
<p>Cross-browser compatible especially for IE6/7 and makes use of CSS sprites for faster downloading. Download file <a href="http://johnimbong.com/blog/wp-content/uploads/2009/09/curves.zip">curves.zip (75 bytes)</a> which contains the CSS sprite nee...
1
1820
posted 17 years ago by enchance