DASHBOARD HOME TUTORIAL TEMPAHAN MY DESIGN

Slide Float Shoutbox Yang Kedua

 Sebelum Tue pergi step di bawah


1. Log In > Dashboard > Design > Add A Gadget > HTML/Java Script
2. Copy Code di bawah ini dan Pastekan dalam HTML/JavaScript..



<style type="text/css">
    #gb{
    position:fixed;
    top:10px;
    z-index:+1000;
    }
    * html #gb{position:relative;}
    .gbtab{
    height:200px;
    width:210px;
    float:left;
    cursor:pointer;
    background:url('http://i.imgur.com/XDA63.png') no-repeat;}
    .gbcontent{
    float:left;
    border:0px solid #666666;
    padding:1px;
    }
    </style>
    <script type="text/javascript">
    function showHideGB(){
    var gb = document.getElementById("gb");
    var w = gb.offsetWidth;
    gb.opened ? moveGB(0, 50-w) : moveGB(10-w, 0);
    gb.opened = !gb.opened;
    }
    function moveGB(x0, xf){
    var gb = document.getElementById("gb");
    var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
    var dir = xf>x0 ? 1 : -1;
    var x = x0 + dx * dir;
    gb.style.right = x.toString() + "px";
    if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
    }
    </script>
    <div id="gb">
    <div class="gbtab" onclick="showHideGB()"> </div>
    <div class="gbcontent">
    <center>
    <div id="custombg" style="width:260px; height:380px; background:url(URL background Shoutbox) repeat; padding-top:0px; padding-left:0px; position:relative" align="center">

<div style="border: 4px groove #ff0090;"><iframe src="http://s1.fibox.ws/chat.php?1487" width="250px" scrolling="auto" height="400px" frameborder="0"></iframe></div>
   
    <div style="text-align:right">

    <a href="javascript:showHideGB()">
    [close]
    </a>
    </div>
    </div>
    </center></div></div>
    <script type="text/javascript">
    var gb = document.getElementById("gb");
    gb.style.right = (50-gb.offsetWidth).toString() + "px";
    </script>
TERIMA KASIH SUDI BACA DAN KOMEN

No comments: