Thursday, April 4, 2013
0
Thursday, April 4, 2013
Unknown
Blogger is free platform and easy to use,now making blog and website attracting is very important,think about background that change on each page load activity of user.Yes,its is possible but not with CSS its can be done through jquery. Blogger background will be randomly change every time reloaded.It look awesome when new visitors doesn't know this trick.
Having any trouble comment below
Randomize Blogger Background color using Jquery
Blogger is free platform and easy to use,now making blog and website attracting is very important,think about background that change on each page load activity of user.Yes,its is possible but not with CSS its can be done through jquery. Blogger background will be randomly change every time reloaded.It look awesome when new visitors doesn't know this trick.
Randomize Blogger Background Jquerry
This trick is by jquery this is done by randomizing the background color of blogger.It can be done by overriding the default background color or by removing background from css and adding this code.
- Log in to blogger.
- Then click template and edit and click proceed.
- Then search for </head>
- Then above that code paste the below code.
<script>
$(function() {
function randomColor() {
return 'rgb('+Math.round(Math.random()*255)+', '+Math.round(Math.random()*255)+', '+Math.round(Math.random()*255)+')'
}
$('body').each(function(i) {
$(this).css('background', randomColor());
});
});
</script>
- Then save the template.
- Now try few times after saving the template it will work.
Related Articles :
Do you like this article? Spread the words!
If you enjoyed this post, please consider leaving a comment or subscribing to the E-mail feed to have future articles delivered to your feed reader.
Subscribe to:
Post Comments
(
Atom
)
0 Responses to “ Randomize Blogger Background color using Jquery ”
Post a Comment