Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 361 362 363 364 365 ... 552
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14 4664 posted 17 years ago by smoothdzion
When I use the 960 Grid this is the code I use along with a CSS Reset. I really like Blueprint's default HTML Element styles, but I like the grid of 960.gs. This is a mashup of the code.
2 1864 posted 17 years ago by smoothdzion
Needs the BeautifulSoup module.
0 1111 posted 17 years ago by taec
Lee Brimelow show's how to smooth an image that is loading from Flickr.
1 1983 posted 17 years ago by chrisaiv
1 1534 posted 17 years ago by benpjohnson
This code will allow you to have a full screen iframe with a header like a lot of sites do when navigating outside their site or featuring templates and things. Reference your CSS however you want. The HTML is necessary how it is, but add any addit...
1 3194 posted 17 years ago by smoothdzion
In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag. Replace /G1/example.com with whatever you want to use to identify the link.
1 2104 posted 17 years ago by smoothdzion
1 2040 posted 17 years ago by nate63179
Reset that I use for all my projects. I've added a class '.ib' at the end to easily add inline-block styling to any element.
1 1917 posted 17 years ago by smoothdzion
First value takes empty input values and adds 'Enter Value'.<br> Second snippet removes 'Enter Value' when input is focused.<br> Third snippet re-adds 'Enter Value' if the value is left blank.
2 2254 posted 17 years ago by smoothdzion
1 2857 posted 17 years ago by nefd
Allows custom background images for submit buttons in ie6
1 2713 posted 17 years ago by flicity
0 1765 posted 17 years ago by T1tan
converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"
0 2498 posted 17 years ago by ginoplusio
- fields on db with utf8_general_ci collation - make this query after any connection - put meta charset utf8 - read and write strings without problems
0 1841 posted 17 years ago by ginoplusio
0 1847 posted 17 years ago by shabbar
source for perl file that is step 2
1 1977 posted 17 years ago by rowntreerob
export bookmarks.html file, extract links from that file to a list , using the list as INPUT to linkchecker that reports dead links
0 1935 posted 17 years ago by rowntreerob
This snippet builds on my last snippet regarding [User input validation in Visual Studio .NET using MaskedTextBoxes and an ErrorProvider](http://snipplr.com/view/22419/user-input-validation-in-visual-studio-net-using-maskedtextboxes-and-an-errorprovi...
0 3385 posted 17 years ago by pckujawa
2 2315 posted 17 years ago by jannisg
I just discovered that the MaskedTextBox control allows you to set the type of data which should be entered in the control and helps you do the validation of that data when necessary. The trick is to set the ValidatingType of the MaskedTextBox contro...
0 9621 posted 17 years ago by pckujawa
Returning a boolean inside of jQuery's $.each() function will only break the loop. To get a return value, you can convert the jQuery object to array and use a regular for loop in javascript.
0 2348 posted 17 years ago by jasonseney
Paste this into your AS file to add focus and blur events to your text/form fields. If your field contains YOUR DEFAULT MESSAGE when focus is brought to it, it will erase itself, to be ready for text entry. If focus is lost while the field is complet...
0 2188 posted 17 years ago by Winkyboy
Handy function for converting milliseconds to video timecode
1 2460 posted 17 years ago by nate63179
A simple class and event which can be used to load external assets
1 1936 posted 17 years ago by nate63179
The source below is the function from the website with the corrected regular expression found in the site's comments. This is a nigh-one-line function for validating a string as an email address.
4 2684 posted 17 years ago by Winkyboy
0 1752 posted 17 years ago by tobewan
1 ... 361 362 363 364 365 ... 552