Welcome To Snipplr
Everyone's Recent Snippets Tagged image
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
use <?php>/images/someimage.gif
Such a path resolves to ..
http://www.yoursite.com/wp-content/themes/YOURTHEME/images/someimage.gif
0
700
posted 13 years ago by disgruntledillon
Annoy your visitors, fool your friends, fun and party. Please note that this also disables ability to write in form fields.
0
656
posted 13 years ago by stephcode
PROBLEM:
How to save Excel range into image file. VBA macro in Excel 2007.
SOLUTION:
Create an empty chart, paste range image into chart area, and Export as image file.
Modify code to suite to your needs.
0
4038
posted 13 years ago by win4me
This goes in any phtml file to get the image from the skin folder
0
662
posted 13 years ago by uteman23
Note that this approach DOESN'T maintain the image's aspect ratio. For a pure CSS technique that does that you need a CSS3 approach.
0
815
posted 13 years ago by f6design
This is a much cleaner way to do this than the number of examples on the web. Every example I saw seemed to account for orientation - horizontal vs. vertical vs. square when looking at the input. This ignores horizontal and vertical by mapping the...
0
731
posted 13 years ago by dblack
Pull banner ad or image code from a given text file into an array and randomize the order. Banner/image codes in the file should be separated by tildes (~).
0
806
posted 13 years ago by bluecap
This is how you can add a file/image upload tool to your forms and have AJAX store the file with PHP and return a thumbnailed version to the user for display on the form. Nice.
2
816
posted 13 years ago by jquery4u
So today I created a html image map which creates dynamic links based on the color of the pixel that the user clicked.
0
766
posted 13 years ago by jquery4u
What's so special about this JavaScript slideshow? By moving your cursor all over the webpage you create a nice distortion effect on your images.
0
738
posted 13 years ago by fabulant