thn google
+13,700
twitter big logo icone 5336 48
1,755
Advertisers Tag Here
Join over 45,931 Daily Readers, Users, Subscribers
..who get notifications via Emails !
Jobs

1 Sept 2012

How to Auto apply lightbox effect to all images


Read This Post carefully ,, How to install the lightbox


  • The magic is on the second step ,find and replace this code

<script type="text/javascript">
$(function() {
$('a[rel*=lightbox]').lightBox();
});
</script>
With This
<script type="text/javascript">
$(function() {
$('a[href$=jpg], a[href$=JPG], a[href$=jpeg], a[href$=JPEG], a[href$=png], a[href$=gif], a[href$=bmp]:has(img)').lightBox();
});
</script>
From now ,you can upload and insert images to your post using uploader in post editor window and don't care for the rest . Lightbox effect will be applied to all images .