[b]sobat_padi : [/b]
coba pake ini
[quote]//MAIN PHOTO
if ( ! attachOnLoadHandler(function () { MainFlash();})) window.onload = function () { MainFlash();};
function MainFlash() {
FLASHOBJ.init();
}
if (typeof FLASHOBJ == "undefined") { FLASHOBJ = {}; }
FLASHOBJ = {
flash: [],
style: {
cssStyle: document.write("<style type=text/css>div.imgblock150{width:200;height:250;overflow:hidden}</style>")
},
elements: {
mainid: document.getElementById("content_0"),
maintag: "DIV",
mainclass: "imgblock200"
},
init: function() {
this.flash = this.style.cssStyle;
this.flash = "<embed src=\"[b]
http://widget-03.slide.com/widgets/slideticker.swf[/b]\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"[b]cy=fr&il=1&channel=360970202485249&site=widget-01.slide.com[/b]\" style=\"width:200px;height:250px\" name=\"flashticker\" align=\"middle\"/></embed>";
this.getElementsByClassName(this.elements.mainid,this.elements.maintag,this.elements.mainclass)[0].innerHTML = this.flash;
},
getElementsByClassName: function(oElm,sTag,sClass) {
var elm = [];
if (oElm === null)oElm = document;
if (sTag === null)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || 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 kata yg d bold dengan kode slide kamu
copas d bagian C JS kamu ye
gud luck
Last edited by __LaNgaLoNe__ (2008-06-23 05:43:05)