[quote=andHa][b]@ zvoo[/b]
ini bro cobain d js kmu
[quote]if (!attachOnLoadHandler(function() { primaryImg();})) window.onload = function() { primaryImg();};
function primaryImg() {
PRIMARYIMAGE.init();
}
if (typeof PRIMARYIMAGE == "undefined") { PRIMARYIMAGE = {}; }
PRIMARYIMAGE = {
HTML: [], sibling: [],
init: function() {
this.HTML = document.createElement("DIV");
this.HTML.innerHTML = "<img src='[b]URL IMAGE[/b]' />";
this.sibling = this.getModuleByClassName(/imgblock200/i)[0];
this.sibling.parentNode.replaceChild(this.HTML,this.sibling);
},
getModuleByClassName: function(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
};[/quote]
ganti [b]URL IMAGE[/b]nya dgn URL IMAGE kmu dlm format [b].gif[/b][/quote]
yg di atas itu uttk yg js,,
sekarang utk yg css
[quote]div.imgblock200 {
background:url([b]url image here.gif[/b]);
background-position: center center;
background-repeat: no-repeat;
height:xxxpx;
width:xxxpx;
}
div.imgblock200 img {display:none !important}[/quote]
masukin url image yg brbentuk gif/slide
atur height dan width
sesuai yg bro pengen
utk bkin foto yg brbentuk gif
biasanya saya pake ini
www.blibs.com
smoga bs ngebantu y bro