email saya :
chandra_farenheit@musician.org
darkkness.kotamobagu@gmail.com
atau dapat dicari dengan memasukan keyword:
chandra Farenheit
Buat Lencana Anda
<!--file upload.html--> <form name="form_upload" method="post" action="aksi-upload.php" enctype="multipart/form-data"> Picture: <input type="file" name="picture" /> <input type="submit" name="upload" value="Upload" /> </form>
<?php
//file aksi-upload.php
$fileName = $_FILES['picture']['name'];
$fileSize = $_FILES['picture']['size'];
$fileError = $_FILES['picture']['error'];
if($fileSize > 0 || $fileError == 0){
$move = move_uploaded_file($_FILES['picture']['tmp_name'],
'berkas/'.$fileName);
if($move){
echo "Gambar berhalil diupload";
}else{
echo "Gagal mengupload gambar";
}
}else{
echo "Gagal mengupload gambar: ".$fileError;
}
?>Penjelasan$_FILES['picture'] ['name']Berisi nama file yang sedang diupload.
$_FILES['picture']['type']Mime type dari file yang sedang diupload, jika browser memberikan informasi ini. Contoh: image/png, image/gif
$_FILES['picture']['size']Ukuran atau size file yang temen-temen upload dalam byte.
$_FILES['picture']['tmp_name']Nama file temporer dari file yang sedang diupload yang disimpan di temporari folder server
$_FILES['picture']['error']Error code yang berhubungan dengan file yang sedang diupload
<!doctype html> <html> <head> <title>jQuery Sliding Doors Tutorial | Khoiruddin.Com</title> </head> <body> <div id="container">
</div> </body> </html>simpanlah dengan nama index.html
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script src="custom.js"></script>
[html] <!doctype html> <html> <head> <title>jQuery Sliding Doors | Khoiruddin.Com</title> <link rel="stylesheet" href="style.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script src="animasi.js"></script> </head> <body> <div id="container"> <div id="vertikal" class="third"> <img src="images/gambar-belakang.jpg" /> <img src="images/gambar-depan-1.jpg" class="top" /> </div> <div id="kiri" class="third"> <img src="images/gambar-belakang.jpg" /> <img src="images/gambar-depan-2.jpg" class="top" /> </div> <div id="kiri-bawah" class="third last"> <img src="images/gambar-belakang.jpg" /> <img src="images/gambar-depan-3.jpg" class="top" /> </div> <div id="bawah" class="third"> <img src="images/gambar-belakang.jpg" /> <img src="images/gambar-depan-4.jpg" class="top" /> </div> <div id="kanan" class="third"> <img src="images/gambar-belakang.jpg" /> <img src="images/gambar-depan-5.jpg" class="top" /> </div> <div id="kanan-bawah" class="third last"> <img src="images/gambar-belakang.jpg" /> <img src="images/gambar-depan-6.jpg" class="top" /> </div> </div> </body> </html>simpan file HTML temen-temen.
html,body{margin:0;padding:0;background:#e8e8e8}#container { width:960px; margin:0 auto; padding-top:150px }.third {
width:293px;
margin:0 40px 40px 0;
overflow:hidden;
float:left;
position:relative;
}.third img { display:block; }.top { position:absolute; top:0; left:0; z-index:20 }.last { margin-right:0; }Keterangan$(function() {
// js code here
});Menambahkan Animasi$('#kiri-bawah').hover(function() {
//hover on
$('img.top', $(this)).stop().animate({left: '-293px', top: '188px'}, 500);
//hover off
},function() {
$('img.top', $(this)).stop().animate({left: '0', top: '0'}, 500);
});Keterangan$('#vertikal').hover(function() {
$('img.top', $(this)).stop().animate({top: '188px'}, 500);
},function() {
$('img.top', $(this)).stop().animate({top: '0'}, 500);
});$('#kiri').hover(function() {
$('img.top', $(this)).stop().animate({left: '-293px'}, 500);
},function() {
$('img.top', $(this)).stop().animate({left: '0'}, 500);
});$('#kiri-bawah').hover(function() {
$('img.top', $(this)).stop().animate({left: '-293px', top:
'188px'}, 500);
},function() {
$('img.top', $(this)).stop().animate({left: '0', top: '0'}, 500);
});$('#bawah').hover(function() {
$('img.top', $(this)).stop().animate({top: '-188px'}, 500);
},function() {
$('img.top', $(this)).stop().animate({top: '0'}, 500);
});$('#kanan').hover(function() {
$('img.top', $(this)).stop().animate({left: '293px'}, 500);
},function() {
$('img.top', $(this)).stop().animate({left: '0'}, 500);
});$('#kanan-bawah').hover(function() {
$('img.top', $(this)).stop().animate({left: '293px', top: '188px'}, 500);
},function() {
$('img.top', $(this)).stop().animate({left: '0', top: '0'}, 500);
});Seperti biasa, berikut link download Scriptnya: