Message Box Like Wordpress With Close Button Using jQuery For Blogger Blogs
We have seen many times a beautiful massage box in many Wordpress blogs.It appears between the title and body of post.It can be easily removed by simply clicking the close link.Here is a same massage box for blogger blogs also:) I want to clear here that this Massage box is More interesting then simple regular box.When we visit the page firstly it appears with fade in and fade out effect which easily attracts the attention of visitors.When after reading the massage he/she can make It runs out of the page .Just see the Demo Below ;)
Please Download Scripts And Upload in Your Own Server Then use Direct Links to files In Below Code.
Where To Upload These Scripts ?Click Here To Know :)
Installation :
Step 1:
Javascript + CSS
Login your BLOGGER account And click on Layout in the sub menu click then Edit HTML now Check Expand Widget Templates
Now Find ]]></b:skin> Then Replace it with Below Code
Step 2:
HTML
Login your BLOGGER account And click on Layout in the sub menu click then nowEdit HTML Check Expand Widget Templates
Now Find <data:post.body/> Then Replace it with Below Code
Then save your template !
Now your massage will only appear only on post page not on Homepage.
Please comment About this widget :)
Please Download Scripts And Upload in Your Own Server Then use Direct Links to files In Below Code.
Where To Upload These Scripts ?Click Here To Know :)
Installation :
Step 1:
Javascript + CSS
Login your BLOGGER account And click on Layout in the sub menu click then Edit HTML now Check Expand Widget Templates
Now Find ]]></b:skin> Then Replace it with Below Code
]]></b:skin>
<script src='http://bloggerplugnplay-files.bravehost.com/massegebox-byplug-jquery-1.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){
$(".close").click(function(){
$("#info").animate({left:"+=10px"}).animate({left:"-5000px"});
});
blink();
});
function blink(){
$("#info").fadeOut(800).fadeIn(800).fadeOut(400).fadeIn(400).fadeOut(400).fadeIn(400);
}
function nudge(){
$("#info").animate({left:"+=5px"},20).animate({top:"+=5px"},20).animate({top:"-=10px"},20).animate({left:"-=10px"},20)
.animate({top:"+=5px"},20).animate({left:"+=5px"},20)
.animate({left:"+=5px"},20).animate({top:"+=5px"},20).animate({top:"-=10px"},20).animate({left:"-=10px"},20)
.animate({top:"+=5px"},20).animate({left:"+=5px"},20);
}
</script>
<style type='text/css'>
#info{
border: 1px solid;
margin: 0px 0px;
padding:5px 5px 15px 5px;
background-repeat: no-repeat;
background-position: 10px center;
position:relative;
color: #00529B;
background-color: #BDE5F8;
background-image: url('info.png');
}
</style>
Step 2:
HTML
Login your BLOGGER account And click on Layout in the sub menu click then nowEdit HTML Check Expand Widget Templates
Now Find <data:post.body/> Then Replace it with Below Code
<b:if cond='data:blog.pageType == "item"'>
<div style="" id="info"> YOUR MASSAGE HERE <a href="#" class="close"> CLOSE !</a></div>
</b:if>
<data:post.body/>
Then save your template !
Now your massage will only appear only on post page not on Homepage.
Please comment About this widget :)
nice trick
ReplyDeleteDoesn't work for me ...
ReplyDeletehttp://mobers.org
Doesn't work for me
ReplyDelete