Welcome To Snipplr
Everyone's Recent Snippets Tagged image
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use this to extract an image embedded as a resource in your project. Call the function supplying the full path to the resource, for example:
Dim myImage as Bitmap = EmbeddedIcon("MyApplication1.myImage.png")
Where "MyApplication1" is the root n...
0
972
posted 15 years ago by chavcho
Simple imagefader to rotate around a few images. Seem to be doing this a lot in various projects so decided to put something a bit more generic together. Uses jQuery. Images named as car1.jpg, car2.jpg, car3..... etc.
3
1089
posted 15 years ago by 1man
* Resized images are generated into TARGET_DIR.
* Change the resolution (800x800 in my example) and quality (80) as you want.
* The command keeps the image's proportion. 1600x1200 will be converted into 800x600, 1200x1600 into 600x800.
_Notice_:...
2
1041
posted 15 years ago by Dorgendubal
[Video Example](http://screencast.com/t/L6E0xI0J5P)
A cross browser image caption on mouseover. Using jquery, CSS. This is a bit crude but pretty simple to implement. Just change the image width, some css to match that image size and create dyn...
4
1118
posted 15 years ago by jadedbat
-s 86x60 Defines the dimension of the thumbnail
-ss 4 Generate a thumbnail from position 00:00:04 (4 seconds)
0
716
posted 15 years ago by smoover
<p>How to use: HTML:
<img id="image" src="image.png" alt=""/></p>
<p>JavaScript:
add_reflection (document.getElementById ( 'image'), 1, 1, 0.1, 0); </p>
<p>As a result, the script wrap image in the div, ask him to the desired height and...
2
870
posted 15 years ago by Jman
Forces a user to download a file, for e.g you have an image but you want the user to download it instead of displaying it in his browser.
0
744
posted 15 years ago by fruehjahr
In original Shea Enhancement, image had higher z-index than drop-down menu items. Changing z-index of entire H1 made text appear above image in some browsers. Could not change z-index of menu items.
Added an extra span tag and two classes to the m...
0
837
posted 15 years ago by skylenewman
To use the resize function you must pass in the forced width, forced height, source image, and destination image. The function then uses the GD2 library functions to read the source image's size. It will then calculate the new image's size based off...
3
984
posted 16 years ago by Jenhale
When you run this script you will see the result like this
Image width 379
Image height 344
Image type 2
Image attribute width="379" height="344"
You will get the width, height, type of an image and also attribute of an image, I use this fun...
3
2791
posted 16 years ago by jamesming
Firefox ignores the alt tag on images and uses the title tag whereas IE uses the alt tag. This javascript code copies the text in all image alts to the image's title. Best when placed at the footer of each page
1
870
posted 16 years ago by ezerick