[b]@ gembel[/b]
cobain kode yg ini.
kode kmu ga jalan krn blum d deklarasi.
[quote][b]var h;[/b]
// FRIENDS BOX
h=document.getElementById("2").getElementsByTagName("h2")[0];
h.innerHTML="<div>laft them</div>";
// PHOTO GALLERY
h=document.getElementById("1").getElementsByTagName("h2")[0];
h.innerHTML="<div>bla..bla..bla..</div>";
// MORE ABOUT ME
h=document.getElementById("6").getElementsByTagName("h2")[0];
h.innerHTML="<div>bla..bla..bla..</div>";
// TESTI & COMMENTS
h=document.getElementById("18").getElementsByTagName("h2")[0];
h.innerHTML="<div>comment dari temen-temen</div>";[/quote]
masukin d script js eksternal kmu.
[b]@ baguz[/b]
klo mu buad bground d header nya pake kode css bro.
klo masalah bground nya bisa gerak2 itu, krn bground aq buad dlm format gif.
ne kode css nya
[quote].commonbox h1, .commonbox h2 {
background-color: transparent;
background-image: url([b]URL IMAGE[/b]);
background-attachment: fixed;
background-position:left;
background-position: left top;
background-repeat: repeat;
text-align:center;
}[/quote]
buad set transparan nya jga pake kode css
<">kmu tinggal ganti [b]URL IMAGE[/b] nya
dan atur opacity nya (makin kecil, makin transparan), contoh d atas aq pake nilai marquee [b]70[/b], jdi semi transparant
klo buad bikin content more about jln, pake kode js ini
[quote]if (!attachOnLoadHandler(function() { marquee();})) window.onload = function() { marquee();};
function marquee() {
MARQUEE.init();
}
if (typeof MARQUEE == "undefined") { MARQUEE = {}; }
MARQUEE = {
content: [],
init: function() {
this.content = document.getElementById("[color=red]content_6[/color]").innerHTML;
document.getElementById("[color=red]content_6[/color]").innerHTML = "<marquee direction=\"[color=blue]up[/color]\" height=\"300\" scrollamount=\"2\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+this.content+"</marquee>";
}
};[/quote]
[color=red]MERAH =[/color] buad nentuin content mana yg mau kmu marquee.
klo mu buad marquee d photo gallery tinggal ganti jadi [b]content_1[/b], dsb
[color=blue]BIRU =[/color] buad nentuin arah gerak content nya.
klo mu d marquee k kiri tinggal ganti jdi [b]left[/b], dsb
Last edited by andHa (2007-12-30 19:48:54)