Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
One way to fix many of the issues with IE7 is to dynamically reverse the default z-index stacking order of the elements on your page. This will ensure the elements higher in your HTML source will also have a higher z-index order on your page, solving...
3
2072
posted 17 years ago by justinseiter
This creates a custom HTML header in Thesis with a logo and an advert section (to be used instead of CSS image replacement).
Example CSS to use with it:
.custom #header:after {content:"."; display:block; height:0; clear:both; visibility:hidden;...
5
2356
posted 17 years ago by kristarella
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5
2329
posted 17 years ago by brownrl
This is a short and sweet snippet that will save the users form input after PHP runs validation and returns false. Very good for User Experience!
0
1784
posted 17 years ago by montanaflynn
This will create and then populate a MySQL table with a list of the names for countries in existence. Country names are in Turkish language.
0
2738
posted 17 years ago by sensimevanidus
- a javascript for alternate row/column table striping
- supports row hover, column hover and cell hover effects and click events.
demo here:
http://www.frequency-decoder.com/demo/table-actions/
0
1793
posted 17 years ago by beneberle
I saw this somewhere else, so I can't claim to have come up with it myself. Def life-saver!
0
1707
posted 17 years ago by charmcitycoder
Modified the code very slightly to add in cursor states for when the timeline is grabbed. Also added in (but commented out) the code to make the sliding twice as fast using a multiplier.
0
1709
posted 17 years ago by davebowker
Does autoscrolling, language translation, RT, via, and short url destination resolution.
I think a Mac user made this because it doesn't work for Firefox, IE and Opera, but does in Chrome and Safari.
0
1425
posted 17 years ago by rickdog
For moving from older gem to newest if ' sudo gem update --system ' doesn't work
1
1604
posted 17 years ago by inkdeep
Namespace to avoid collision with other javascript variable/method names
1
1814
posted 17 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.
I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1
1750
posted 17 years ago by inkdeep
Due to widespread internet blocking in Iran following the June 2009 election, a network of proxy servers was set up to assist in the free flow of information. The IP range, to the best of my knowledge, should cover the addresses used in Iran, with bl...
0
1952
posted 17 years ago by kwilson