Jumat, 21 Agustus 2009
How To Add Beautiful Page Peel Effect with jQuery
1.Login to your blogger dashboard--> layout- -> Edit HTML2.Don't Click on "Expand Widget Templates"
3.Scroll down to where you see ]]></b:skin> tag:
4.Copy below code and paste it just before the ]]></b:skin> tag.
#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 52px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM-_8y_YMjaMPAdunsWjQDW5nNBd1TCavNS9UjeQK2P6-ONl12sQGFsqFEJU5EjafSnUNPRn0bDsfea-_yTByKI9KYQxJyCCtB_Et8zm2DxWqrGq4dxHexATudq8DxCdYW6Tc34mIghkFH/) no-repeat right top;
text-indent: -9999px;
}
Note : Please host 'subscribe.png' image yourself.
5.Scroll down to where you see </head> tag:
6.Copy below code and paste it just before the </head> tag.
<script src='http://code.jquery.com/jquery-latest.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){
//Page Flip on hover
$("#pageflip").hover(function() {
$("#pageflip img , .msg_block").stop()
.animate({
width: '307px',
height: '319px'
}, 500);
} , function() {
$("#pageflip img").stop()
.animate({
width: '50px',
height: '52px'
}, 220);
$(".msg_block").stop()
.animate({
width: '50px',
height: '50px'
}, 200);
});
});
</script>
6.Scroll down to where you see <body> tag:
7.Copy below code and paste it just after the <body> tag.
<div id='pageflip'>
<a href='http://feeds2.feedburner.com/blogspot/WyNa'>
<img alt='' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyLLuBL7SRWain-uZFZ8qRN7L-nfFkE6XrZplFUYckSZAaYJ6FNlgq7hGLjU2qQO7JNvr3g32N1drl_ZAzG6ZRMiJ0xhRS8_zN2dOb4-HXvjp3oQ7DOmsi8XKbOINYsCslEd-pQVi7N2SR/'/>
<span class='msg_block'>Subscribe via RSS</span>
</a>
</div>
Note : Please host 'page_flip.png' image yourself.
Replace 'http://feeds2.feedburner.com/blogspot/WyNa' with your feed address.
8.Click on "Save Templates" and now you are done.It will look like this :

When your mouse brings towards above icon it willlook like this :

Langganan:
Posting Komentar
(
Atom
)
Tidak ada komentar :
Posting Komentar