Welcome To Snipplr


Everyone's Recent Snippets Tagged image



will preload any background image referenced in your CSS.
0 1559 posted 13 years ago by sarpay
**Example of use:** echo base64DataUri('/var/www/html/background.png'); *or* echo base64DataUri('http://static.php.net/www.php.net/images/php.gif');
0 1471 posted 13 years ago by phpdev
Simle markup, simple CSS combined with ver straight forward javascript to produce some really cool effects.
0 1443 posted 13 years ago by COBOLdinosaur
**Example of use:** <a href="http://www.php.net/manual/en/index.php"><img src="<?php echo get_favicon('http://www.php.net/manual/en/index.php') ?>" alt="Favicon" title="See PHP documentation" width="16" height="16" /></a>
0 3571 posted 13 years ago by phpdev
In scripts.js
0 2261 posted 13 years ago by wanlapat
I have made a small jQuery snippet to demo the image swapping with attr() funciton. The demo uses 2 images with classes img1 and img2 respectively. On a click of a button, the images are swapped. Basically the script stores “src” value into...
0 1617 posted 13 years ago by vijayrajesh
simple image rotation script; save as rotate.php in folder with images, call <img> to display
0 1829 posted 13 years ago by goddess
javascript image uplaod
0 2948 posted 13 years ago by laxman2021
Image file upload, javascript
0 1578 posted 13 years ago by laxman2021
This is some code using Thematic Child Theme overrides to remove thematic's post thumbnails and add Post Thumbnails outside of the .entry-content <div> so that POst Thumbnails can be styled separated from all post Meta. See this page for an example...
0 2502 posted 13 years ago by AndrewThinkUp
From css-tricks.com
1 1963 posted 13 years ago by Gianino
This would convert images at 30fps to a mp4 video, with sequence titles: ImageName0000.png, ImageName0001.png, etc. You could use -r 1/5 to use one frame every five seconds.
1 2699 posted 13 years ago by jmiller
Bruger til at centrere et billede midt i skærmen og fylder ud
0 1491 posted 13 years ago by smaakagemorten
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID. This function is part of the WPelements library class available on Github. Fee...
0 3068 posted 13 years ago by krike
AL subir imagen png, se deben pasar al directorio con transparencia
0 1869 posted 13 years ago by thescorpion
AL subir imagen png, se deben pasar al directorio con transparencia
0 1802 posted 13 years ago by thescorpion
Just a rework of http://snipplr.com/view/7523/ with an added switch to change type number to extention name.
0 2116 posted 13 years ago by Some0ne
If you have a list of images and want'them all to preload before page is shown. This function is very useful. I use it in various cases working with Phonegap to get my app a better native experience.
0 1468 posted 13 years ago by bernhardb
Full Background Image in CSS
1 2044 posted 13 years ago by gnitter
private String mapPath = "img/full_map.png"; parkMapBitmap = getBitmapFromAsset(this.getContext(),mapPath);
0 2776 posted 13 years ago by l01241
Below are several different types of google static maps. The first is a map with a single marker on the Space Needle. The second is one with 3 marks, one on the Space Needle, one on the Seattle Science Center, and One on the EMP Museum. The last...
0 1841 posted 13 years ago by FatFolderDesigner
Via @lmgalmeida Usage: data-src="image.jpg" src="loader.gif" $("img").unveil();
0 1645 posted 13 years ago by digitalclubb
Add this bit of code to functions.php
0 1254 posted 13 years ago by adiacone
rather annoying issue that I encountered and spent too much time researching - the relevant IE fix is in all caps
1 3050 posted 14 years ago by felicemente
This snippet pulls down an image from a URL into a byte(). From there you can re-size or save. Don't forget the necessary try - catch.
0 7522 posted 14 years ago by ryanfiorini