Kamis, 2008 Mei 22

Ajax LightBox for Blogger based blog

Blogger AJAX animated image
Image credit by Kengo @ Flickr.

This post is the English version of my previous post about using Ajax LightBox for a Blogger based blog. You will find how to put and use LightBox effect which is AJAX based as its backend. We can tweak some images to be displayed neatly cool and animated by using AJAX. So here I've a modified version of LightBox 2.04 so it can be used on Blogger based blog. Using this tool is absolutely easy as one tweo and three steps. You might click each image to test how this AJAXIAN script works.

Lightbox is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.

1. Login to Blogger, head your browser to Layout > Edit HTML.

Blogger edit template

2. Then please insert code provided below right between <head></head> tag. Confused? Just locate the </head> tag and place the code exactly before the </head> tag. Now hit Save button.


<link rel='stylesheet' href='http://fariezna.googlepages.com/lightbox.css' type='text/css' media='screen' />
<script type='text/javascript' src='http://fariezna.googlepages.com/prototype.js'></script>
<script type='text/javascript' src='http://fariezna.googlepages.com/scriptaculous.js?load=effects,builder'></script>
<script type='text/javascript' src='http://fariezna.googlepages.com/lightbox.js'></script>
insert code

3. The Implementation. Write your post just like usual, then embed your images as usual too. Use ordinary tag instead, <img src"">. Then add code below between your <img> tag.

<a href="http://lokasigambar.com/anda-yang-ukuran-BESAR.jpg" rel="lightbox" title="Deskripsi"></a>

Its result will be like this one.

<a href="http://lokasigambar.com/anda-yang-ukuran-BESAR.jpg" rel="lightbox" title="Deskripsi"><img src="http://lokasigambar.com/anda-yang-ukuran-KECIL.jpg" border="0" alt="Photobucket"></a>

Or please see screenshoot below:

Insert code to posting

4. Now change the word Deskripsi at that code with images title or description (optional).

Short explanation:
You should enter your full sized image URL at this <a href=""></a> tag. Now insert URL to minimized size or thumbnail size of the image at <img src=""> tag.

I think this Blogger hack is very easy isn't it? Try this at your blog and give me your comment please. Siip. Enjoy this LightBox AJAX for Blogger By The Fachia : Make your blog post more beautiful using LightBox Ajax.

27 comments:

Eko Priyanto Kamis, 2008 Mei 22 08:06:00 PDT  

bro sekalian terjemahin postingan ku ya, satu postingan berapa nih, gw musti ngasih ongkos? :)

Fariez The Fachia Kamis, 2008 Mei 22 09:31:00 PDT  

@ eko P, I'm sorry..what r u talking about (wakaka,..). Kowe koq ngece men toh mas eko,..hehe

Eko Priyanto Kamis, 2008 Mei 22 22:41:00 PDT  

bro aku coba search by goolge tapi larinya malah kesini

Abi Bakar Jumat, 2008 Mei 23 00:51:00 PDT  

yup memang easy steps...

OOM Jumat, 2008 Mei 23 10:45:00 PDT  

top tutorial pasti langsung coba....

Fariez The Fachia Jumat, 2008 Mei 23 20:23:00 PDT  

oke om, make sure you tell me when you used it. Thanks for comment om.. :D

masenchipz Sabtu, 2008 Mei 24 01:40:00 PDT  

Bro... can you give me e-book about this (yapzz...more detail for tutorial me)... thnks lt bro...

anggiriefna Minggu, 2008 Mei 25 13:08:00 PDT  

my brother...tell me more to improve the blog....still give us interactive tutorials

minkAYuko Selasa, 2008 Juni 03 17:30:00 PDT  

Thank you very much for this!! I added it to my blog it works on some images but on others it dosen't it appears "loading" all the time... can you tell me why?

this is the link where they don't load LINK

Thank you!.

Orisha Jumat, 2008 Juni 06 00:54:00 PDT  

It seems that if you upload your iages to blogger the script would not work, so try uploading your images to other hosting image site

