Pages: 12

  2008-03-15 04:08:58

dr4cul453xy
» FTalker
FTalk Level: zero
121
0
1969-12-31

Tutorial ini untuk ngecek apa Flash/shockwave Plugins udah terinstal apa belum di browser yang digunakan oleh viewer Profile kita bila mereka nge-view profile kita.. [b]tutor ini dibuat untuk menduku

Tutorial ini untuk ngecek apa Flash/shockwave Plugins udah terinstal apa belum di browser yang digunakan oleh viewer Profile kita bila mereka nge-view profile kita.. [b]tutor ini dibuat untuk mendukung tutor2 dibawah ini :[/b] 1. [url=http://theftalk.com/t21808-%7BTUTORIAL%7D-Flash-Profile-Non-Overlay-%28CSS%29.html]Flash-Profile-Non-Overlay[/url] By Bro Beenkilled 2. [url=http://theftalk.com/t3731-%7BTUTORIAL%7D-Make-Flash-Player.html]{TUTORIAL} How 2 Make Flash MP3 Player[/url] By bang kanal 3. [url=http://theftalk.com/t15097-%7BTUTORIAL%7D-Ganti-Menu2-Dengan-Flash-Object.html]Ganti Menu2 Dengan Flash/Object[/url] by sis annanyeep 4. [url=http://theftalk.com/t22103-%7BAdd-Ons%7D-Custom-Flash-Navigation-Sound-2008%5D.html]Custom-Flash-Navigation-Sound-2008[/url] By bro D'Angelo [b]Paste setelah JS inject & CSS inject (paling atas)[/b] [spoiler]var app = navigator.appName; var mie = "Microsoft Internet Explorer"; function flashTerinstall() { if (app!=mie) { return navigator.plugins["Shockwave Flash"] != null; } else if (window.ActiveXObject) { try { new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); return true; } catch (onError) { return false; } } else { //Undefined return false; } }[/spoiler] 1. Untuk [b]Download Flash Plugins[/b] and tampilin dialog pemberitahuan Flash Belum keinstal, [b]Copas kode dibawah ini dibagian paling bawah JS bro/sis[/b] [spoiler]//Download plugins var aLink="http://www.adobe.com/go/getflashplayer/"; if (flashTerinstall()===false){ if (confirm("Shockwave Flash Plugins belum terinstal di "+navigator.appName+" anda."+'\n'+" Jika anda ingin agar file animasi Flash dapat ditampilkan, Download terlebih dahulu flash plugins."+'\n\n'+"Download fkash plugins sekarang?")!= 0) alert(aLink); }[/spoiler] 2. [b]Untuk Mengganti Flash File dengan File Gambar(jpg)/Gif. ([color=#FF0000]INI MASIH FUNGSI MENTAH[/color])[/b] [b]Copas kode dibawah ini dibagian paling bawah JS bro/sis[/b] [spoiler][b]//FUNGSI GANTI FLASH DENGAN IMAGE/GIF[/b] function gantiFlash(flashLink,imgLink) { if (flashTerinstall()===true) { return flashLink; }else{ return imgLink; } }[/spoiler] [b]Cara Penggunaan Fungsi diatas:[/b] Saia ambil contoh misal Bro/sis pake [b]flash di Primary Image[/b] Bro n menggunakan [b]FERUZZ Primary Image Replacer[/b] [spoiler]//primary pic by Feruzz 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"); [b][color=#FF0000]this.HTML.innerHTML = [/color][color=#0000FF]"<img src='PRIMARY IMAGE HERE' />"[/color][color=#FF0000]; //<===== GANTI BAGIAN INI[/color][/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] [b]Ganti[/b] Bagian yang warna [b]BIRU[/b] diatas sehingga menjadi : [spoiler][color=#FF0000]this.HTML.innerHTML = [/color][color=#0000FF]gantiFlash("Link Flash","Link Image/Gif")[/color][color=#FF0000]; //<===== GANTI BAGIAN INI[/color][/spoiler] [b]MISALNYA[/b] [spoiler]this.HTML.innerHTML = gantiFlash("<img src='http://i253.photobucket.com/albums/hh56/reshimahendra/[b]dra.swf[/b]' />","<img src='http://i253.photobucket.com/albums/hh56/reshimahendra/[b]dra.gif[/b]' />"); //<===== GANTI BAGIAN INI[/spoiler] [b]FINAL DARI PRIMARY IMAGE REPLACER FERUZZ[/b] akan menjadi spt ini [spoiler]//primary pic by Feruzz 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 = [color=#0000FF]gantiFlash("<img src='http://i253.photobucket.com/albums/hh56/reshimahendra/[b]dra.swf[/b]' />","<img src='http://i253.photobucket.com/albums/hh56/reshimahendra/[b]dra.gif[/b]' />"); [/color]//<===== GANTI BAGIAN INI 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] [b][u]Edit History :[/u] 1. Download Plugins 2. Ganti Flash File dengan file Image/Gif or apalah jika Plugis Flash Belum keinstall[/b] [b]Saia belom coba nih code karena saya ga pake Flash di Profile saia :D[/b] Semoga membantu

Last edited by dr4cul453xy (2008-04-12 03:41:52)

Pages: 12

Board footer

© 2025 F Talk

Current time is 11:27

[ 12 queries - 0.015 second ]
Privacy Policy