Mega Carte Du Jour Alongside Images Or Thumbnails For Blogger

Visual content holds a sure enough appeal that websites integrate images to every page, or fifty-fifty operate exclusively through photos. Now, amongst the novel AJAX navigation carte du jour widget, images tin endure added to the drop-down carte du jour equally well.

The AJAX navigation carte du jour for blogger is a widget designed specifically for the Blogger platform. It is inspired from the Mashable website long earlier it was given a makeover. Despite the plainly as well as unproblematic inspiration, the driblet downward carte du jour amongst images is a huge hit.

It plant based on the jQuery library as well as Blogger JSON Feed API. Function-wise, it plant exactly similar a normal drop-down carte du jour when JavaScript is disabled. For it to piece of employment online, a weblog must endure for world visitors, thence the Blogger JSON Feed API volition component division equally designed.

Features

Multi-Level Menu Support

The AJAX carte du jour is a multi-level drop-down carte du jour that is based on the touchstone unordered listing of HTML. When a carte du jour contains a sub-menu, it loads on the wing when a user rolls over the master copy menu. What is groovy well-nigh this is that it saves outgoing traffic, peculiarly on a website that uses a large navigation.

Cross-browser Compatibility

Most AJAX applications volition piece of employment across dissimilar browsers fifty-fifty amongst other plugins or proprietary technology scientific discipline already installed.  The carte du jour amongst images plant inwards the same premise, instead of beingness designed for a specific browser. Because in that location is no telling which browser yous or your weblog readers would use, the novel AJAX drop-down mega carte du jour amongst images is the ideal option.

Some of the Windows browser supported includes IE5+, Firefox, Google Chrome, Safari Netscape 7+ as well as Opera 8+. When you're using a Mac, the AJAX carte du jour is supported on Firefox, IE as well as Safari. If JavaScript is disabled, however, the carte du jour is silent accessible, but only equally pure CSS menu.

Automatic Sub-Menu Display

With the novel AJAX menu, yous only require to scroll over a carte du jour detail as well as sub-menus volition automatically load. No require to click on a carte du jour to larn the sub-menu to driblet down. This non only saves users' valuable navigation time, but also outgoing traffic.

Menu Styling

AJAX menus tin endure styled past times exactly changing the megamenu.js as well as the CSS style. The one-time is used when javaScript is turned on, piece the latter is when it is turned off. You tin conform the carte du jour parameters manually or yous tin usage ready-to-use templates.

There are enough of other features, but yous would non endure able to usage or sense them if yous practise non install the novel mega carte du jour amongst images. What practise yous require to practise thence to implement it inwards your weblog or website?


Adding Mega Menu amongst Images/Thumbnails inwards Blogger

Step 1. Log inwards to your Blogger account, thence larn to the Dashboard. Select the weblog where yous desire to install the novel mega menu.

CSS

