Tutorial |Slide Float Widget tuk Shoutbox dsb|


.assalammualaikum.
kali ne nak buat tutorial atas permintaan Cik Jiejah which beliau telah tinggalkan REQUEST kat shoutbox I.Sorry lambat,agak busy buat assignment dan berlibur bersama besties terchenta di bandaraya KK. :)

so,kita teruskan lah.Orang lama cakap "ilmu jangan disimpan sorang-sorang,berkongsi itu lebih afdal!"......

1.Dashboard - Add A Gadget - HTML/JavaScript.
2. Copy code dibawah ini :


<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:0px solid ;
background:url()  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:5px;
}
</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;">


<div id="ShoutMix" style="background:url(URL IMAGE BACKGROUND SHOUTBOX) no-repeat left top; width:480px;height:400px;padding: 100px 0px 0px;text-align: center;line-height: 0 ">

kod shoutbox korang </div>


</div>
</div>

<br />
<div align="right"><a href="javascript:void(0);" onclick="showHideAT()"><img border="0" src="http://3.bp.blogspot.com/_LhHZAifMoFE/TN6myUsdsZI/AAAAAAAAC-Q/VqSys0LrD3o/s1600/close_button.gif" alt="close" title="Close" /></a></div>
<br /><div align="right"><font size="4"><div style="color: #FF00FF;">
</div></font></div>
</div>


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

explain sikit benda yang dah dihighlight diatas oke:...
URL IMAGE BACKGROUNG SHOUTBOX.-ne tuk picture border kiranya tuk shoutbox I tue.Cuba klik shoutbox I tue supaya korang nampak sendiri :).Kalau xde,korang boleh kosongkan benda tue.
yang width & height tu pula ikut lebar&tinggi picture korang tu,bergantung juga dengan shoutbox korang,
dan kod shoutbox pula,korang tau kan kat mana nak amik?...

3.Save dulu k.
4.Buka HTML/Javascript  lagi.Copy kod dibawah dan paste :)

<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:150px; right:-0px;'>
<a href="javascript:void(0);"onclick="showHideAT()"/><img class="expando" width="100" height=100 src="URL BUTTON KLIK" alt="Klik" title="KLIK ME" /></a>

</div>

 explain sikit yer murid-murid;;
 width&height - kesesuaian saiz button korang tue.
URL BUTTON KLIK - url image tuk button korang tue supaya orang boleh klik dan terus terbuka lah shoutbox korang.

5.Save jangan lupa :)
6.PREVIEW dulu,then baru korang SAVE kat Design tue k!.baru la OK!.hehe :)

tutorial ne actually I kongsi dari encik wanhazel (ketuk kepala korang kalau tak kenal,he's one of the creative blogger I know!).kalau korang tak paam tutorial I ne,boleh tengok tutorial beliau disini.|wan's tutorial|.Kod-kod yang I bagi neyh,I ada buat penambahan sedikit,sebab nak bagi sesuai dengan jiwa blog pink I.

sampai sini je tutorial kali ini I mampu kongsi dengan korang k!.kalau nak request tutorial lagi,sila terus tanya oke.Selagi I boleh kongsi,I kongsi bersama :)
chau~.

*sambung wat assignment yang tergendala sebab takde idea,idea lari wat tutorial ini*
Tutorial |Slide Float Widget tuk Shoutbox dsb|

{ 7 comments.. read them below or add one }

iz iz 21 March, 2011
waa,cantiknya blog (^_^)
ecadwinkyasha ecadwinkyasha 21 March, 2011
@izmekaseh Iz....tuannyer blog xcantek ke?.hahaha :P
Wan_hazel Wan_hazel 23 March, 2011
taniah leh ubah kod nie..wan suka sgt2...nie mesti terer bab koding2 nie..
ecadwinkyasha ecadwinkyasha 23 March, 2011
@Wan_hazel tak ubah banyak puwn.hehe.mc dlm proses pembelajaran tukar-tukar code..hehehe :)
cik.saffa.here.with.love. cik.saffa.here.with.love. 25 April, 2011
datang tgk tuto awk... sy dah try buat tapi tak menjadi..
ecadwinkyasha ecadwinkyasha 25 April, 2011
@cik.saffa.here.with.love. apa yg tak jadi?..da ikut step by step ke?...cba gtau ye apa yg xjadi...

Terima Kasih atas komen anda.
Eca akan balas & terjah anda secepat mungkin.
*-*