Below are the top ranked snippets.

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »
9
Date Submitted Fri. Feb. 23rd, 2007 1:16 AM
Revision 1
Scripter Casper42
Tags CSS | JavaScript
Comments 2 comments
There seems to be so many hide/show scripts out there, so here's the functions I wrote and use on a regular basis - there are 7 functions, hide, show and toggle by id or class - and the getElementByClass function that does not exist as a built in Javascript function...

This is in response to the flurry of visibility scripts that just don't have all the pieces needed to make them totally useful.
7
Date Submitted Wed. Oct. 12th, 2005 9:06 AM
Revision 1
Beginner bruno
Tags "Three Column" | CSS | Layout
Comments 1 comments
Three Column 90% Layout
4
Date Submitted Tue. Oct. 24th, 2006 12:12 PM
Revision 1
Helper bright
Tags Delphi | http | Hyperlink | Internet | Link
Comments 2 comments
This bit of code will open up the http link in a new browser window. The link should be passed to the variable "HTML_File" as a string (as shown below).
5
Date Submitted Fri. Oct. 27th, 2006 9:33 AM
Revision 1
Helper bright
Tags Date | Delphi | Julian
Comments 0 comments
This function will convert a Date (passed as type TDateTime) to a long-format Julian calendar date (result as type String).
6
Date Submitted Thu. Oct. 26th, 2006 6:59 PM
Revision 1
Helper brendo
Tags forms | JavaScript | message | textarea
Comments 3 comments
This snippet also you to limit the input in a form field to a specified number of characters. It displays a counter so users can see how many characters they have left, and once they reach the limit the field just trims the length to your limit.

The following is a snippet from what I used when I implemented a tagboard to my site. Further revisions could/should read the LIMIT from the maxlength attribute
12
Date Submitted Fri. Oct. 6th, 2006 9:25 AM
Revision 1
Helper BrandonReese
Tags PHP | phpcode
Comments 4 comments
This is a class for generating HTML tables. It's kind of rough, but I thought somebody might want to do something with it.
8
Date Submitted Fri. Oct. 6th, 2006 2:42 PM
Revision 1
Helper BrandonReese
Tags "swear filter" | JavaScript | xanga
Comments 1 comments
This is a swear filter script I wrote for my xanga blog. I don't know if it has any application anywhere else. This will replace the swear words listed in the array with the character defined in blank_char. This isn't perfect but it works pretty well.
7
Date Submitted Thu. Sep. 14th, 2006 12:12 AM
Revision 1
Beginner Bouvillon
Tags ASP | Data
Comments 0 comments
This code will show you how to encrypt user passwords with md5 algorithm and how to start using encrypted passwords if you already have users' database ready. The md5.asp you can download from my site http://www.webcheatsheet.com/asp/md5_encrypt_passwords.php
4
Date Submitted Wed. Sep. 6th, 2006 11:07 AM
Revision 1
Beginner boris137
Tags "File" | "Java"
Comments 4 comments
This is enhanced version of java.util.Properties that:

Preserves order of Properties read from file if LinkedHashMap used.
Preserves comments in header and scattered throughout file.

It's by no means perfect, but a good start for anyone that once the above features.
10
Date Submitted Thu. Aug. 3rd, 2006 11:54 AM
Revision 1
Helper bobbyrward
Tags boost | CPlusPlus | preprocessor | shared_ptr
Comments 0 comments
template function to create a boost::shared_ptr in the form

boost::shared_ptr classPtr = new_ptr(Arg1, Arg2);

You can also make new_ptr_access a friend of className and make the constructor and destructor private.

This keeps the end user from:

Creating an instance manually on the heap
Creating an instance manually on the stack
Deleting a shared_ptr manually using "delete get()"
« Previous 1 2  ...  49 50 51 52 53 54 55 56 57 Next »