How To Add jQuery’s hover() Method To Blogger

Posted by Lasantha Bandara on October 30th, 2009 File Under : jquery, mootools1 Comment

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Scroll down to where you see </head> tag .

3.Copy below code and paste it just before the </head> tag .

<script type='text/javascript'>
	window.onload = function() {
		var paras = document.getElementById('content').getElementsByTagName('p');
		if(paras.length) {
			paras[0].className = paras[0].className + ' intro';
<style type='text/css'>
		#hover-me		{ padding:50px 100px; border:2px solid #fc0; background:#d3ea74; }
<script src='' type='text/javascript'></script>
<script type='text/javascript'>

		/* usage */
		window.addEvent('domready',function() {

			/* hover! */
				'hover': function(fn1,fn2) {
						'mouseenter': function(e) {
						'mouseleave': function(e) {

			$('hover-me').hover(function(e) {
			}, function(e) {


4.Whenever you have to write some codes or text,write it between the following tags :

<div id="hover-me">

Your Text/Code


View Demo

File Under : jquery, mootools

One Response to “How To Add jQuery’s hover() Method To Blogger”

  1. rudy azhar says:


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.