Step 2. Click on Template, thence press the Edit HTML button. Press anywhere within the code expanse as well as usage the CTRL + F component division to brand your search quicker as well as easier. Type the next tag as well as hitting Enter to uncovering it:
]]></b:skin>
Once yous uncovering the tag, add together the code below exactly above/before it:
.megamenu *{margin:0;padding:0;font-family:'PT Sans Narrow'}ul.megamenu{list-style:none;line-height:1;overflow:visible !important}ul.megamenu:after{margin:0;padding:0;content:' ';display:block;height:0px;clear:both}ul.megamenu li{float:left;display:inline;position:relative;text-transform:uppercase}ul.megamenu li a.menu-target:after{content:"";width:0;height:0;border-left:3px enterprise transparent;border-right:3px enterprise transparent;border-top:3px enterprise #fff;font-size:0;line-height:0;bottom:22px;right:5px;position:absolute}ul.megamenu li a{display:block;line-height:50px;padding:0px 20px;text-decoration:none;border-left:1px enterprise #000;box-shadow:1px 0 0 0 rgba(255, 255, 255, 0.1) inset;color:#d9d9d9;font-size:14px;transition:all 0.3s ease-in-out}ul.megamenu li a:hover{background:#111111;color:#fff}ul.megamenu ul{position:absolute;display:none;top:100%}ul.megamenu li:hover > ul{display:block}ul.megamenu ul li{z-index:72;min-width:149px;float:none;background:#000;text-shadow:none}ul.megamenu ul li a{text-transform:none;font-weight:normal}ul.megamenu ul li a:hover,ul.megamenuid ul li a.hover{background:#E0E0E0;color:#444}ul.megamenu ul ul{display:none;left:100%;top:0}ul.megamenuid li div.megasubmenu{background:#F9F9F9;position:absolute;width:830px;z-index:90;left:0;top:100%;overflow:hidden;min-height:150px;-moz-transform:translate(0,30px);-webkit-transform:translate(0,30px);-o-transform:translate(0,30px);transform:translate(0,30px);transform-origin:50% 0;visibility:hidden;opacity:0;color:#888;box-shadow:0 10px 7px -7px rgba(0,0,0,0.1);transition:all 0.3s ease-in-out}ul.megamenuid li:hover div.megasubmenu{visibility:visible;opacity:1;-moz-transform:translate(0,0);-webkit-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}ul.megamenuid ul,ul.megamenuid ul li{display:block !important;border:0 none !important;margin:0 !important;padding:0 !important}ul.megamenuid ul li{background:none !important;float:left !important}ul.megamenuid ul.leftmenulist{position:absolute;width:18%;left:0;top:0;bottom:0;background:#EEEEEE;border-right:1px dashed #e5e5e5 !important}ul.megamenuid ul.leftmenulist a{border-left:none !important;color:#555}ul.megamenuid ul.rightmenulist{position:relative;display:block;width:81%;float:right;margin:0px 0px 0px !important;background:none}ul.megamenuid ul.rightmenulist li{display:block;overflow:hidden;position:relative;min-height:210px;padding:5px 17px 5px 0px !important}ul.megamenuid ul.rightmenulist li .thumb-container{left:0;width:100%;height:100%;position:absolute;overflow:hidden;font-size:0;line-height:0}ul.megamenuid ul.rightmenulist li .thumb-container img{position:relative;top:10px;padding:0;width:100%;height:100%;display:block}ul.megamenuid ul.rightmenulist li a{display:block;border-left:none !important;padding:0px 5px !important;line-height:1.4;color:#777;font-weight:bold;font-size:14px}ul.megamenuid ul.rightmenulist li a:hover{color:#000;background:transparent}ul.megamenuid .loading-icon{background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJx1KCGIRJAKIJHrYAlUJPwWI1SI4xY_HwJbMnu6KCADvxtIVPheAU4PsYcDHc_nm5C1EsYyk3JJbmOJjLcGDOy_V5z4S3yupOCHOtQoIKN1SSUm6cqnW9FkJqezm4Jk5a4Pl1alQvt6Y/s1600/wait.gif') no-repeat scroll 0 0 transparent;width:22px;height:22px;position:absolute;top:50%;margin-top:-11px;right:5px}ul.megamenuid .menu-icon{border-bottom:4px enterprise transparent;border-top:4px enterprise transparent;border-left:4px enterprise #777;display:block;height:0;margin-top:-4px;position:absolute;right:11px;top:50%;width:0}#megamenuid{background:rgba(0, 0, 0, 0) -moz-linear-gradient(center overstep , #3d3d3d, #212121) repeat scroll 0 0;background:-webkit-linear-gradient(top,#3d3d3d,#212121);background-color:#3d3d3d;box-shadow:1px 1px 0 0 rgba(255, 255, 255, 0.1) inset;height:50px;width:100%;position:relative;max-width:1000px;margin:0 auto;padding:0px}#megamenuid h5{font-size:16px;margin-top:70px;text-align:center}#megamenuid h5:before{content:"";position:absolute;top:50px;left:50%;width:5px;height:2px;margin-left:-4px;border-left:2px enterprise black;border-right:2px enterprise black}#megamenuid h5:after{content:"";position:absolute;top:55px;left:50%;width:10px;height:5px;margin-left:-7px;border-top:2px enterprise black;border-left:2px enterprise black;border-right:2px enterprise black;border-radius:8px 8px 0px 0px}li.search-box{float:right !important;line-height:35px;margin:7px 10px 0 0}li.search-box .search-field{border:none;padding:3px;background:#3F3F3F;color:#fff;width:135px;font-size:13px}li.search-box .search-field:focus{border:none;outline:none;background:#4C4C4C;color:#fff}li.search-box .search-button{background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6jLAmK26DyCXWBH5pk78KxNYmQUaGf71vYfmnVMte6bzzKzVPoa_Ic9yb3MV3N-A2i7Gjt9NCN73QS3Ndq2KpQLuvpQnJESu2DmtMySTgEOg5U3hy8w8yPYHBRdsF5mdJpc-0MzXYi2w/s1600/search.png') no-repeat;border:none;cursor:pointer;padding:5px 10px;transition:all 0.3s ease-in-out}li.search-box .search-button:hover{opacity:0.9}.search-alert{background:#E84C3D url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM97GtUObarYrwTTI_WLB1dt2X9ZQLheTt-MsQdNOgQgJFJquEckAOdNMvlPUosExotaz0mNUmljg1nP9A8OQAG_DlSnYF_LiZelyu1UdWBbL9TRj_Nd0mEP6xbHz67wVQf5GcQPpQKXQ/s1600/search-info.png) no-repeat;background-position:5px;text-transform:capitalize;color:#fff;margin:-5px;padding:0px 15px 0px 40px;display:none;border-radius:5px}

JavaScript

Step 3. Check if your weblog has the jQuery plugin already installed. If not, yous require to add together a few lines of code earlier the </head> tag (CTRL + F to uncovering it). See the code below:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
(function(e){var t=function(e,t){this.elem=e;this.settings=t;this.megaMenuHtml();this.ajaxcall=null;this.menulist=this.elem.find(".leftmenulist li a");this.menuHelper(this.elem);this.addEvents()};t.prototype={regex:{islabel:new RegExp("/search/label/","g"),issearch:new RegExp("[?&]q=","g"),labelsearch:new RegExp("(http://[^/]+)/search/label/([^/?&]+).*[?&]q=([^$&]+)(?:[^$]+)?","g"),label:new RegExp("(http://[^/]+)/search/label/([^/?&$]+)","g"),search:new RegExp("(http://[^/]+)/search/?[?&]q=(.*)","g")},addEvents:function(){var t=this;this.menulist.hover(function(){if(e(this).data("menuloaded")!=="true"){t.li=e(this);t.url=t.li.attr("href");t.container=t.li.closest("ul").siblings("ul");t.hoverOver()}},function(){t.hoverOut()})},hoverOver:function(){var t=this;this.getAJAXUrl();if(!this.ajaxUrl)return;this.ajaxcall=e.ajax({type:"GET",url:t.ajaxUrl,dataType:"jsonp",data:t.ajaxData,beforeSend:function(){t.showLoader()},success:function(e){t.hideLoader();t.addArrow();t.showPosts(e)},error:function(e){t.showError(e)}})},hoverOut:function(){this.ajaxcall.abort();this.hideLoader()},getAJAXUrl:function(){if(this.url){var e=this;this.ajaxData={alt:"json","max-results":this.settings.postsNumber};this.url.search(this.regex.islabel)!==-1&&this.url.search(this.regex.issearch)!==-1?this.ajaxUrl=this.url.replace(this.regex.labelsearch,function(t,n,r,i){e.ajaxData.q=i;return[n,"/feeds/posts/default/-/",r,"/"].join("")}):this.url.search(this.regex.islabel)!==-1&&this.url.search(this.regex.issearch)===-1?this.ajaxUrl=this.url.replace(this.regex.label,function(t,n,r){delete e.ajaxData.q;return[n,"/feeds/posts/default/-/",r,"/"].join("")}):this.url.search(this.regex.islabel)===-1&&this.url.search(this.regex.issearch)!==-1?this.ajaxUrl=this.url.replace(this.regex.search,function(t,n,r){e.ajaxData.q=r;return[n,"/feeds/posts/default"].join("")}):this.ajaxUrl=!1}else this.ajaxUrl=!1},showLoader:function(){e("<span></span>",{"class":"loading-icon"}).appendTo(this.li.closest("li"))},hideLoader:function(){this.li.closest("li").find("span.loading-icon").remove()},showPosts:function(t){var n=this,r=[],i,s,o;t.feed.openSearch$totalResults.$t>0?e.each(t.feed.entry,function(t,u){i=u.title.$t;e.each(u.link,function(e,t){t.rel==="alternate"?s=t.href:s="#"});o=u.media$thumbnail?u.media$thumbnail.url.replace(/\/s72\-c\//,"/s200-c/"):n.settings.noThumbnail;r.push('<li><span class="thumb-container"><a title="Mega Menu amongst Images or Thumbnails for Blogger" href="',s,'"><img alt="Visual content holds a sure enough appeal that websites integrate images to every page Mega Menu amongst Images or Thumbnails for Blogger" src="',o,'"/><br />',i,"</a></span></li>")}):r.push("<h5>","No posts available.","</h5>");this.container.html(r.join(""));this.menulist.removeData("menuloaded");this.li.data("menuloaded","true")},showError:function(e){if(e.statusText==="error"){this.hideLoader();this.addArrow();this.container.html("<h5>Oops... Could non fetch the weblog posts.</h5>")}},addArrow:function(){this.menulist.closest("li").find("span").remove();this.menulist.removeClass("hover-menu");this.li.addClass("hover-menu");e("<span></span>",{"class":"menu-icon"}).appendTo(this.li.closest("li"))},menuHelper:function(t){var n=this;t.find(">li").hover(function(){var t=e(this);t.find("a:first").addClass("hover-menu");var r=e(this).find("ul.leftmenulist li").height()*e(this).find("ul.leftmenulist li").length;t.find("ul.rightmenulist").css({"min-height":r+"px"});n.requestFirstAjax(t)},function(){e(this).find("a:first").removeClass("hover-menu")})},megaMenuHtml:function(){this.elem.find("ul ul").remove();this.elem.addClass("megamenuid").find(">li").find("ul:first").addClass("leftmenulist").wrap(e("<div></div>",{"class":this.settings.divClass}));e("ul.leftmenulist").after(e("<ul></ul>",{"class":"rightmenulist"}))},requestFirstAjax:function(e){e=e.find(".leftmenulist li:first-child a");this.url=e.attr("href");this.container=e.closest("ul").siblings("ul");this.li=e;this.hoverOver()}};e.fn.megaBloggerMenu=function(n){var r={postsNumber:4,divClass:"megasubmenu",postsClass:"rightmenulist",noThumbnail:"/default.png"},i=e.extend({},r,n);return this.each(function(){var n=new t(e(this),i)})}})(jQuery);
//]]>
</script>
<script type='text/javascript'>
jQuery(document).ready(function($) {
 $(&#39;#megamenuid&#39;).megaBloggerMenu({
  postsNumber : 4,
  noThumbnail : &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvkjRHTCFcWAe4RhjPAge26-mQhOS1rL9eC_iau0WkHiOtOROuHg8DTP28RzwPlqlCnfueeQtY5dZMqL4fGM7BhYI1USxrkec8YJ9rZA-Psq0JVhMELKvc1-OOaKgVK6SzLI_HFNns5PM/s1600/no_image_available.png&#39;
 });
});

$(function(){
  $(&#39;.search-here&#39;).submit(function(e){
    if($(&#39;.search-box .search-field&#39;).val().length==0){
       $(&#39;.search-box .search-alert&#39;).fadeIn().css(&#39;display&#39;,&#39;inline-block&#39;);
      e.preventDefault();
    }
  });
});
</script>

Note

- If jQuery plugin already exist, take the describe of piece of employment inwards red.
- To alter the break of posts, alter the four value from:
postsNumber : 4
- To add together a dissimilar thumbnail when a postal service has no image, supersede the url inwards bluish from:
noThumbnail : &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvkjRHTCFcWAe4RhjPAge26-mQhOS1rL9eC_iau0WkHiOtOROuHg8DTP28RzwPlqlCnfueeQtY5dZMqL4fGM7BhYI1USxrkec8YJ9rZA-Psq0JVhMELKvc1-OOaKgVK6SzLI_HFNns5PM/s1600/no_image_available.png&#39;

HTML

Step 4. Carefully add together the HTML code to ensure that the driblet downward carte du jour amongst images volition piece of employment equally designed. There are only iii types of URLs that the AJAX Menu accepts as well as they must endure used accordingly.

Label URL: http://yourblogurlblogspot.com/search/label/LABELNAME
Search Query: http://yourblogurl.blogspot.com/search?q=SEARCHQUERY
Label w/ Search Query: http://yourblogurl.blogspot.com/search/label/LABELNAME?q=SEARCHQUERY

Among the iii URLs, the Search Query has to endure URL encoded using a specific tool.

Step 5. Search the next describe of piece of employment using CTRL + F:
<div class='main-outer'>
Just higher upwardly this line, add together the next HTML code:
<ul class='megamenu' id='megamenuid'>
<li><a href='/'>Home</a></li>
<li><a class='menu-target' href='#'>MENU TITLE</a>
<ul>
<li><a href='http://ADDURLHERE.com'>LABEL NAME</a></li>
<li><a href='http://ADDURLHERE.com'>LABEL NAME</a></li>
<li><a href='http://ADDURLHERE.com'>LABEL NAME</a></li>
</ul>
</li>
<li><a class='menu-target' href='#'>MENU TITLE</a>
<ul>
<li><a href='http://ADDURLHERE.com'>LABEL NAME</a></li>
<li><a href='http://ADDURLHERE.com'>LABEL NAME</a></li>
<li><a href='http://ADDURLHERE.com'>LABEL NAME</a></li>
</ul></li>
<li><a href='http://ADDURLHERE.com'>Normal Link</a></li>
<li class='search-box'>
<form action='/search' class='search-here' method='get'>
<input class='search-field' name='q' placeholder='Search Here' size='30' type='text'/>
<input class='search-button' type='submit' value=' '/>
</form>
<p class='search-alert'>Search cast is empty!</p>
</li>
</ul>
<div class='clear'/>
<div class='clear'/>
Note: supersede the text inwards bluish amongst the label url as well as the text inwards crimson amongst the mention of the label. This is the label that yous receive got added to the Labels settings of your postal service editor:


Step 6. Click on Save template for all the changes to convey effect.

If yous can't uncovering the describe of piece of employment from pace 5, access the Layout tab, click on Add Gadget, as well as thence lead HTML/JavaScript Gadget. Copy the HTML code as well as glue it within the box... thence press the Save button.

That's it!

Once that is done, your AJAX carte du jour amongst images volition endure implemented as well as create for yous to use. Make sure enough to lead photos that are relevant to the carte du jour as well as sub-menus thence your website volition receive got cohesive expect as well as appeal. Research shows, however, that text accompanied past times whatever image, fifty-fifty if completely irrelevant, tin view attention. 

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel