Bumpbox is a lightbox clone script which also supports HTML files, FLV videos, SWF files and PDF’s as well as common images.Bumpbox is a lightbox clone script which also supports HTML files, FLV videos, SWF files and PDF’s as well as common images.
Bumpbox requires flowplayer media player to show FLV video files. The script requires Mootools JavaScript library of version 1.2.
Steps to Add it to Blogger:
1.Login to the Blogger account.
2.Go to the Post/Page you want to add the Bumpbox and go to Edit HTML tab .
3.Now copy the code from below and paste it there.
For using this Multiple times copy the Above code Before the </head> tag in the Design > Edit HTML Tab
4.Now for adding the images into BumpBox, Firstly add the image normally using Insert Image button
Now When you see the code in the edit HTMLwindow it would be something like this
| < a href = " large3.jpg" ="">< img border = "0" height = "90" src = "/small3.jpg" width = "120" /></a>
|
| < a href = " " class = "bump" >< img src = " " /></ a >
|
As you can see we added only a class="bump".Then you also have to add this piece of code
| < script type = "text/javascript" >
|
| //names,inSpeed,outSpeed,boxColor,backColor,bgOpacity,bRadius, borderWeight,borderColor,boxShadowSize,boxShadowColor,iconSet,effectsIn,effectsOut
|
'.bump' can be replaced by the name you of your choice but then the call should also be made by that name
For adding bumpbox with effects you can see the code below
| < script type = "text/javascript" >
|
| //names,inSpeed,outSpeed,boxColor,backColor,bgOpacity,bRadius, borderWeight,borderColor,boxShadowSize,boxShadowColor,iconSet,effectsIn,effectsOut
|
| doBump('.bump',1200, 500, '34373c', '34373c', 0.7, 3, 1 ,'333', 9,'000', 1, Fx.Transitions.Bounce.easeOut, Fx.Transitions.Bounce.easeOut);
|
Here is a complete list of options
| Class name for bumpbox objects, note the dot in front of the class name itself |
| Effect speed to show bumpbox ( in ms ) |
| Effect speed to remove bumpbox ( in ms ) |
| Hex color of bumpbox itself, omit # |
| Hex color of the background overlay, omit # |
| Opacity of the background overlay, values 0 - 1 |
| Border radius of the bumpbox client window in px |
| Border weight of the bumpbox client window |
| Hex color of the bumpbox client window, omit # |
| |
| Hex color of bumpbox shadow, omit # |
| Choose from 4 predefined icon sets |
| |
| |
| Background image to be used |
| |
| |
Using a fully customized bumpbox:
doBump( '.bump',750, 500, '111', '900', '0.8', 5, 1 ,'333', 15,'000', 4,
Fx.Transitions.Bounce.EaseOut,
Fx.Transitions.Bounce.EaseOut,
'images/demo_bg_bumpbox.png',
'top left',
'repeat-x' );
| < script type = "text/javascript" >
|
| //names,inSpeed,outSpeed,boxColor,backColor,bgOpacity,bRadius,borderWeight, borderColor,boxShadowSize,boxShadowColor,iconSet,effectsIn,effectsOut
|
| doBump('.bump',1200, 500, '34373c', '34373c', 0.7, 3, 1 ,'333', 9,'000', 1, Fx.Transitions.Bounce.easeOut, Fx.Transitions.Bounce.easeOut);
|
| doBump('.bx2',850, 500, '000', '6b7477', 0.7, 7, 2 ,'333', 15,'000', 2, Fx.Transitions.Back.easeOut, Fx.Transitions.linear);
|
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 Next button ,Previous button ,etc are all 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.
Written by Prayag Verma
Find me on
Twitter
great work on bumpbox in the blog...!!!
It doesn't work