Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Resize a Popup to Fit an Image's Size
By Peter Todorov
February 10th 2003
Reader Rating: 9.1
If you're a Webmaster who has to deal with image galleries, then make a note of this clever script. It gives you a solution to a very common problem --...
1
1664
posted 19 years ago by zensir
setPropertyã—ãŸã‚ªãƒ–ジェクトã¯ã€Groovyã‹ã‚‰å®£è¨€æ¸ˆã¿ã®å¤‰æ•°ã¨ã—ã¦å‚ç…§ã§ãる。
1
1549
posted 19 years ago by yoshimov
Rendererを作るã‹JTable#prepareRendererをオーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã™ã‚‹ã€‚オーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã®ã»ã†ãŒæ±Žç”¨çš„ã«ä½¿ãˆã¦æ¥½ã€‚
0
1370
posted 19 years ago by yoshimov
Uses the Luhn formula to quickly validate a credit card. Basically all the digits except for the last one are summed together and the output is a single digit (0 to 9). This digit is compared with the last digit ensure a proper credit card number is...
2
1503
posted 19 years ago by savageideas
put "register_sidebar_widget(..)" into "function widgets_init()"
4
1609
posted 19 years ago by yuconner
If you want your pages to be valid XHTML-Strict, but you also wish to open external links in new window, the following snippet is doing just that—sets attribute target=“_blank†to all external links in a document to keep your code valid XHTML-S...
2
1622
posted 19 years ago by zensir
Using CSS is, of course, the preferred method of performing mouseover image swapping, but it's good to have a few tricks up your sleeve. Here's one way of doing it with JS, but the images have to be pre-loaded, or else there'll be a slight lag in the...
1
1061
posted 19 years ago by pckujawa