[quote=robin rianto]gue leh minta tolong ga
gue minta kode photo prymeri donk
[/quote]
primary buat di css or js bro robin
kl di css ini tinggal ganti yg URL_GIF_IMAGE
[spoiler]div.imgblock200 {
background:url(URL_GIF_IMAGE);
background-position: center center;
background-repeat: no-repeat;
height:128px;
width:170px;
}
div.imgblock200 img {display:none !important}[/spoiler]
kl di js ini ingin jd slide ini
[spoiler]/*PRIMARY IMAGE*/
if (typeof PRIMARYIMAGE == "undefined") { PRIMARYIMAGE = {}; }
PRIMARYIMAGE = {
HTML: [], sibling: [],
init: function() {
this.HTML = document.createElement("DIV");
this.HTML.innerHTML = "<embed src=\"http://widget-71.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"[b]cy=fr&il=1&channel=144115y880764866217&site=widget-a9.slide.com[/b]\" style=\"width:180px;height:149px\" name=\"flashticker\" align=\"middle\"></embed>";
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;
}
};[/spoiler]
masukan di bag B js mu
dan ganti yg di boldnya dgn yg ada di slid mu
kl ingin pake photo gif/jpg
pake ini, sama msh di js
[spoiler]//PRIMARY IMAGE
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]
http://i220.photobucket.com/albums/dd75/ediajah/edi-w.gif[/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;
}
};[/spoiler]
biasa ganti yg di bold
buat preview lihat fs saya