- Cara membuatnya :
- Login blogger
- Rancangan, Edit Html, Cari kode ]]></b:skin>
- Dan Simpan kode berikut diatasnya :
/* ---------------
jQuery Color Picker: Farbtastic
---------------------------------- */
/**
* Farbtastic Color Picker 1.2
* © 2008 Steven Wittens
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
.farbtastic {
position: relative;
}
.farbtastic * {
position: absolute;
cursor: crosshair;
}
.farbtastic, .farbtastic .wheel {
width: 195px;
height: 195px;
}
.farbtastic .color, .farbtastic .overlay {
top: 47px;
left: 47px;
width: 101px;
height: 101px;
}
.farbtastic .wheel {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyuBURke5fsNN48Y2kqhA5P8DYkm9uuX_qoQpMFCZi7GXxTb1oPx2L9MAHAIMcIx8pYgWa9KmLj_VFjWJiy4wQv02bXDv4T7p7PkpT-nmq4l_n1_69psN7Sy0kzYT2hjI6FYE0BAlWvak/s1600/wheel.png) no-repeat;
width: 195px;
height: 195px;
}
.farbtastic .overlay {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi06otoLsH5WJM3ob0Ap0G3HXmGNPlAQRJal3arlOxDBP_9GkiUsjgnTXhdK-5Gds2vrSGWOIUS9gt1SuqYY6Ol1GK9BSqSZUO3jMokrH5oRvVyPUXydbF0hrcwF2W9PJTtWZshu0wNTMs/s1600/mask.png) no-repeat;
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggST7wBH4jz-zo0XoXUlIwRUQ3CWZ58hWyi_tf0Fb-7q-DSvBMTDKMiEaU83uM9ox0Q63zdV8bWV2q-_jcalJAKpqz11gmKFc8h60nH3KKKt0rBYztvnT5FXeJ3QM4RFlTH5DWkqVGBuc/s1600/marker.png) no-repeat;
}
jQuery Color Picker: Farbtastic
---------------------------------- */
/**
* Farbtastic Color Picker 1.2
* © 2008 Steven Wittens
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
.farbtastic {
position: relative;
}
.farbtastic * {
position: absolute;
cursor: crosshair;
}
.farbtastic, .farbtastic .wheel {
width: 195px;
height: 195px;
}
.farbtastic .color, .farbtastic .overlay {
top: 47px;
left: 47px;
width: 101px;
height: 101px;
}
.farbtastic .wheel {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyuBURke5fsNN48Y2kqhA5P8DYkm9uuX_qoQpMFCZi7GXxTb1oPx2L9MAHAIMcIx8pYgWa9KmLj_VFjWJiy4wQv02bXDv4T7p7PkpT-nmq4l_n1_69psN7Sy0kzYT2hjI6FYE0BAlWvak/s1600/wheel.png) no-repeat;
width: 195px;
height: 195px;
}
.farbtastic .overlay {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi06otoLsH5WJM3ob0Ap0G3HXmGNPlAQRJal3arlOxDBP_9GkiUsjgnTXhdK-5Gds2vrSGWOIUS9gt1SuqYY6Ol1GK9BSqSZUO3jMokrH5oRvVyPUXydbF0hrcwF2W9PJTtWZshu0wNTMs/s1600/mask.png) no-repeat;
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggST7wBH4jz-zo0XoXUlIwRUQ3CWZ58hWyi_tf0Fb-7q-DSvBMTDKMiEaU83uM9ox0Q63zdV8bWV2q-_jcalJAKpqz11gmKFc8h60nH3KKKt0rBYztvnT5FXeJ3QM4RFlTH5DWkqVGBuc/s1600/marker.png) no-repeat;
}
selanjutnya simpan script berikut tepat diatas kode </head> :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/farbtastic.js"></script>
<link rel="stylesheet" href="farbtastic.css" type="text/css" />
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#demo').hide();
$('#picker').farbtastic('#color');
});
</script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/farbtastic.js"></script>
<link rel="stylesheet" href="farbtastic.css" type="text/css" />
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#demo').hide();
$('#picker').farbtastic('#color');
});
</script>
dan yang terakhir cara pemanggilannya pada Html :
selesai.....
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.