Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged image
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
 « Prev 1 Next »
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 
        
        
            1285 
        
                    posted 12 years ago by vijayrajesh
            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 
        
        
            1180 
        
                    posted 13 years ago by bernhardb
            Thank you marcg for posting this on Snipplr http://stackoverflow.com/questions/1379994/detect-when-a-specific-image-has-finished-loading
        
        
        
            0 
        
        
            1240 
        
                    posted 13 years ago by focal55
            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 
        
        
            1518 
        
                    posted 14 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 
        
        
            1170 
        
                    posted 14 years ago by jquery4u
            A simple script that will add captions to images and allow for easy styling.
        
        
        
            1 
        
        
            1016 
        
                    posted 15 years ago by dom111
            Very easy way to preload images which are needed later (e.g. when a hover is performed)
        
        
        
            4 
        
        
            1395 
        
                    posted 15 years ago by iqwebdev
            Each image button requires two images to represent two states: the off-state and the on-state. In this case, the on-state has "_ovr" appended.
        
        
        
            0 
        
        
            1266 
        
                    posted 15 years ago by nijgnet
            Used this on a project to determine whether images were loaded or not. In an image carousel, for example, you could test the next/clicked image before advancing the slide, and if 'loaded' wasn't 'true', you could add a "loading" class and attach a ne...
        
        
        
            3 
        
        
            1380 
        
                    posted 16 years ago by dougunderscorenelson
            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 
        
        
            1545 
        
                    posted 16 years ago by 1man
            [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 
        
        
            1609 
        
                    posted 16 years ago by jadedbat
             « Prev 1 Next »

