Welcome To Snipplr


Everyone's Recent Snippets



1 ... 382 383 384 385 386 ... 554
convert a string to it's hex representation and back
0 850 posted 15 years ago by dygor
1 955 posted 15 years ago by mcarneiro
I notice a lot of addClass/removeClass.. thought maybe I'd post an example on how to simplify that....
0 1348 posted 15 years ago by quickredfox
In Internet Explorer 6 (IE6) there is a bug to make div absolute positioned over select. The select will show over the div. One solution is to place a empty iframe behind the div with same size. The source below is a div as container to positione...
0 1167 posted 15 years ago by Arogarth
1 1063 posted 15 years ago by craig0990
I am forever forgetting this. Have to look up the 101 vs 103 in books online every time. Also forget which way around is US/NZ format. :-)
1 1250 posted 15 years ago by rengber
This code allows you to retrieve the 11-character ID string from a YouTube video URL.
7 3014 posted 15 years ago by Moridin
W3C no longer include the target attribute of the <a> tag in HTML 4.0 Strict and XHTML 1.0 Strict document types . To make links open new windows we will have to use Javascript, and with mootools it make this task very easy. Just add this snippet to...
0 1051 posted 15 years ago by cherrywaves
Remove <>
0 1193 posted 15 years ago by jodm
Create a block to include a template file .phtml with just one line of code
1 2001 posted 15 years ago by nico65
1 967 posted 15 years ago by jmiller
Quick and dirty took me 2hours to find. The Xlib Documentation sucks. Have Fun\r\n\r\nnote: U need the Xlib -(Ubuntu)-> sudo apt-get install python-xlib
0 1347 posted 15 years ago by simlan
Use this function to test whether or not a Javascript object is empty.
2 1249 posted 15 years ago by jlizarraga
Taken from TVIDesign's 25 Excellent jQuery tips
0 1036 posted 15 years ago by nd6
0 919 posted 15 years ago by joe-bbb
Here are a few examples on how to use Lists and Dictionaries in Python. It's by no means exhaustive, just a quick reference.
0 1007 posted 15 years ago by chrisaiv
I just noticed in Firefox 3.5.2 that setting `disabled = true` for a focused text input seems to make it impossible to re-focus after setting `disabled = false`. The solution is to blur it before disabling.
0 1547 posted 15 years ago by cyberhobo
first of all i thank to our Creator and Mr.ImHugo for his Action script which i make the java script from it,its works fine and once again i gives thank him for his snippet
1 1013 posted 15 years ago by sujithfem
5 1097 posted 15 years ago by iTony
Ever needed to convert rgb to hex on your website, maybe you have a slider that handles rgb but your backend uses hex, this issue can be resolved easily be using the following code. Remember to keep in mind that php and html primarily uses hex colo...
1 1093 posted 15 years ago by scopefragger
Ever needed to use to background images in a table or div? It is possible b just using css. Although this is yet to be a standard safari will allow you to apply 2! Css backgrounds, however IE, FIRFOX and retro opera users will only see 1 !
1 1096 posted 15 years ago by scopefragger
I saw a lot of bad javascritp foreach examples ... so here is the best solution. See the link (german) for another snippet to iterate over object properties via foreach.
0 594 posted 15 years ago by naden
Display the number of people following you on Twitter using this custom Twitter badge. The code simply returns a number so you can style it however you like.
1 1142 posted 15 years ago by neal_grosskopf
To run, save as twitterbackup.rb: ruby twitterbackup.rb yourtwittername
1 1054 posted 15 years ago by beandr
Ever needed to restrict an images size? Or stop it from growing best the size of your div/table. It’s a horrible feeling when you see your nicely designed site get trashed by a single image because it’s a pixel or two too big! And if it’s a...
1 1263 posted 15 years ago by scopefragger
1 ... 382 383 384 385 386 ... 554