LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » Blogspot / Blogspot Multi Tabs / Website / Website Multi Tabs » Stylish Open DIV On Click Widget For Blog And Website

Stylish Open DIV On Click Widget For Blog And Website

Stylish Open DIV On Click Widget For Blog And Website

Here’s a simple tutorial on How To Open A DIV On Click. This is very simple code but here I am going to make it more awesome via including a JQuery plugin to make it’s opening more awesome. Many people want this widget so that they can save there space on website or blog to show there widget on user demand because many visitor did not want everything so if some one needs any thing they just read the title and open if he desire. So without any more preface here we proceed to that widget code but before you have to view the awesome features of this widget and the demo screen shoot below.

Features:

1.) This DIV Will Open On Mouse Click Over There Title And Close On Again Click On There Title.
2.) You Can Add More CSS To Make You DIV Stylish And Awesome.
3.) You Can Add Unlimited DIV.
4.) You Can Open All DIV At Same Time And Also Close All At Same Time.
5.) Easy To Install And Quick To Load.
6.) You Can Add  Text, HTML Code, JavaScript Code, Video, Pic And Anything .
7.) This Contain JQuery That Make It More Awesome When It Slides When Opening.
8.) Supported Browsers (IE+9, Chrome And FireFox, Safari And Opera)

Stylish Open DIV On Click Widget For Blog And Website 

How To Add In Blogspot?

1.) Go To Your www.blogger.com
2.) Open Your Desire Blog.
3.) Go To Layout.
4.) Click “Add A Gadget” Where You Want To Add It.
5.) Now Scroll To “HTML-JAVASCRIPT”
6.) Click “+” Icon To Add It.
7.) Now Copy The Below Code And Paste It To There.
8.) Leave The Title Empty.
9.) Click Save, Now You Are Done.

Recommended For You:
How Bad Photoshop Is In The World Of Web Design?

How To Add In Website?

1.) Just Go To Your HTML File.
2.) Now Copy The Below Code And Paste It Between <body> </body>.
3.) Save It, Now You Are Done.

<style>
#exediv, #exediv_2{height:300px;background-color: #efefef;padding:20px;display:none;}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
(function ($) {
$.fn.showHide = function (options) {
var defaults = {
speed: 1000,
};
var options = $.extend(defaults, options);
$(this).click(function () {
$('.toggleDiv').slideUp(options.speed, options.easing);
var toggleClick = $(this);
var toggleDiv = $(this).attr('rel');
$(toggleDiv).slideToggle(options.speed, options.easing, function() {
if(options.changeText==1){
$(toggleDiv).is(":visible") ? toggleClick.text(options.hideText) : toggleClick.text(options.showText);
}
});
return false;
});
};
})(jQuery);
</script>
<script type="text/javascript">
$(document).ready(function(){
$('.show_hide').showHide({
speed: 1000,
});
});
</script>
<a href="#" class="show_hide" rel="#exediv">Division 1</a><br />
<div id="exediv">
Fill This Space With Your First DIV Content Like Text, HTML Code, JavaScript Code, Video, Pic And Anything You Want To Show Here.
</div>
<a href="#" class="show_hide" rel="#exediv_2">Division 2</a><br />
<div id="exediv_2">
Fill This Space With Your Second DIV Content Like Text, HTML Code, JavaScript Code, Video, Pic And Anything You Want To Show Here.
</div>

Customization:

1.) Change The Orange Text With Your DIV CSS.
2.) Change The Purple Value To Same To Change The Timing Of  DIV Opening.
3.) Change The Red Text With Your DIV Titles.
4.) Change The Blue Text Your DIV Content Like Text, HTML Code, JavaScript Code, Video, Pic And Anything You Want To Show Here.
5.) If You Want To Add More DIV, Please Feel Free To Ask.

Recommended For You:
Unblockable CSS POPUP With Lightbox Effect Without JQuery

You Like It, Please Share This Recipe With Your Friends Using...

2 Responses to “Stylish Open DIV On Click Widget For Blog And Website”

  1. googma says:

    Thank you for sharing your nice ideas. it will really helpful to me for improvement my blogs.

Leave a Reply

Your email address will not be published. Required fields are marked *