0

Membuat Fotomu di halaman depan websitemu

Selasa, 01 Mei 2012
Share this Article on :
Hello Semua Ganteng
Sebelumnya Mohon Maaf Klo Acak� kan, Maklum Masih Newbie :)

Langsung aja ya ke tkp

CODE PHP :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<
html>
<
head>
<
title>My Foto ^_^</title>
<
meta name="author" content="1puT at http://www.1put-blog.blogspot.com">
<
meta http-equiv="imagetoolbar" content="no">
<
style type="text/css">
    
html {
        
overflowhidden;
    }
    
body {
        
margin0px;
        
padding0px;
        
background#111;
        
positionabsolute;
        
width100%;
        
height100%;
    }
    
#screen {
        
positionabsolute;
        
left0px;
        
top0px;
        
width100%;
        
height100%;
        
background#000;
    
}
    
#SP {
        
positionabsolute;
        
left50%;
        
top50%;
    }
    
#screen span {
        
positionabsolute;
        
left: -1000px;
        
overflowhidden;
    }
    
#screen img  {
        
positionabsolute;
        -
ms-interpolation-mode:nearest-neighbor;
    }
    
#credit {
        
positionabsolute;
        
color#888;
        
font-familyverdanaarialhelveticasans-serif;
        
font-size0.8em;
        
right1em;
        
text-alignright;
        
bottom2px;
    }
    
{text-decorationnone;color:#fff;}
    
a:hover    {text-decorationnone;background:#ff8000;color:#fff;}
    
a:visited {text-decorationnone;color:#fff;}
    
a:visited:hover {text-decorationnone;background:#ff8000;color:#fff;} </style>
<
script type="text/javascript"// ====================================================
// script By: 1puT
// http://www.1put-blog.blogspot.com/ 
// ====================================================
 
document.onselectstart = new Function("return false");

var 
nx  0;
var 
ny  0;
var 
xm  0;
var 
ym  = -1000000;
var 
S   0;
var 
O   0;
var 
M   10;
var 
H;
var 
W;
var 
img;
var 
scr;
 
//////////////////// var RAD  2;
var 
Nx   12;
var 
Ny   14;
var 
visc .01////////////////////
 
function CObj(parentxy){
    var 
document.createElement("span");
    
o.style.width Math.round(2) + 'px';
    
o.style.height Math.round(2) + 'px';
    var 
document.createElement("img");
    
i.src img.src;
    
i.style.left Math.round(-W) + 'px';
    
i.style.top Math.round(-H) + 'px';
    
o.appendChild(i);
    
document.getElementById("SP").appendChild(o);
    
= -(Nx 2) * + (W);
    
= -(Ny 2) * + (H);
    
this.obj  o.style;
    
this.x    x;
    
this.y    y;
    
this.x0   x;
    
this.y0   y;
    
this.parent parent;
}
 
CObj.prototype.anim = function () {
    
this.dx xm this.x;
    
this.dy ym this.y;
    var 
Math.sqrt(this.dx this.dx this.dy this.dy);
    
this.this.* (this.dx d) + (this.x0 this.x) * visc;
    
this.this.* (this.dy d) + (this.y0 this.y) * visc;
    
this.obj.left Math.round(this.x) + 'px';
    
this.obj.top  Math.round(this.y) + 'px';
    if(
this.parentthis.parent.anim();
}

function 
run(){
    
O.anim();
}
 
document.onmousemove = function(e){
    if (
window.eventwindow.event;
    
xm = (e.|| e.clientX) - scr.offsetLeft nx;
    
ym = (e.|| e.clientY) - scr.offsetTop ny;
}

function 
resize(){
    
nx scr.offsetWidth .5;
    
ny scr.offsetHeight .5;
onresize resize;
 
onload = function(){
    
img document.getElementById("IMG");
    
scr document.getElementById("screen");
    
resize();
    
img.width Nx;
    
img.height Ny;
    
img.width RAD;
    for(var 
0Nyy++)
        for(var 
0Nxx++)
            
= new CObj(Oxy);
    
setInterval(run16);
</script>
</head>
<body>

<div id="screen">
    <div id="SP"></div>
    <div id="credit">Credit By
    <a href="http://www.1put-blog.blogspot.com/">1puT</a></div>
</div>

<img id="IMG" src="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/407682_151010115014704_100003171504874_205497_1537435362_n.jpg" alt="" style="visibility:hidden">

</body>
</html> 






Ganti di bagian ini :)
<img id="IMG" src="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/407682_151010115014704_100003171504874_205497_1537435362_n.jpg" alt="" style="visibility:hidden" 




Untuk Contohnya disini http://iput-newbie.mw.lt/



Silahkan di edit menurut sesuka hati Bigsmile
Orang yg dermawan pasti kasih reputasi SmileSenangMalu

Terima kasih :)  


Artikel Terkait:

0 komentar:

Posting Komentar