[quote=deeucul]mksudnya gmn sih bro??
file JS d ubah jadi HTML??
emank bisa?
apa JS di inject ke HTML??[/quote]
umm. gmna yh....
mslh'a, sya sndri gag tw...
mksd sya gni......
sya mw tro slide d primary pic'a.....
& sumber trtulis kyk gini..
[quote]//main pic
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 = "HTML KALIAN";
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]
& skrng sya dah pnya code slide'a
so, skrng jdi'a hrus ngpain lgi?????
mhon info'a.....