Tutorial Show / Hide Followers Box



Tutorial for Template Designer
1 . Design > Page Elements > Add A Gadget > Edit HTML / Javascript
2. Copy code below and paste at Edit HTML / Javascript space ;

<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:2px dashed #bdbdbd;
background:url(PHOTOS URL FOR BACKGROUND) #2ECCFA repeat;
-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;">
GOOGLE FRIEND CONNECT CODE
</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></div>
4 . Get GOOGLE FRIEND CONNECT CODE @www.google.com/friendconnect/. Change the orange bold words to any color code that you prefer for border. Get the code @html-color-codes.info and change where necessary especially the bold one. Then, Save.


Not finished yet. You need another step.


1 . Still at page elements, click again Add A Gagdet > Edit HTML / Javascript
2 . Copy code below and paste at Edit HTML / Javascript space ;
<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; bottom:260px; left:245px;'>
<a href="javascript:void(0);"onclick="showHideAT()"/><img class="expando" width="92" height="71" src="PHOTOS URL FOR FOLLOW BUTTON" alt="push" title="Follow Me"/></a>
</div>
3 . Change where necessary especially the bold one. Dark blue : follow button position . Green : Follow button size . Then, save.


Tutorial for Blogskin / Classic Template

1 . Template > Ctrl + F code </body>
2 . Copy code below and paste before / above </body> :

<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>< span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">    <div style='display:scroll; position:fixed; top:
5
px;right:
10
px;'>

    <a href="javascript:void(0);"onclick="showHideAT()"/><img class="expando" width="58" height="
20
"src="

PHOTOS URL FOR FOLLOW BUTTON

" alt="PUSH" title="Follow"/></a>
    </div>


<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:2px dashed
#F5D0A9
;

background:url( PHOTOS URL FOR BACKGROUND
) #F5D0A9 repeat;
-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 GOOGLE FRIEND CONNECT / CODE FOLLOWER
</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>
3 . Preview > Save Template.

3 comments:

I don't approve harsh comments (: