Implementing iBox in Blogger

iBox is a lightweight script that lets you overlay images and documents in a small dialog without a page reload. It's built to be easy to install and use.

iBox easily supports the standard overlay of images, in many sizes, and will automatically scale down the window if the browser's viewpane is too small.


Steps to Add it to Blogger:

1.Login to the Blogger account.

2. Now Go to Design > Edit HTML.

3.Now search for the </head> tag and paste the following code just Above/Before it.

<script src="" type="text/javascript">
<link href="" media="screen" rel="stylesheet" type="text/css"></link>

2.Go to the Post/Page you want to add iBox and then go to Edit HTML tab .

3.Now copy the code from below and paste it there.

<script src="" type="text/javascript">
<link href="" media="screen" rel="stylesheet" type="text/css"></link>

4.Now for adding the images into iBox ,Firstly add the image normally using Insert Image button

Now When you see the code in the edit HTML Window it would be something like this

<a href="large3.jpg"><img border="0" height="90" src="/small3.jpg" width="120" /></a>

Make it like this 

a rel="ibox" href="large3.jpg"><img border="0" height="90" src="/small3.jpg" width="120" /></a>

As you see we only addeda rel="ibox"

Some Example Code:
<a href="" rel="ibox" title="Good Barbeque at 1024x450!"><img alt="" src="" /></a>

<a href="" rel="ibox" title="Loading External HTML File using AJAX" >ibox-ajax-test.html</a>

<a href="#inner_content" rel="ibox" title="Loading Internal HTML Content" >#inner_content</a>
<div id="inner_content" style="display:none;">
<div style="background:#000000;color:#ffffff;border:1px dashed #FFFFFF;padding:15px;margin:15px;">

It is a hidden div!</h2>
If you were to view source, you would find a div called 'inner_content'. This is that div. We have used CSS to set its display property to none, but using <a href="">iBox</a>, you can clearly see it as an overlay. Hurrah!</p>
It is even styled. Oh so pretty it is</p>

<a href="" rel="ibox">My YouTube Video</a>

<a href="login.php" rel="ibox&amp;width=275" target="ibox-login.html" title="Login">Login Form</a>

5.Now save the Post/Page and see the magic.

Note: Please Host all the files on free hosting service like DropBox or Blogspot itself !

Another Important thing to note is that all the images used in this tutorial like Loader.gif is hosted on Google Code service which are the fastest and most reliable servers on the internet with the least downtime.So you can easily implement this with no hassles for Image Hosting



Post a Comment

© 2009 Blogger Tips 2013 | Powered by Blogger