Shadowbox for Blogger

Written By Chotot Dudulzz on Thursday, July 28, 2011 | 10:52 AM


Shadowbox by  Michael J. I. Jackson
Installation on Blogger
1. Go to => Log in
2. Select a menu design => Edit HTML
3. Then copy the code below and paste it before the closing head tag

<!-- shadowbox --> <style> #sb-title-inner,#sb-info-inner,#sb-loading-inner,{font-family:"HelveticaNeue-Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:200;color:#fff;} #sb-container{position:fixed;margin:0;padding:0;top:0;left:0;z-index:999;text-align:left;visibility:hidden;display:none;} #sb-overlay{position:relative;height:100%;width:100%;} #sb-wrapper{position:absolute;visibility:hidden;width:100px;} #sb-wrapper-inner{position:relative;border:1px solid #303030;overflow:hidden;height:100px;} #sb-body{position:relative;height:100%;} #sb-body-inner{position:absolute;height:100%;width:100%;} #sb-player.html{height:100%;overflow:auto;} #sb-body img{border:none;} #sb-loading{position:relative;height:100%;} #sb-loading-inner{position:absolute;font-size:14px;line-height:24px;height:24px;top:50%;margin-top:-12px;width:100%;text-align:center;} #sb-loading-inner span{background:url( no-repeat;padding-left:34px;display:inline-block;} #sb-body,#sb-loading{background-color:#060606;} #sb-title,#sb-info{position:relative;margin:0;padding:0;overflow:hidden;} #sb-title,#sb-title-inner{height:26px;line-height:26px;} #sb-title-inner{font-size:16px;} #sb-info,#sb-info-inner{height:20px;line-height:20px;} #sb-info-inner{font-size:12px;} #sb-nav{float:right;height:16px;padding:2px 0;width:45%;} #sb-nav a{display:block;float:right;height:16px;width:16px;margin-left:3px;cursor:pointer;background-repeat:no-repeat;} #sb-nav-close{background-image:url(;} #sb-nav-next{background-image:url(;} #sb-nav-previous{background-image:url(;} #sb-nav-play{background-image:url(;} #sb-nav-pause{background-image:url(;} #sb-counter{float:left;width:45%;} #sb-counter a{padding:0 4px 0 0;text-decoration:none;cursor:pointer;color:#fff;} #sb-counter{text-decoration:underline;}{font-size:12px;padding:10px;text-align:center;} a:link, a:visited{color:#fff;text-decoration:underline;} </style> <script src='' type='text/javascript'/> <script type='text/javascript'> Shadowbox.init({ handleOversize: "drag", modal: true }); </script>

4. Save template

Next you need to tell Shadowbox which links you want it to open. The simplest way to do this is through your HTML markup. If you're going to take this route, at the very least you must add a rel="shadowbox" attribute to each link. For example, say you have this link to an image on your page:

<a href=""> Image</a>

In order to set up this link for use with Shadowbox, simply change it to this:
<a href="" rel="shadowbox">Image</a>

That's it! Clicking on this link should now open up the image in Shadowbox.
If you would like to display a title for your image, simply add a title attribute to the link.
<a href="image.jpg" rel="shadowbox" title="Image">Image</a>

You must explicitly tell Shadowbox the dimensions to use to display content other than images. This is done by adding a few parameters to the end of the rel attribute, separated by semi-colons. To specify a movie's height and width (in pixels), use the height and width parameters.
<a href="movie.swf" rel="shadowbox;height=140;width=120">Movie</a>

In addition to displaying single images and movies, Shadowbox is also capable of displaying galleries of content. In order to designate a link as part of a gallery, you must add the gallery name to the rel attribute between square brackets immediately following the word shadowbox. The following markup creates a gallery called "Vacation" with two pictures.
<a href="image.jpg" rel="shadowbox[Vacation]">The Beach</a>

<a href="
image.jpg" rel="shadowbox[Vacation]">The Pier</a>

Galleries may be composed of content of many different types. The following markup demonstrates how various media can be combined into a single gallery.
 [image 1][image 2]

<a rel="shadowbox[Mixed];" href="image1.jpg">[image 1]</a>

<a rel="shadowbox[Mixed];" href="
image2.jpg">[image 2]</a>
url should be changed so that it becomes like this 

<a href="" rel="shadowbox;height=400;width=800;">video</a>
size box  ;height=400;width=800; 
<a href="" rel="shadowbox">yoursite</a>
<a href="" rel="shadowbox"></a>

Related Post