Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
this script brings you a "back to top" when you cross the vertical threshold defined as argument on the body tag (e.g.: 200px)
Requires JQuery but can easily be adapted to other JS framework
3
1134
posted 15 years ago by blackthorne
Pretty straight forward implementation of mysql instantiation using php5 oop. Example usage at the bottom. The database in the example is named 'example_database' and has 1 table, 'newstable'. This table has three columns: 'id,heading,message'.
By...
0
787
posted 15 years ago by bakkelun
This shell script is tested under CentOS / RHEL and Fedora Linux. It should also work under other Linux distributions. If you would like to collect and submit information on your network configuration to your sr. Linux / UNIX admin use this script.
2
1709
posted 15 years ago by mprabhuram
Uses jquery and raw javascript to quickly add a class to the body class depending on what kind of page it is.
0
987
posted 15 years ago by chrisjlee
Learn how to emulate ASP.NET's AppendFormat method in Javascript. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1
986
posted 15 years ago by neal_grosskopf
Learn how to emulate ASP.NET's AppendFormat method in Classic ASP. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1
1082
posted 15 years ago by neal_grosskopf
Using this loop variation you can style differently the first and the last post of a loop, or whatever post you like, as lond as you add a new elseif with the number of the post you desire.
5
1189
posted 15 years ago by crs