Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutor] Membuat Fotomu di halaman depan websitemu Part II
#1
Hallo Semuanya :)

Sebelumnya Saya share membuat fotomu di depan websitemu part I disini http://hacker-newbie.org/showthread.php?tid=12852
Kali ini saya akan share Membuat fotomu dihalaman depan websitemu part II :D

Langsung aja om Culas
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>My Photo ^_^</title> <meta name="Author" content="1puT at http://www.1puT-blog.blogspot.com"> <meta http-equiv="imagetoolbar" content="no"> <style type="text/css"> html { overflow: hidden; } body { margin: 0px; padding: 0px; background: #000; position: absolute; width: 100%; height: 100%; } img { position:absolute; -ms-interpolation-mode:nearest-neighbor; image-rendering: optimizeSpeed; } span { position:absolute; overflow:hidden; } </style> <script type="text/javascript"> // =================================================== // script By: 1puT // http://www.1put-blog.blogspot.com // =================================================== var T = new Array(), N = 64, xm = 0, ym = 0, nx = 0, nx2 = 0, ny = 0, L = 0, H = 0, MM = false, xb = 0, yb = 0; function CreateTrancheImg(i){ this.obj = document.createElement("span"); this.img = document.createElement("img"); this.img.src = document.getElementById("ge1doot").src; this.obj.appendChild(this.img); document.body.appendChild(this.obj); } function resize(){ if(MM){ nx = document.body.offsetWidth; ny = document.body.offsetHeight; nx2 = nx / 2; L = nx - Math.round(nx / 3); H = Math.floor(ny / N); for(var i=0;i<N;i++){ var t = T[i]; t.obj.style.left = Math.round((nx - L) / 2)+"px"; t.obj.style.top = Math.round((H + 1) * i)+"px"; t.obj.style.height = Math.round(H)+"px"; t.obj.style.width = Math.round(L)+"px"; t.img.style.top = Math.round(-(ny / N) * i)+"px"; t.img.style.width = Math.round(L)+"px"; t.img.style.height = Math.round(ny)+"px"; } } } onresize = resize; onload = function() { for(var i=0;i<N;i++)T[i] = new CreateTrancheImg(i); MM = true; resize(); document.onmousemove = function(e){ if (window.event) e = window.event; xm = (e.x || e.clientX); ym = (e.y || e.clientY); var x = Math.round(ym / (H + 1)); if (x != xb) { var y = Math.abs(xm - nx2); var yp = y; var sy = (yb - y) / Math.abs(x - xb); while (x != xb) { if(xb > x) xb--; else xb++; var t = T[xb]; t.obj.style.left = Math.round(nx2 - Math.abs(yp))+"px"; t.obj.style.width = Math.round(2 * Math.abs(yp))+"px"; t.img.style.width = Math.round(2 * Math.abs(yp))+"px"; yp -= sy; } yb = y; } } } </script> </head> <body> <img id="ge1doot" style="display: none" src="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/407682_151010115014704_100003171504874_205497_1537435362_n.jpg"> </body> </html>
Ganti bagian ini om dengan fotomu :)
PHP Code:
<img id="ge1doot" style="display: none" src="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/407682_151010115014704_100003171504874_205497_1537435362_n.jpg">
untuk contohnya disini http://iput-comeback.jw.lt/index.html

Silahkan di edit sesuka hati :Bigsmile:
Anggota HN yg baik hati pasti kasih reputasi :Smile:

Terima kasih :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  membuat slideshow dari fb ernocobain 23 923 03-22-2014, 01:33 AM
Last Post: ./boW
Electric_16 [tutor] Design HN facebook cover E1nzte1N 19 999 10-16-2013, 08:55 AM
Last Post: E1nzte1N
  Cara mudah membuat Logo Dengan Photoshop Cs3 Dr.A 14 630 07-10-2013, 07:07 AM
Last Post: Rifqi Azhar Nugraha
Electric_16 [Tutor] Membuat Mockup Tshirt E1nzte1N 19 776 07-07-2013, 07:04 PM
Last Post: libraers
  [share]Membuat Gambar menjadi Tulisan (Semacam ASCII) rifaldi238 16 689 03-24-2013, 02:02 PM
Last Post: rifaldi238
  Membuat desain kartu nama dengan Corel Draw X6 skyland_hacker 7 339 02-25-2013, 07:38 PM
Last Post: Qifwhysoserious
Electric_16 [tutor] Efek Sketsa dengan GIMP E1nzte1N 15 419 01-22-2013, 05:54 PM
Last Post: RockSyd
Red-stab_16 [Tutor] Buat Logo Alis 5 205 12-29-2012, 12:39 PM
Last Post: [H2]
Electric_16 [tutor] Bikin Efek Neon Lights E1nzte1N 11 625 12-17-2012, 04:47 PM
Last Post: ChacinkSyndrome
Electric_16 [tutor] Buat 3D Text dengan Photoshop. E1nzte1N 14 623 12-10-2012, 02:55 PM
Last Post: patronum inc

Forum Jump:


Users browsing this thread: 1 Guest(s)