
Have a Look at This Image. Its wow? Isn't it? So this is a simple css and jquery trick which makes the background image move. if you'll see the Image is constant. it isnt a gif. its the jquery which make the background move
Did Amazed with pic? Check
Steps to Add this to your own Blog / site.
So Its Very Easy to Add this to you blog
- Visit Blogger > Dropdown menu > Template > Edit HTML
- Now Press Ctrl + f and search for body{ [this is actually starting of your blogs body]
- And Replace the body{ with the code below
background:#c1deee url(http://i.imgur.com/JD8mWs7.png) repeat-x scroll top left;
- Now Your Background Will be seen :) But we need to move the Clouds . ie background image
- So Add the following code Above
</head>
<script src=’http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js’ type=’text/javascript’/>
<script charset=’utf-8′ type=’text/javascript’>var scrollSpeed=70;var step=1;var current=0;var imageWidth=2247;var headerWidth=800;var restartPosition=-(imageWidth – headerWidth);function scrollBg(){current -=step;if (current==restartPosition){current=0;}$('body').css("background-position",current+"px 0");}var init=setInterval("scrollBg()", scrollSpeed)</script>
- Yeah! Hi five your blog now have a animnated background. just remove code highlighted above if you have already included jquery and change speed as you Wish
Leave a Comment Below if any problem and thanks to the Developer :)
Wonderfull. Ya made my day :)
ReplyDeleteHey Thanks :)
DeleteThnaks (Y)
ReplyDeleteThnks :)
Delete:)
ReplyDelete:>)
Deletewow
ReplyDeleteThanks :>) Keep Visiting :-d
Deletehow to make it fast?
ReplyDeleteJust Change var scrollSpeed=70 :d
DeleteThis comment has been removed by a blog administrator.
ReplyDeletesame here,,
DeleteIs it possible to make it to 2 separate moving backgrounds? Say 2 different backgrounds moving at different speed? Please advise... Thank a lot!
ReplyDeleteSorry But We Cant Add Two Background Images To Blog :)
DeleteThis comment has been removed by the author.
ReplyDeleteGreat
ReplyDeleteway2hacking.com
Works like a charm
ReplyDeleteHello Pravin
ReplyDeleteI love this particular hack, but I can not find body{
in the template.
I am using SIMPLE Template in the new Designer.
Any ideas Please?
Thank you