Thursday, 5 December 2013

Tutorial about me yang comel

Assalamualaikum ,

Hari ni Ina nk ajar macam mana nk buat bahagian about me yg comel. :)
Korang boleh tgk contoh :

 

About Me
Hai. Nama saya Sabrina. Saya suka makan. ♥ Selamat datang ke blog saya :)
fb.com/sabrina.shekhahmadtwitter.com/_Sabrina SAinstagram.com

1) Dashboard -> Page elements -> Add a gadget -> HTML Javascript.
2) Copy kod ni, dan pastekan di HTML Javascript.

<style>
.shakeimage{
position:relative
}
</style>
<script language="JavaScript1.2">
/*
Shake image script (onMouseover)-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0
var a=1
function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector+"px"
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector+"px"
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector+"px"
}
else{
shake.style.left=parseInt(shake.style.left)-rector+"px"
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
</script>
</div>
<div style="text-align: center;">
</div>
<div style="text-align: center;">
<img class="shakeimage" src="http://4.bp.blogspot.com/-3sbWAObRI40/Uol39QaYSFI/AAAAAAAABss/ujmcenXpZEI/s1600/Recently+Updated.jpg" height="320" onclick="top.focus()" onmouseout="stoprattle(this);top.focus()" onmouseover="init(this);rattleimage()" width="212" />&nbsp;</div>
<div style="text-align: center;">
<br /></div>
<center style="text-align: center;">
<span class="Apple-style-span" style="color: whitesmoke; font-family: Impact;"><b>About Me</b></span></center>
<div style="background-image: url(http://i1196.photobucket.com/albums/aa406/tieqaonew/polkapink.png); border: 1px dotted #FFB0b0; padding: 3px;">
<center>
Hai. Nama saya Sabrina. Saya suka makan. ♥ Selamat datang ke blog saya :) </center>
</div>
<div style="text-align: center;">
<a href="http://fb.com/sabrina.shekhahmad"><img alt="fb.com/sabrina.shekhahmad" border="0" src="http://1.bp.blogspot.com/-BMYRrPpuziY/UXZo2UjrEoI/AAAAAAAAH9A/YXDNcL_7B8A/s1600/fbmiraahussin.png" /></a><a href="http://twitter.com/_SabrinaSA"><img alt="twitter.com/_Sabrina SA" border="0" src="http://3.bp.blogspot.com/-TkITd8Jgy7s/UXZo2qeAupI/AAAAAAAAH9E/irduNCkgSKk/s1600/tweetmiraahussin.png" /></a><a href="http://instagram.com/"><img alt="instagram.com" border="0" src="http://4.bp.blogspot.com/-fMNTzyvcszg/UXZo4I31LhI/AAAAAAAAH9Q/cpX4nkLeZR4/s1600/instagrammiraahussin.png" /></a></div>
Merah ; url gambar
Orange ; ketinggian gambar
Kuning ; Lebar gambar
Hijau ; Tukar dgn ayat korang
Turqoise ; url background
Biru ; boleh pilih solid, dotted atau dashed
Ungu pekat ; warna border korang . boleh tgk sini .
Ungu ; Tukar dgn ayat korang
Pink ; Tukar dgn url korang.

3) Save.

Credit ; 
Hafiz Zulkafly ,
Akak Miraa Husin, 
Adik Faqihah. 

Bye, assalamualaikum :)

4 comments:

Terima kasih sebab sudi komen dekat entri Ina :)