27 May 2011

Tutorial : Show / Hide kotak follower



1. Dashboard > Design > Page Element > Add Gadget > HTML/JAVASCRIPT

2. copy code nih :
  <style type='text/css'>
    a.linkopacity img {
    filter:alpha(opacity=50);
    -moz-opacity: 0.5;F
    opacity: 0.5;
    -khtml-opacity: 0.5;}
    a.linkopacity:hover img {
    filter:alpha(opacity=100);
    -moz-opacity: 1.0;
    opacity: 1.0;
    -khtml-opacity: 1.0; }
    </style>
    <div style='display:scroll; position:fixed; top:220px;left:-0px;'>
    <a href="javascript:void(0);"onclick="showHideAT()"/><img class="expando" width="120" height="150"src="url untuk button" alt="PUSH" title="Follow"/></a>
    </div>
 3. paste dalam kotak html tu .

4. url untuk button - image button korang tu
    top/left - korang boleh ubah button tu
   120/150 - saiz button korang

5. then , tekan nih : google friend



lepas dah buad semua yang dalam image ats nih , jangan lupa copy  generate code tu

6. lepas tu Add Gadget > HTML/JAVASCRIPT sekali lagi

7. copy code nih & paste dalam kotak baru html tu

<style type="text/css">
#at{
position:fixed;
right:450px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:3px solid #FE9A2E;
background:url(url background yg kolah pilih) #FE9A2E repeat-x bottom center scroll ;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideAT(){
var at = document.getElementById("at");
var w = at.offsetWidth;
at.opened ? moveAT(0, -200-w) : moveAT(20-w, 0);
at.opened = !at.opened;
}
function moveAT(x0, xf){
var at = document.getElementById("at");
var dx = Math.abs(x0-xf) > 25 ? 35 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
at.style.top = x.toString() + "px";
if(x0!=xf){setTimeout("moveAT("+x+", "+xf+")", 10);}
}
</script>
<div id="at">
<div class="attab" onclick="showHideAT()"> </div>
<div class="atcontent">
<div align="center">
<div style="background:url() no-repeat;">
CODE GENERATE FOLLOWERS GADGET
</div>
</div>
<br />
<div align="right"><a href="javascript:void(0);" onclick="showHideAT()"><a href="http://wanhazel.blogspot.com/"><div style="color: #FFFFFF;">
<span ></span></div></a></a></div>
</div></div>

<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script>

8. tulisan merah tu , letak code yang korang copy dekat follower gadget tu
    tulisan ungu tu warna .
    tulisan oren tu untuk background

9. dah puas hati , save . kalau rasa nak ubah pape edit balik .

krdit : diarykoyak-apit

9 ✿:

Δhn Hyεsu ∞ said...

akak .. macam mna mahu letak d butang follow sebelah dashboard macam akak punya ? kalau d tekan terus kotak follower ter slide ?>

Nurhafizah said...

@Princezz Trisyia Bieber dik , tengok tutorial ats nih . .

aliah amirah said...

thaks dik!!bez sume tuto adek..=)

she winter said...

url img button ? ta paham la -.-

iman kzm said...

url image button tu ape? mmg blur habes nie. :(

Nurhafizah said...

@iman kzm image button nk tekan tu la .

Fara said...

akak dh buat dan jadi tp mcm mana nak letak follower yg sedia ada dlm tu yer..sbb kosong je..huhhhuhu

Nur SyafiQah said...

Tak jadi la . Takpe la , tak kesah pun , hehe . Btw , done follow u . Jom la follow saya :)

edy Allah luv said...

akak kenapa kalau saya buat ni duna mozilla, jadi. Tapi kalau guna google chrome, tak jadi? ni memang untuk mozilla je ke ? Harap akak balas :)