[quote=yossi]nubi here.....
bagi code wat bikin slide primary photo ma code wat bikin guest book dunk,,,,,,
heleeeeeeeeeeeeeep
[/quote]
OK ini dia bro Yossi harap diperhatikan dengan seksama. Abang disini akan menampilkan 2 trick yaitu :
[b]Merubah Main Pic ke dalam Flash ataupun .gif[/b]
Buat foto slide kalian dimana saja. Coba buat di
www.slide.com OK lalu setelah itu kan kalian akan dapat scriptnya. Disarankan lebar (width) slide kalian 200px biar tidak membuat melar profile OK sedang untuk tinggi (height) itu bebas. Contoh script yg didapat begini :
[quote]<p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://widget-91.slide.com/widgets/slideticker.swf" height="200" width="200" style="width:200px;height:200px"><param name="movie" value="http://widget-91.slide.com/widgets/slideticker.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/> <param name="flashvars" value="cy=ms&il=1&channel=432345564253987217&site=widget-91.slide.com"/></object>[b]<p><a href="http://www.slide.com/pivot?cy=ms&ad=0&id=432345564253987217&map=1" target="_blank"><img src="http://widget-91.slide.com/p1/432345564253987217/ms_t024_v000_a000_f00/images/xslide1.gif" border="0" ismap="ismap" /></a> <a href="http://www.slide.com/pivot?cy=ms&ad=0&id=432345564253987217&map=2" target="_blank"><img src="http://widget-91.slide.com/p2/432345564253987217/ms_t024_v000_a000_f00/images/xslide2.gif" border="0" ismap="ismap" /></a></p></p>[/b][/quote]
Lihat script yg tebal diatas. Itu dibuang saja karena tidak diperlukan
Jadi nanti scriptmu akan menjadi :
[quote]<p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://widget-91.slide.com/widgets/slideticker.swf" height="200" width="200" style="width:200px;height:200px"><param name="movie" value="http://widget-91.slide.com/widgets/slideticker.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/> <param name="flashvars" value="cy=ms&il=1&channel=432345564253987217&site=widget-91.slide.com"/></object>[/quote]
Nah step berikutnya adalah menjadikan script HTML diatas menjadi script var JS. Caranya adalah copy paste script di atas ke dalam Notepad. Klik Edit
Replace. Nah ganti semua tanda [b]"[/b] dengan [b]\"[/b] jadi nanti scriptnya menjadi begini :
[quote]<p style=\"visibility:visible;\"><object type=\"application/x-shockwave-flash\" data=\"http://widget-91.slide.com/widgets/slideticker.swf\" height=\"200\" width=\"200\" style=\"width:200px;height:200px\"><param name=\"movie\" value=\"http://widget-91.slide.com/widgets/slideticker.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param name=\"salign\" value=\"l\" /><param name=\"wmode\" value=\"transparent\"/> <param name=\"flashvars\" value=\"cy=ms&il=1&channel=432345564253987217&site=widget-91.slide.com\"/></object>[/quote]
Selesai deh var JS nya
Lalu pakai script Main Pic Replacernya [b]Feruzz[/b]. Ini dia :
[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 = "[b]HTML KALIAN[/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]
Nah ganti deh HTML kalian dengan var JS yg tadi sudah dibuat lalu kalau kalian pakai script tracker, taruh di [b]bagian C[/b] script tracker kalian. Lihat disini OK
[url]http://theftalk.com/t15339-TUTORIAL-Kombinasi-Addbox-LINKER-10-12%29.html[/url]
Itu utk flash sedangkan untuk merubahprimary pic menjadi .gif sama saja scriptnya cuma tinggal tambahkan URL .gif dari pic kalian jadi nanti scriptnya menjadi :
[quote]//primary 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 = "<img src='[b]URL .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;
}
};[/quote]
Ganti URL .gif dengan URL pic animasi kalian. Ingat disarankan width (lebarnya) maksimal 200px OK
[b]Menambahkan File Flash ke FS (Guestbook, Slide Photo, dsb)[/b]
Buat guestbook kalian. Misalnya di
www.slide.com dan habis itu kalian akan dapat script :
[quote]<p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://widget-10.slide.com/widgets/slidemap.swf" height="262" width="350" style="width:350px;height:262px"><param name="movie" value="http://widget-10.slide.com/widgets/slidemap.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/> <param name="flashvars" value="cy=ms&il=1&channel=792633534428140560&site=widget-10.slide.com"/></object>[b]<p><a href="http://www.slide.com/pivot?cy=ms&ad=0&id=792633534428140560&map=5" target="_blank"><img src="http://widget-10.slide.com/c1/792633534428140560/ms_t002_v000_a000_f00/images/xslide11.gif" border="0" ismap="ismap" /></a> <a href="http://www.slide.com/pivot?cy=ms&ad=0&id=792633534428140560&map=6" target="_blank"><img src="http://widget-10.slide.com/c2/792633534428140560/ms_t002_v000_a000_f00/images/xslide6.gif" border="0" ismap="ismap" /></a></p></p>[/b][/quote]
OK hapus script yg tebal di atas. Step2 selanjutnya sama dengan di bagian Merubah Main Pic in Flash or .gif di atas OK. Pakai script var JS ini :
[quote]var guest = "<div align=\"center\">[b]HTML KALIAN[/b]</div>";
addBox("[b]RIGHT or LEFT[/b]","Guestbook",guest,"guestbook","[b]siblings[/b]" or [b]null[/b]);[/quote]
Lalu masukkan ke [b]bagian B[/b] dari tutorial abang disini jika kalian menggunakan tracker OK
[url]http://theftalk.com/t15339-TUTORIAL-Kombinasi-Addbox-LINKER-10-12%29.html[/url]
Semoga dapat bermanfaat
Last edited by KaNaLiTnUk (2007-12-22 10:10:03)