Tuesday, June 16, 2009

New Blog Theme

 image
Hey there,
My Blog has got a new theme!!! Hope you people will like it.
Try playing with the widgets, They can be moved!!!

I have taken the theme from here (English translated page)
and modified it a-lot, fixed few things.

This theme is a replica of iTheme for word press. Which was ported to blogger by BlogandWeb.
To make those widgets movable, I am using JavaScript.
<script src='http://www.google.com/jsapi' type='text/javascript'></script> 
<script type='text/javascript'>
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.1");
</script>
<script type='text/javascript'>
$(document).ready(function(){
$(".widget.HTML").draggable();
$(".widget.Label").draggable();
$(".widget.BlogArchive").draggable();

});
</script>



let me explain this
  1. In First JavaScript block is to receive Ajax library from Google server.
  2. In Second JavaScript block is to receive jQuery library from Google server. Google hosts jQuery
  3. In Third JavaScript block i am selecting all the widgets (you might have to change this selector code) and calling the dragable function to make all those widgets dragable.

No comments:

Post a Comment