Showing posts with label ###3. Show all posts
Showing posts with label ###3. Show all posts

Monday, April 8, 2013

Add Awesome CSS,PHP Slider To Blogger

Add Awesome CSS,PHP Slider To Blogger

One of the blog masters resources sites mybloggertricks (proudly hosted at blogger) run colossal html, css, php campaigns on blogsphere within a couple of years. They got many greetings, people satisfactions, huge fans and followers on blogger, twitter, and facebook. And yet their achievement is sustaining, keeping great pace with the respective competitors on global web. "Muhammad" started with photoshop since 2008, jumped at blogging at 2009 and created a beautiful php template for serving his readers and fan followers including services like html, css, php, blogger resources, social media tips and tricks, tech news, and many more. On his services template he placed a stunning slider which he never shared with his fans or readers or even on his blog. But today i'd share this fascinating tutorial with you all. Read below details.
Live Demo

Install Stunning Slider To Blogger

1.First of all go to blogger and log-in your account
2. Now go to layout section and pick HTML/JavaScript
3. Now paste the following code inside the box and save it after necessary customization
 <style>
.slider-btn { width: 195px; height: 39px; background: url(http://services.mybloggertricks.com/css/images/slider-btn.png) no-repeat 0 0; display: block; color: #4a5461; font-size: 17px; line-height: 39px; text-shadow: 1px 1px 1px #ccc; text-align: center; font-weight: bold; }
.slider-btn:hover { background: url(http://services.mybloggertricks.com/css/images/slider-btn-hover.png) no-repeat 0 0; text-decoration: none; color: #fff; text-shadow: 1px 1px 1px #4a5461; }
.slider1 { position: relative; z-index: 5; }
.slider1 .shell {  position: relative;  }
.slider1 .slider-wrapper { position: absolute; top: -233px; left: 0;  }
.slider1 .slider-holder { float: left; display: inline;  width: 520px; height: 276px; background: url(http://services.mybloggertricks.com/css/images/home1-slider.png) no-repeat 0 0; position: relative; margin-left: 14px;   }
.slider1 .slider-holder .content { width: 469px; height: 242px; position: relative; overflow: hidden; margin: 14px 0 0 26px; }
.slider1 .slider-holder .content ul { list-style: none outside none; position: relative; overflow: hidden; }
.slider1 .slider-holder .content ul li { width: 469px; height: 242px; position: relative; overflow: hidden; }
.slider1 .slider-holder .content .jcarousel-clip { width: 469px; height: 242px; position: relative; overflow: hidden; }
.slider1 .slider-holder .carousel-prev,
.slider1 .slider-holder .carousel-next { position: absolute; top: 114px; width: 52px; height: 53px; display: block; font-size: 0; line-height: 0; text-indent: -4000px; }
.slider1 .slider-holder .carousel-prev { background: url(http://services.mybloggertricks.com/css/images/carousel1-prev.png) no-repeat 0 0; left: -13px;}
.slider1 .slider-holder .carousel-next { background: url(http://services.mybloggertricks.com/css/images/carousel1-next.png) no-repeat 0 0; right: -13px;}
.slider1 .slider-sidebar { float: left; display: inline;  width: 350px; margin: 7px 0 0 75px; }
.slider1 .slider-sidebar h2 { font-size: 35px; font-weight: bold; color: #fff; text-transform: none; text-shadow: 1px 1px 1px #459126; margin-bottom: 16px; }
.slider1 .slider-sidebar p { font-size: 14px; line-height: 20px; color: #fff; }
.slider1 .slider-sidebar .slider-btn { margin-top: 28px; }
.slider1 .slider-nav { position: absolute; bottom: -21px; left: 208px; }
.slider1 .slider-nav ul { list-style: none outside none; }
.slider1 .slider-nav ul li { float: left; display: inline; width: 15px; height: 15px; margin-right: 6px;  }
.slider1 .slider-nav ul li a { float: left; display: inline; width: 15px; height: 15px; font-size: 0; line-height: 0; text-indent: -4000px; background: url(http://services.mybloggertricks.com/css/images/slider1-pagination.gif) no-repeat 0 0; }
.slider1 .slider-nav ul li a:hover,
.slider1 .slider-nav ul li a.active { background-position: right 0; }

.slider2 {  }
.slider2 .shell { position: relative; }
.slider2 .slider-holder { width: 994px; height: 394px; position: absolute; top: -235px; left: -10px; background: url(http://services.mybloggertricks.com/css/images/slider2-holder.png) no-repeat 0 0; }
.slider2 .slider-holder .content { width: 960px; height: 367px; margin: 10px 0 0 17px; position: relative; overflow: hidden; }
.slider2 .slider-holder .content ul { list-style: none outside none; position: relative; overflow: hidden; }
.slider2 .slider-holder .content ul li { width: 960px; height: 367px; position: relative; }
.slider2 .slider-holder .content .jcarousel-clip,
.slider2 .slider-holder .content .jcarousel-container { width: 960px; height: 367px; position: relative; overflow: hidden;  }
.slider2 .slider-holder .content ul li .image-holder { width: 450px; float: left; display: inline; }
.slider2 .slider-holder .content ul li .image-holder img { display: block; margin: 30px 0 0 25px; }
.slider2 .slider-holder .content ul li .text-holder { width: 350px; float: left; display: inline; margin: 55px 0 0 35px;}
.slider2 .slider-holder .content ul li .text-holder h2 { font-size: 35px; font-weight: bold; color: #fff; text-transform: none; text-shadow: 1px 1px 1px #459126; margin-bottom: 16px; }
.slider2 .slider-holder .content ul li .text-holder p { font-size: 14px; line-height: 20px; color: #fff; margin-bottom: 15px; }
.slider2 .slider-holder .content ul li .text-holder ul li { background: url(http://services.mybloggertricks.com/css/images/slider-custom-bullet.png) no-repeat 0 5px; padding-left: 20px; font-size: 14px; color: #fff; width: auto; height: auto; margin-bottom: 3px; }
.slider2 .slider-holder .content ul li .text-holder .slider-btn { margin: 25px 0 0 15px; }
.slider2 .slider-holder .slider-bar { height: 50px; background: url(http://services.mybloggertricks.com/css/images/slider2-bar-bg.png) repeat 0 0; position: absolute; bottom: 18px; left: 19px; width: 957px; z-index: 10; }
.slider2 .slider-holder .slider-bar .content { width: 780px; height: 50px;  margin: 0 0 0 20px; }
.slider2 .slider-holder .slider-bar .content .jcarousel-clip,
.slider2 .slider-holder .slider-bar .content .jcarousel-container { width: 780px; height: 50px; }
.slider2 .slider-holder .slider-bar .content ul { list-style: none outside none; position: relative; }
.slider2 .slider-holder .slider-bar .content ul li { width: 780px; height: 50px;position: relative; color: #fff; font-size: 15px; line-height: 50px; }
.slider2 .slider-holder .slider-bar .content ul li a { font-weight: bold; color: #fdbb38; font-size: 15px; }
.slider2 .slider-holder .slider-bar .content ul li a:hover {  color: #fff; text-decoration: none; }
.slider2 .slider-holder .slider-bar .carousel-down,
.slider2 .slider-holder .slider-bar .carousel-up { position: absolute; top: 2px; display: block; width: 41px; height: 44px; font-size: 0; line-height: 0; text-indent: -4000px; }
.slider2 .slider-holder .slider-bar .carousel-down { background: url(http://services.mybloggertricks.com/css/images/carousel-down.png) no-repeat 0 0; right: 63px;}
.slider2 .slider-holder .slider-bar .carousel-up { background: url(http://services.mybloggertricks.com/css/images/carousel-up.png) no-repeat 0 0; right: 18px; }

</style>

<script src="http://services.mybloggertricks.com/js/jquery-1.4.2.js" type="text/javascript" charset="utf-8"></script>
    <script src="http://services.mybloggertricks.com/js/easySlider1.5.js" type="text/javascript" charset="utf-8"></script>
    <script src="http://services.mybloggertricks.com/js/jquery.jcarousel.js" type="text/javascript" charset="utf-8"></script>
    <script src="http://services.mybloggertricks.com/js/js-func.js" type="text/javascript" charset="utf-8"></script>

<!-- slider 1 -->
<div class="slider1">
    <div class="shell">

            <!-- slider holder -->
            <div class="slider-holder">
                <div class="content">
                    <ul>
                        <li><img src="Image One Url" alt="" /></li>
                        <li><img src="Image Two Url" alt="" /></li>
                        <li><img src="Image Three Url" alt="" /></li>
                        <li><img src="Image Four Url" alt="" /></li>
                        <li><img src="Image Five Url" alt="" /></li>
                        <li><img src="Image Six Url" alt="" /></li>
                        <li><img src="Image Seven Url" alt="" /></li>
                    </ul>
                </div>
                <a href="#" class="carousel-prev">prev</a>
                <a href="#" class="carousel-next">next</a>
                <div class="slider-nav">
                    <ul>
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a href="#">6</a></li>
                        <li><a href="#">7</a></li>
                    </ul>
                </div>
            </div>
            <!-- end slider holder -->
          
            <div class="cl">&nbsp;</div>
        </div>
    </div>

<!-- end slider 1 -->
4. Make sure to place this box above the post section

Customization Guidance

1. Change image url by changine image-1 url image-2 url image-3 url image-4 url image-5 url
2. Your image height and width must be 242px*469px
3. Whenever you add an image at the same time you have to add a link by <li><a href="#">7</a></li>
4. You may notice that there are up to 7 links for 7 images

Get Free Blogger HTML Editor Tool

How To Install HTML Editor on Blogger Blog?

Hei! guys listen to me very carefully, this tool is not any kind free available tool, but a Premium "HTML Editor Tool" which i'm delivering you all for free. If you want to get this tool now and show it by your post on your blog, then you must at-least give a credit to us. We don't take any money for this tool but one thing is you just subscribe our regular email updates by clicking here and help us to serve you always update with the latest blogging tips and tricks of wbt.

Installation Procedure Here

1. First of all go to blogger and log-in your account
2. Now click on new post button and write your targeted heading first
3. Now click on "HTML" button after "Compose" and paste the following code inside the post editor targeted field
<style>
.maintable
{
width:100%;
background-color:#e5eecc;
color:#000000;
border:solid #c3c3c3 1px;
margin-left:0px;
}
.maintable td
{
padding-left:5px;
padding-right:5px;
}
.code_input, .result_output
{
border:1px solid #c3c3c3;
width:100%;
height:400px;
background-color:#ffffff;
color:#000000;
}
.toptext
{
color:#617f10;
font-family:verdana;
margin-top:0px;
margin-bottom:8px;
font-size:120%;
}
.result_header
{
color:#617f10;
margin-top:0px;
font-family:verdana;
font-size:90%;
}
.bottomtext_div
{
margin-right:3px;
}
.bottomtext
{
color:#617f10;
font-family:verdana;
margin-bottom:0px;
margin-top:6px;
font-size:90%;
}
.toprect_txt a:link,.toprect_txt a:visited {text-decoration:none;color:#900B09;background-color:transparent}
.toprect_txt a:hover,.toprect_txt a:active {text-decoration:underline;color:#FF0000;background-color:transparent}
div.toprect_txt
{
font-family:verdana,helvetica,arial,sans-serif;
position:absolute;
left:0px;top:0px;
width:225px;height:84px;
padding:0px;margin:0px;padding-top:4px;
border:1px solid #c3c3c3;
color:#606060;
text-align:center;
font-size:12px;
}
div.toprect_img
{
font-family:verdana,helvetica,arial,sans-serif;
position:absolute;
left:0px;top:0px;
width:227px;height:90px;
margin:0px;padding:0px;
color:#606060;
text-align:center;
font-size:12px;
}
 #send{
font-family: Calibri,  Verdana, Helvetica, sans-serif;
 background: #6f9ff1;
 color: #fff;
 font-weight:bold;
 font-size: 14px;
 border: 0;
 cursor: pointer;
height:30px;
 width:80px;
 border-radius:4px;
 box-shadow: 5px 5px 5px #CCCCCC;
 border:1px solid #79a7f1;
}
input.send{
font-family: Calibri,  Verdana, Helvetica, sans-serif;
 background: #6f9ff1;
 color: #fff;
 font-weight:bold;
 font-size: 14px;
 border: 0;
 cursor: pointer;
height:30px;
 width:80px;
 border-radius:4px;
 box-shadow: 5px 5px 5px #CCCCCC;
 border:1px solid #79a7f1;
}
</style>
<form style="margin:0px" action="http://www.w3schools.com/html/tryit_view.asp" method="post" target="view" id="tryitform" name="tryitform" onsubmit="validateForm();">
<table border="0" class="maintable">
<tr>
<td width="50%">
<input class="send" type="button" value="Submit &raquo;" onclick="submitTryit()">
<button id="send"onclick="window.document.tryitform.code.value='';preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">
Clear </button>
<div style="clear:both;"></div>
</td>
</tr>
<tr>
<td valign="top">
<textarea class="code_input" width="100%" height="400px" id="pre_code" wrap="logical">
<!DOCTYPE html>
<html>
<body>
The content of the body element is displayed in your browser.
</body>
</html>
</textarea>
<input type="hidden" name="code" id="code" />
<input type="hidden" id="bt" name="bt" />
</td>
<td valign="top">
<iframe id="viewIFRAME" class="result_output" width="100%" height="400px" frameborder="0" name="view" src="http://www.w3schools.com/html/tryit_view.asp?filename=tryhtml_basic"></iframe>
<script>
function resizeHeight(elmnt)
{
if (window)
    {
    var x=window.innerHeight
    if (x)
        {
        var y=(x-205);
        if (y>400)
            {
            document.getElementById("pre_code").style.height=y + "px";
            document.getElementById("viewIFRAME").style.height=y + "px";
            }
        }
    }
}
resizeHeight()
window.onresize=function(){resizeHeight()}
</script>
</td>
</tr>
<tr>
</tr>
</table>
    </form>
<script type="text/javascript">
function submitTryit()
{
var t=document.getElementById("pre_code").value;
t=t.replace(/=/gi,"w3equalsign");
var pos=t.search(/script/i)
while (pos>0)
    {
    t=t.substring(0,pos) + "w3" + t.substr(pos,3) + "w3" + t.substr(pos+3,3) + "tag" + t.substr(pos+6);
    pos=t.search(/script/i);
    }
  document.getElementById("code").value=t;
document.getElementById("tryitform").action="http://www.w3schools.com/html/tryit_view.asp?x=" + Math.random();
validateForm();
document.getElementById("tryitform").submit();
}
function validateForm()
{
var code=document.getElementById("code").value;
if (code.length>5000)
    {
    document.getElementById("code").value="<h1>Error</h1>";
    }
}
submitTryit()
</script>
5. Now publish it and you're done successfully

Need Support?

This tool has an automatic configuration to fill its exact width according to the post's width. It will expand up-to 100% in width inside your post area and you don't need to customize its height and width manually. But if you face any trouble immediately inform us through our contact form or posting your comment throug comment form. Peace out...

Error Occurred?

I wish this tool works for you as it works for me, in spite of that having slow internet connection it might not response frequently or some of the functions might not execute accordingly. So in this case you need a kind editor which can function through slow connection. You can try out another HTML Editor, source code generated by MBT and developed by WBT. See below
<style>
 #send{
font-family: Calibri,  Verdana, Helvetica, sans-serif;
 background: #6f9ff1;
 color: #fff;
 font-weight:bold;
 font-size: 14px;
 border: 0;
 cursor: pointer;
height:30px;
 width:80px;
 border-radius:4px;
 box-shadow: 5px 5px 5px #CCCCCC;
 border:1px solid #79a7f1;
}
.textbox{
 background:#fff;
 border:1px solid #3697F7;
 border-radius:4px;
 -moz-border-radius:4px;
 -webkit-border-radius:4px;
 padding:4px;
 font:normal 15px verdana, arial;
 color:#FBB468;
 margin:0px;
 height:25px
}
</style>
<table style="padding: 2px; width: 850px;">

<tbody>
<tr><td valign="top"><form method="post" name="form1">
<textarea name="code" onclick="focus(this.code)" style="border: solid 1px #cccccc;  -moz-border-radius:10px;
-webkit-border-radius:10px;border-radius:10px; box-shadow: #CCC 0px 1px 3px;color: #0080ff; font-family: arial, verdana, Tahoma; font-size: 12px; font-weight: bold; height: 400px; margin: 0px; padding: 5px; scroll: auto; width: 410px;">
<style>

Add CSS Code Here

</style>

Add HTML Code Here</textarea>
</form>
</td><td valign="top"><iframe frameborder="0" name="preview" src="about:blank" style="background: #ffffff; border: solid 1px #cccccc;  -moz-border-radius:10px;
-webkit-border-radius:10px;border-radius:10px; box-shadow: #CCC 0px 1px 3px; height: 400px; padding: 5px; width: 450px;">
</iframe>
</td>
</tr>
</tbody></table>
<br />
<button id="send" onclick="preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">
 Preview</button>
<button id="send" onclick="window.document.form1.code.value='';preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">
Clear </button>

Sunday, April 7, 2013

Create A Sliding Side Menu

Create A Sliding Side Menu

I think better than words these images will explain you, what this hack/widget is all about:

Sliding Side-Menu in it's normal position
 
Sliding Side-Menu expanded on mouse hover

And to see the widget in action, click on this link: Dark Wooden Template

Now if you are impressed with the widget and want to add a similar widget to your blog, then simply follow these steps:

1. Download these two javascript files from DynamicDrive:
ssm.js, and
ssmItems.js [LINK to DynamicDrive]

2. Now open the second file (ssmItems.js) with note/text pad, and edit it :
<!--

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=150; // no quotes!!
XOffset=0;
staticYOffset=30; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="black";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=150; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="verdana";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#170088";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="white"; //White color behind links
linkOverBGColor="#FFFF99"; //Blue Color Behind Menu and External Links
linkTarget="_top";
linkAlign="Left";
barBGColor="#444444"; //Gray color behind Side Menu
barFontFamily="Verdana";
barFontSize="2";
barFontColor="white";
barVAlign="center";
barWidth=20; // no quotes!!
barText="SIDE MENU"; // <IMG> tag supported. Put exact html for an image to show.

///////////////////////////

// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
ssmItems[0]=["Menu"] //create header
ssmItems[1]=["BloggerStop", "http://bloggerstop.net", ""]
ssmItems[2]=["Contact Us", "http://bloggerstop.net/2008/09/contact-us.html",""]
ssmItems[3]=["Earn Money", "http://join-ziddu.co.cc/", ""]
ssmItems[4]=["Cheap Domain", "http://main.bloggerstop.net/contests/1and1/1and1.html", "_new"]
ssmItems[5]=["Blogger Templates", "http://bloggerstop.net/2008/09/blogger-help-free-blogger-templates.html", ""]
ssmItems[6]=["Blogger Help", "http://bloggerstop.net/2008/09/blogger-help.html", ""]
ssmItems[7]=["FAQ", "http://any_FAQ_PAGE", "", 1, "no"] //create two column row
ssmItems[8]=["Email", "http://Your_Email_Add", "",1]
ssmItems[9]=["External Links", "", ""] //create header
ssmItems[10]=["JavaScript Kit", "http://www.javascriptkit.com", ""]
ssmItems[11]=["Gallery", "http://gallery.main.bloggerstop.net/image1.htm", ""]
ssmItems[12]=["Reviews", "http://review-the-web.blogspot.com", ""]

buildMenu();

//-->
Now change everything in RED, GREEN and BLUE as per your requirements.
The code shown in purple color are comments, you can change them to modify the background colors.

Now after editing, save the file.

3. Now upload these two files to MyDataNest.com (You have to register for free as a member to upload files).
4. Then copy the direct links to these files.

5. Finally change the links (in red color) in the following code with your new links from MyDataNest.com
<!--SIDE-MENU-STARTS-->
<STYLE>
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//-->
</STYLE>

<SCRIPT SRC='http://dsai.588.googlepages.com/ssm.js' language='JavaScript1.2'>

//Dynamic-FX slide in menu v6.5 (By maXimus, maximus@nsimail.com)
//Site: http://maximus.ravecore.com/
//For full source, and 100&#39;s more DHTML scripts, visit http://www.dynamicdrive.com

</SCRIPT>

<SCRIPT SRC='http://dsai.588.googlepages.com/ssmItems.js' language='JavaScript1.2'/>
<!--SIDE-MENU-STOPS-->

Go to your blog template (Log in to Blogger -> Go to Layout -> Edit HTML), and find (CTRL+F) this code:
</head>
And paste the code (obtained from step 5) just BEFORE/ABOVE it.

Credits: DynamicDrive and MaXimus
Feel free to ask your doubts...