Saturday, March 1, 2014

show up code blogspot style


Show up code blogspot style - cara membuat show up code blogspot style sangat menarik, tampilan show up code blogspot style ini juga termasuk unik. show up code blogspot style memakai sistem jquery, buat anda yang menginginkan tampilan yang untuk untuk halaman blog kesayangannya, anda dapat mencoba sistem ini untuk menampilkan suatu code pada halaman anda. Untuk melihat tampilan show up code blogspot style ini silahkan lihat demo melalui link demo dibawah ini, Silahkan klik tulisan "Click to open code" pada halaman demo dan bila anda tertarik untuk memasangnya silahkan ikuti tutorial dibawah ini, langsung saja menuju TKP.

 Pasang code script dibawah ini didalam code CSS template anda.

Code CSS here..

 .show-up-code-blogspot-style {
margin:0 auto;
width:600px;
padding:0;
font-family: Arial;
font-size: 12px;
color: #333333;
}
.show-up-code-blogspot-style p {
margin:10px auto;
height: 300px;
overflow: auto;
}
.birustyle {color:#0000FF}
.merahstyle {color:#FF0000}
.boxshare {
position: relative;
padding: 10px;
overflow: hidden;
}
.hidden-code {
width:100%;
height:35px;
position:absolute;
bottom:0;
left:0;
}
.open-code {
padding:5px;
border-top:4px double #ddd;
background:#fff;
color:#333;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEZwKTmXoqtTclrpz_BP_AsKsIKNyXAUIb1nu-2Ks4A3Uxk5gCkCShZ2XstwVegiNNlcaWh6A_aIXWQNfhA1G6oQkfXkqm3CmcyCLiZs0YeI13-FkF4GQwGePrt4zrVfRU5NV_TM_tgXDC/s1600/BCD.gif" ) no-repeat 100% 50%;
}
.open-code a {
padding-right:22px;
font-weight:bold;
text-decoration:none;
color: #FF0000;
}
.open-code a:hover {color:#000;}


Pasang code script dibawah ini tepat dibawah code <body>

 <div class="show-up-code-blogspot-style">
<div class="boxshare">
<div style="text-align: left;padding:0 10px;margin: 0;line-height: 20px;background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhveNgtNEX7k81MujQQ5hMEOh3h34V9gp3yuGRTMB62Ek4-Yat2fcyWo8H5YdLmMhheaM98T4xc-6gUE-oP83WJXJ5llH-jvRmH8fB4vmWvOexaOKA8fYPyL88HiU7YNIlem7kbCSu8sW0/s1600/bg.png);"><p>
<span class="merahstyle">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js&quot;&gt;&lt;/script&gt;</span><br>
<span class="birustyle">&lt;script type=&quot;text/javascript&quot;&gt;</span><br>
$(function(){<br>
var slideHeight = 0; <br>
var defHeight = $('.boxshare').height();<br>
if(defHeight &gt;= slideHeight){<br>
$('.boxshare').css('height' , slideHeight + 'px');<br>
$('.open-code').append('&lt;a href=&quot;#&quot;&gt;Click to Read More&lt;/a&gt;');<br>
$('.open-code a').click(function(){<br>
var curHeight = $('.boxshare').height();<br>
if(curHeight == slideHeight){<br>
$('.boxshare').animate({<br>
height: defHeight<br>
}, &quot;normal&quot;);<br>
$('.open-code a').html('Close');<br>
$('.hidden-code').fadeOut();<br>
}else{<br>
$('.boxshare').animate({<br>
height: slideHeight<br>
}, &quot;normal&quot;);<br>
$('.open-code a').html('Click to Read More');<br>
$('.hidden-code').fadeIn();<br>
}<br>
return false;<br>
}); <br>
}<br>
});<br>
<span class="birustyle">&lt;/script&gt; </span>
</p></div><div class="hidden-code"></div></div>
<div class="open-code"></div></div><br/>


Pasang code script dibawah ini di atas code </head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>

<script type="text/javascript">
$(function(){
var slideHeight = 0;
var defHeight = $('.boxshare').height();
if(defHeight >= slideHeight){
$('.boxshare').css('height' , slideHeight + 'px');
$('.open-code').append('<a href="#">Click to open code</a>');
$('.open-code a').click(function(){
var curHeight = $('.boxshare').height();
if(curHeight == slideHeight){
$('.boxshare').animate({
height: defHeight
}, "normal");
$('.open-code a').html('Click to close code');
$('.hidden-code').fadeOut();
}else{
$('.boxshare').animate({
height: slideHeight
}, "normal");
$('.open-code a').html('Click to open code');
$('.hidden-code').fadeIn();
}
return false;
});
}
});
</script>


Bagikan ke :

Facebook Google+ Twitter Digg Technorati Reddit
0 Comments
Tweets
Komentar

0 comments:

Post a Comment