Friday, March 11, 2011

TUTORIAL note terapung kat tepi blog

Assalamualaikum wbt 

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 :

http://3.bp.blogspot.com/-NGprHu6Xf2U/TXnF8904xuI/AAAAAAAAAcg/auES5mqC_2I/s1600/close%2Blagi.png

http://3.bp.blogspot.com/-2lKuh5pGXdY/TXnF88qASXI/AAAAAAAAAco/hN5g_129t3w/s1600/close.png

http://3.bp.blogspot.com/-z88-jE6aYow/TXnF9OzvWII/AAAAAAAAAcw/RJMR9UvHVvc/s1600/tutup%2Blagi.png

http://2.bp.blogspot.com/-wWaySdAJXzo/TXnF9ZD9daI/AAAAAAAAAc4/pBRbGlIx5_E/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. 



Dah baca komen, malas komen, like kan ^__^

13 comments:

  1. yes!! aher ea memo dapat juak. haha

    ReplyDelete
  2. yess ! hehehe. kmk gik sukkk o. haha

    ReplyDelete
  3. ye ke? cuba lagi . kalau tak jadi jugak bitau ek ?

    ReplyDelete
  4. chioo. aahaha. cacat kmk pun. malas mek molah gikkk.. =fedap=

    ReplyDelete
  5. memo dh dpt. p lak make. hehehe.

    ReplyDelete
  6. le3n : haha. nakni nok cacat ya? bah lu fedap indah nya.

    memo ; hahha. boleh jak yaaa ^_^

    ReplyDelete
  7. 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 :(

    ReplyDelete
  8. mcm ne mk tukar colour n border ya ?

    ReplyDelete
  9. thanks for the tuto ! sukaa kaka ekinn ! :)

    ReplyDelete
  10. I think that is right bout that. Nice info and thanks. Need to get in google feed.

    generic cialis

    ReplyDelete

Komen lah kat sini :)

 
Paparan terbaik di Google Chrome. Template by Ekinn Zhareef