Welcome To Snipplr


Everyone's Recent Snippets Tagged image



1 4409 posted 17 years ago by janetmck
[directory] ├index.php //this snippet ├imageA.jpg ├imageB.gif └imageC.png This snipet displays the thumbnail of the picture file that exists in the same directory. When the thumbnail image is clicked, the original size image is...
6 1729 posted 17 years ago by kyokutyo
It gets images randomly from folder that you've pointed.
4 2595 posted 17 years ago by skywalker
How to use: 1) < script type="text/javascript" src="path-to-file.js"... 2) < body onload="oHW.preMontar('img1_on.jpg','img2_on.jpg','img3_on.jpg');"... 3) < a href="#" onmouseout="oHW.Restore()" onmouseover="oHW.Cambiar('mnind','img1_on.jpg'...
2 1752 posted 17 years ago by hellion
I did not author this code. I came across it and have found it to be useful.
2 1709 posted 17 years ago by gtalmes
1 1311 posted 17 years ago by gbot
0 1228 posted 17 years ago by stavelin
This function will return the height and width of an image that will change if the height/width is greater than the maximum supplied width and height.
2 1429 posted 17 years ago by dmlanger
2 2050 posted 17 years ago by Cory
1 3187 posted 17 years ago by frakim
This requires ImageMagick installed. Resize, as well as convert the image format. (Note: either of WIDTH or HEIGHT can be left blank, e.g. WIDTHx and the image will be resized proportionally)
1 1491 posted 17 years ago by soroush
The selector portion of the CSS rule targets which XHTML tags/classes this rule will be applied to. At first glance, it looks like all img tags as well as all tags with a class of "png". You’ll notice the * html in front of both of these. Wait, the...
15 7514 posted 18 years ago by jonhenshaw
Sitepoint have this useless but cool feature if you hold down the middle click to autoscroll the page - they have replaced the image that indicates scrolling
1 1063 posted 18 years ago by natalie
This allows you to replace the bog standard browser button (form buttons) with any image you wish.
9 2586 posted 18 years ago by 1man
Another image preloader.
6 1766 posted 18 years ago by fael
0 1242 posted 18 years ago by sudarkoff
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3 1457 posted 18 years ago by jonhenshaw
get the image size and reduces it dynamically
3 1654 posted 18 years ago by valcartei
Requires PerlMagick.
0 1398 posted 18 years ago by iblis
CSS image replacement with no extra span needed.
3 1141 posted 18 years ago by 1man
example: thumb.php?p=image.jpg&s=45
0 1316 posted 18 years ago by iloveitaly
This solution is cool for screen readers, because they also read the text content.
2 1100 posted 18 years ago by narmolanya
This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O. The template snippet links the images to their own node.
2 1313 posted 18 years ago by berkes
This snippet is for use with image_attach, a small contributed module that uses image module to create nice thumbs in any node type. The template snippet makes the images show up larger in the body node, and instead of linking to itself, it links t...
2 1074 posted 18 years ago by berkes
Los favicon soporta varios (ignoro si todos) los formatos de imagen siguientes: png (type="image/png"), .gif (type="image/gif"), .ico. (etc.). Porc cierto, los favicons soportan trasnparencias.
3 1173 posted 18 years ago by Hirmine