8. Under it you will see a code like this <p><data:post.body/></p>
9. Put the code below under it.
<b:else/> <style>#fullpost {display:none;}</style> <p><data:post.body/></p> <span id=showlink> <p><a expr:onclick="javascript:showFull("post-" + data:post.id + "");" href=javascript:void(0);>[+/-] Show Full Post...</a></p> </span> <span id=hidelink style=display:none> <p><a expr:onclick="javascript:hideFull("post-" + data:post.id + "");" href=javascript:void(0);>[+/-]Hide Full Post...</a></p> </span> <script type=text/javascript>checkFull("post-" + "<data:post.id/>")</script> </b:if>10. So, the full code will like this :
13. On the bottom page you will see a box beside text "Post Template". Copy the code below and paste in to the box
<span id="fullpost">
</span>
14. Save your setting.
15 If you want to post an articel place your part articel above this code <span id="fullpost">. Then the remain or full post put between this code <span id="fullpost"> and this </span>
One of the space efficient widget for blogs, is of course a multi-tabbed widget, which is almost a must for any blog. You can use it for Popular posts, Top commenters, Recent Posts, Recent Posts or any widget as you like.
Although you can find some other methods on Internet, but they are all quite confusing, so you can use this method, which is quite easy, but of course needs to tweak the template.
The complete process has mainly two steps:
UPDATE: I updated some of my posts, this post I update Add Multi Tabbed Navigation Widget To Blogger / Blogspot Blogs Sidebar........
STEP 1
Log in to Blogger. Now go to Layout and then click on "Edit HTML" tab. Then download the present template as a backup. Now find [CTRL+F] this code:
</head>
Then immediately ABOVE / BEFORE it, paste this code:
<!--NEW-MUTITABBED-STARTS--><link href=http://dsai.588.googlepages.com/tabcontent.css rel=stylesheet type=text/css/> <script src=http://dsai.588.googlepages.com/tabcontent.js type=text/javascript> /*********************************************** * Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Via http://BloggerStop.Net * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ </script><!--NEW-MUTITABBED-STOPS-->
Now clickSave Template, and
Click on "Page Elements" tab.
Then click on "Add a Gadget", and select it as "HTML/JavaScript" type.
In the new widget, paste any of the 3 codes displayed below (the screen-shots are displayed above the codes, and demo link has already been given above ):
var countries=new ddtabcontent("countrytabs") countries.setpersist(true) countries.setselectedClassTarget("link") //"link" or "linkparent" countries.init()
</script>
<p><a href="javascript:countries.cycleit(prev)" style="margin-right: 25px; text-decoration:none">Back</a> <a href="javascript: countries.expandit(3)">Click here to select last tab</a> <a href="javascript:countries.cycleit(next)" style="margin-left: 25px; text-decoration:none">Forward</a></p>
Code Here:
<h3>Demo #2- Different Tab Style, expanding of arbitrary DIVs on the page enabled</h3>
var myflowers=new ddtabcontent("flowertabs") myflowers.setpersist(true) myflowers.setselectedClassTarget("link") //"link" or "linkparent" myflowers.init()
</script>
<p><b><a href="javascript: myflowers.expandit(2)">Click here to select 3rd tab</a></b></p> <p><b><a href="current.htm?flowertabs=1">Reload page and select 2nd tab using URL parameter</a></b></p>
With Auto-scrolling tabs...
Code Here:
<h3>Demo #3- Different Tab Style, "slideshow mode" enabled</h3>
//Featured Content Glider: By http://www.dynamicdrive.com //Created: Dec 22nd, 07 //Updated (Jan 29th, 08): Added four possible slide directions: "updown", "downup", "leftright", or "rightleft" //Updated (Feb 1st, 08): Changed glide behavior to reverse direction when previous button is clicked //Updated (Feb 12th, 08): Added ability to retrieve gliding contents from an external file using Ajax ("remotecontent" variable added to configuration)
var featuredcontentglider={ csszindex: 100, ajaxloadingmsg: <b>Fetching Content. Please wait...</b>, glide:function(config, showpage, isprev){ var selected=parseInt(showpage) if (selected>=config.$contentdivs.length){ //if no content exists at this index position alert("No content exists at page "+(selected+1)+"! Loading 1st page instead.") selected=0 } var $target=config.$contentdivs.eq(selected) //Test for toggler not being initialized yet, or user clicks on the currently selected page): if (config.$togglerdiv.attr(lastselected)==null || parseInt(config.$togglerdiv.attr(lastselected))!=selected){ var $selectedlink=config.$toc.eq(selected) config.$next.attr(loadpage, (selected<config.$contentdivs.length-1)? selected+1+pg : 0+pg) config.$prev.attr(loadpage, (selected==0)? config.$contentdivs.length-1+pg : selected-1+pg) var startpoint=(isprev=="previous")? -config.startpoint : config.startpoint $target.css(config.leftortop, startpoint).css("zIndex", this.csszindex++) //hide content so its just out of view before animating it var endpoint=(config.leftortop=="left")? {left:0} : {top:0} //animate it into view $target.animate(endpoint, config.speed) config.$toc.removeClass(selected) $selectedlink.addClass(selected) config.$togglerdiv.attr(lastselected, selected+pg) } },
aligncontents:function(config){ config.$contentdivs=$("#"+config.gliderid+" ."+config.contentclass) config.$contentdivs.css(config.leftortop, config.startpoint).css({height: config.$glider.height(), visibility: visible}) //position content divs so theyre out of view: },
setuptoggler:function(config){ this.aligncontents(config) config.$togglerdiv.hide() config.$toc.each(function(index){ $(this).attr(pagenumber, index+pg) if (index > (config.$contentdivs.length-1)) $(this).css({display: none}) //hide redundant "toc" links }) var $nextandprev=$("#"+config.togglerid+" .next, #"+config.togglerid+" .prev") $nextandprev.click(function(event){ //Assign click behavior to next and prev links featuredcontentglider.glide(config, this.getAttribute(loadpage), this.getAttribute(buttontype)) event.preventDefault() //cancel default link action }) config.$toc.click(function(event){ //Assign click behavior to toc links featuredcontentglider.glide(config, this.getAttribute(pagenumber)) event.preventDefault() }) config.$togglerdiv.fadeIn(1000, function(){ featuredcontentglider.glide(config, config.selected) if (config.autorotate==true){ //auto rotate contents? config.stepcount=0 //set steps taken config.totalsteps=config.$contentdivs.length*config.autorotateconfig[1] //Total steps limit: num of contents x num of user specified cycles) featuredcontentglider.autorotate(config) } }) config.$togglerdiv.click(function(){ featuredcontentglider.cancelautorotate(config.togglerid) }) },
autorotate:function(config){ var rotatespeed=config.speed+config.autorotateconfig[0] window[config.togglerid+"timer"]=setInterval(function(){ if (config.totalsteps>0 && config.stepcount>=config.totalsteps){ clearInterval(window[config.togglerid+"timer"]) } else{ config.$next.click() config.stepcount++ } }, rotatespeed) },
cancelautorotate:function(togglerid){ if (window[togglerid+"timer"]) clearInterval(window[togglerid+"timer"]) },
getCookie:function(Name){ var re=new RegExp(Name+"=[^;]+", "i") //construct RE to search for target name/value pair if (document.cookie.match(re)) //if cookie found return document.cookie.match(re)[0].split("=")[1] //return its value return null },
init:function(config){ $(document).ready(function(){ config.$glider=$("#"+config.gliderid) config.$togglerdiv=$("#"+config.togglerid) config.$toc=config.$togglerdiv.children(.toc) config.$next=config.$togglerdiv.children(.next) config.$prev=config.$togglerdiv.children(.prev) config.$prev.attr(buttontype, previous) var selected=(config.persiststate)? featuredcontentglider.getCookie(config.gliderid) : config.selected config.selected=(isNaN(parseInt(selected))) ? config.selected : selected //test for cookie value containing null (1st page load) or "undefined" string config.leftortop=(/up/i.test(config.direction))? "top" : "left" //set which CSS property to manipulate based on "direction" config.heightorwidth=(/up/i.test(config.direction))? config.$glider.height() : config.$glider.width() //Get glider height or width based on "direction" config.startpoint=(/^(left|up)/i.test(config.direction))? -config.heightorwidth : config.heightorwidth //set initial position of contents based on "direction" if (typeof config.remotecontent!="undefined" && config.remotecontent.length>0) featuredcontentglider.getremotecontent(config) else featuredcontentglider.setuptoggler(config) $(window).bind(unload, function(){ //clean up and persist config.$togglerdiv.unbind(click) config.$toc.unbind(click) config.$next.unbind(click) config.$prev.unbind(click) if (config.persiststate) featuredcontentglider.setCookie(config.gliderid, config.$togglerdiv.attr(lastselected)) config=null
function jscroller_startScroll() { if(!jscroller_config.scroller.interval) { jscroller_config.scroller.interval=window.setInterval(jscroller_doScroll,jscroller_config.scroller.refresh); } }
function jscroller_stopScroll() { if (jscroller_config.scroller.interval) { window.clearInterval(jscroller_config.scroller.interval); jscroller_config.scroller.interval=0; } }