minkAYuko Jumat, 2008 Juni 06 02:48:00 PDT  

as Orisha mentions it that's why I the images don't work beacuase it has this "bp1" on the link I believe. Is there something you could do about it? and update?

Thank you.

kannadiga Rabu, 2008 Juli 02 06:00:00 PDT  

i added to my site www.sirigandha.com
It used to work b4.
but it doesnt work now!!
any reason

ad kecikbesau Kamis, 2008 Agustus 07 02:07:00 PDT  

i have the same prob.the loading icon is not disappearing.even i upload the pics form other host.it goes the same.

Kaayru Minggu, 2008 Agustus 31 09:07:00 PDT  

Thank you, I installed it on my blog and it works :-D Just one thing, it doesn't work if you use Blogger to host your images.

Lukas Mensik [Lukinec] Kamis, 2008 September 18 18:44:00 PDT  

Thanks for this mate. It works perfectly and as I'm using my Flickr photos as source, I didn't have any issue with everlasting loading. So we are currently reworking our blog to use that also in older posts and are very happy with that. Much appreciated!

Lukas Mensik [Lukinec] Senin, 2008 September 29 18:02:00 PDT  

Any chance for other media support? Mean Quicktime & Flash ...

Fachia Jumat, 2008 Oktober 03 01:59:00 PDT  

@ Lukas Mensik, for this version, I think it doesnt support flash and other animated media files (except gif).

@ kannadiga, yes I realize may be sometimes it doesn't work, it is caused by my bandwith limit at Googlepages server. If you want to make it always work, then you'll need to download the source code, edit it, and reupload it to other hosting server.

Jen Wong Rabu, 2008 Desember 10 23:11:00 PST  
Posting ini telah dihapus oleh penulisnya.
Jen Wong Rabu, 2008 Desember 10 23:12:00 PST  

it's working in firefox but not in IE
IE will prompt Cannot load page error. do you know why? it's so strange..

AurĂ©lio Pita Kamis, 2009 Januari 08 16:45:00 PST  

dont work for me. I click in the image and nothing append!
blogger change the script code when a put in my html. that's normal?

test in:
http://tasarir.blogspot.com/

please say someting!

AurĂ©lio Pita Kamis, 2009 Januari 08 16:59:00 PST  

ps: Working! i need to upload my images in another host to work in blogger.
btw, Thanks

Anonim Kamis, 2009 Februari 19 02:40:00 PST  

Hi, This is great thanks a lot.

The only issue Ive got is that my blog is looking at the scripts on your site.(I just pasted your links). Ive got the scripts on my webspace, but cant seem to find the proper path to point my blog to my lightbox scripts.
Sorry, Im new to this, any help would be appreciated, thanks. :)
Richard

Vidyadhar Vishampayan Selasa, 2009 Maret 03 23:35:00 PST  

Hi

Nice tutorial...
I have completed all the steps but i am not getting the end result right. i get two images instead. there is one large image and one thumbnail image. how to solve this problem pls reply

Vidyadhar Vishampayan Selasa, 2009 Maret 03 23:36:00 PST  

hi blog link is http://marathikavitablog.blogspot.com/

Hare Chandran Jr Jumat, 2009 April 10 11:43:00 PDT  

this post is useful :)
but..

why my pic is out of the alignment ??
it do load, but then the pic is out of the light box.. :( any idea?

Aishwar Selasa, 2009 April 21 21:49:00 PDT  

Hey,

I have created an easy-to-integrate lightbox type effect for blogger. You just reference a javascript file and all the images you upload to blogger automatically have the lightbox-type effect. There is no need to "edit html" for each of the images. You can read more about it here: AiBloggerBox.

CrystalDream Senin, 2009 Juni 22 16:29:00 PDT  

worked here
http://elbloghd.blogspot.com

Poskan Komentar

Artikel Terlaris

U Buzz I Buzz!!

Recent Comments

  © Copyright 2007-2008. Fariez TheFachia.com. All rights reserved. TheFachia.com is proudly powered by Blogger.

Back to TOP