aritu ekinn dah janji ngan meera nak buat tuto ni. tapi ekinn terlupa pulak. sekarang ekinn buat k.
okay.
klik kalau nak tengok lebih besar
okay, memula korang pergi dashboard >> design >> add a gadget >> choose html/javascript
lepas tue copy code ni
<style type="text/css">
#topbar{
position:absolute;
color:#000000;
border: 3px solid purple;
padding: 2px;
background-color: #FFFFFF;
width: 239px;
visibility: hidden;
z-index: 100;
}
</style><br />
<br />
<script type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="frombottom" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script><div id="topbar"><a href="" onclick="closebar(); return false"><img src="URL BUTTON CLOSE"></a>TULIS NOTA ANDA DI SINI</div>
hightlight merah = korang boleh tukar color background & border ikut suka korang
hightlight purple = url untuk button CLOSE/TUTUP
hightlight biru = tulis nota korang kat korang. samada iklan nuffnang ke. pesanan korang ke, or apa-apa korang nak taruk . ( kat sini boleh masuk code html jugak )
kat sini ekinn ada letak contoh url button tutup untuk korang guna :
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHK2EpZL43Pq-EZVrmNOnPK081m1kKt2HZqzwxK-Z-o5gNQtet4HKCbs9WdcTJVr-KGggbWwoXhWlruGDx60-PhtNGijNwM8NXTb1vgb93SQGT73Z2Q2vq9BqQ4Jj_BSbjNSXH78pLzCa1/s1600/close+lagi.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK4S7ISebWNrakb9dzHvdwUV1Ek7aH7j9jh4GoUMfwNDNWP-kK9SU4K6f9ZGB39diG1TDEYLBQuaCnsSYuYwqdlvGNl5t7SqNESL84EdVMyqy6Lx74zpetxoL3umK3Rwkiqr2EsQTTWSg0/s1600/close.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf1LI3oID2k6046_Zsom7zaF_yKswiJLod4mr_T-khFL4Dyv9WlgR14sudaoun_9nWSWHr8_qLAyQWyBM1AQABlcq-WIzcmf3gvIMDLZ-LRqfrlK7DgFLQBzR4Kvm7hgkHipJOz-bb2WXK/s1600/tutup+lagi.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZAsaFbnN-7UCUIsbnvMfy2Xa-zGUCUQcmroNEyr-fuawXJFrwXLO3IHNpDomqAF0PNwAVP2_16OMfHnXLoD96CMth4e7cHyfIJ54K-WgZkMuY9s1yWslW42TiCrzW0Z0uNWNZhD6xILp0/s1600/tutup.png
then , save kan. siap !
senang jer kan ?
btw, ekinn akan OFFLINE buat masa yang lama KOT lepas nie. sebab final exam dah dekat.
yes!! aher ea memo dapat juak. haha
ReplyDeleteyess ! hehehe. kmk gik sukkk o. haha
ReplyDeletetak jadi ponn :(
ReplyDeleteye ke? cuba lagi . kalau tak jadi jugak bitau ek ?
ReplyDeletechioo. aahaha. cacat kmk pun. malas mek molah gikkk.. =fedap=
ReplyDeletememo dh dpt. p lak make. hehehe.
ReplyDeletele3n : haha. nakni nok cacat ya? bah lu fedap indah nya.
ReplyDeletememo ; hahha. boleh jak yaaa ^_^
eh knp buat tk jd eh ? and nt blog jd besr . i mean klau scroll smpai ke bwh die jd besr. err , mcm mne nk tergkn eh . hihi :D tp meera buat mmg tk jd lh :(
ReplyDeletemcm ne mk tukar colour n border ya ?
ReplyDeletekita amik ye ^^
ReplyDeletethanks for the tuto ! sukaa kaka ekinn ! :)
ReplyDeleteI think that is right bout that. Nice info and thanks. Need to get in google feed.
ReplyDeletegeneric cialis
Tak leh pon...
ReplyDelete