KURSOR BERJALAN
Hi..Hi….
Para Blogger Mania, apa kabar, langsung saja yah, mungkin kalian pernah melihat ada blog seseorang yang saat kita memindahkan kursor mouse ada tulisan menarik yang mengikuti kursor tersebut, warna dan tulisannya beraneka ragam, dan kelihatan cantik banget.
Nah bagi kalian yang pengen blog kalian bisa seperti itu, gampang sekali kog, tinggal ikutin saja tutorialnya disini..
1. Copy script berikut :
<style type="text/css">
/* Circle Text Styles */
#outerCircleText {
/* Optional - DO NOT SET FONT-SIZE HERE, SET IT IN THE SCRIPT */
font-style: italic;
font-weight: bold;
font-family: 'comic sans ms', verdana, arial;
color: #DC143C;
/* End Optional */
/* Start Required - Do Not Edit */
position: absolute;top: 0;left: 0;z-index: 3000;cursor: default;}
#outerCircleText div {position: relative;}
#outerCircleText div div {position: absolute;top: 0;left: 0;text-align: center;}
/* End Required */
/* End Circle Text Styles */
</style>
<script type="text/javascript">
/* Circling text trail- Tim Tilton
Website: http://www.tempermedia.com/
Visit: http://www.dynamicdrive.com/ for Original Source and tons of scripts
Modified Here for more flexibility and modern browser support
Modifications as first seen in http://www.dynamicdrive.com/forums/
username:jscheuer1 - This notice must remain for legal use
*/
;(function(){
// Your message here (QUOTED STRING)
var msg = " Datang & pergi ";
/* THE REST OF THE EDITABLE VALUES BELOW ARE ALL UNQUOTED NUMBERS */
// Set font's style size for calculating dimensions
// Set to number of desired pixels font size (decimal and negative numbers not allowed)
var size = 24;
// Set both to 1 for plain circle, set one of them to 2 for oval
// Other numbers & decimals can have interesting effects, keep these low (0 to 3)
var circleY = 0.75; var circleX = 2;
// The larger this divisor, the smaller the spaces between letters
// (decimals allowed, not negative numbers)
var letter_spacing = 5;
// The larger this multiplier, the bigger the circle/oval
// (decimals allowed, not negative numbers, some rounding is applied)
var diameter = 10;
// Rotation speed, set it negative if you want it to spin clockwise (decimals allowed)
var rotation = 0.4;
// This is not the rotation speed, its the reaction speed, keep low!
// Set this to 1 or a decimal less than one (decimals allowed, not negative numbers)
var speed = 0.3;
////////////////////// Stop Editing //////////////////////
if (!window.addEventListener && !window.attachEvent || !document.createElement) return;
msg = msg.split('');
var n = msg.length - 1, a = Math.round(size * diameter * 0.208333), currStep = 20,
ymouse = a * circleY + 20, xmouse = a * circleX + 20, y = [], x = [], Y = [], X = [],
o = document.createElement('div'), oi = document.createElement('div'),
b = document.compatMode && document.compatMode != "BackCompat"? document.documentElement : document.body,
mouse = function(e){
e = e || window.event;
ymouse = !isNaN(e.pageY)? e.pageY : e.clientY; // y-position
xmouse = !isNaN(e.pageX)? e.pageX : e.clientX; // x-position
},
makecircle = function(){ // rotation/positioning
if(init.nopy){
o.style.top = (b || document.body).scrollTop + 'px';
o.style.left = (b || document.body).scrollLeft + 'px';
};
currStep -= rotation;
for (var d, i = n; i > -1; --i){ // makes the circle
d = document.getElementById('iemsg' + i).style;
d.top = Math.round(y[i] + a * Math.sin((currStep + i) / letter_spacing) * circleY - 15) + 'px';
d.left = Math.round(x[i] + a * Math.cos((currStep + i) / letter_spacing) * circleX) + 'px';
};
},
drag = function(){ // makes the resistance
y[0] = Y[0] += (ymouse - Y[0]) * speed;
x[0] = X[0] += (xmouse - 20 - X[0]) * speed;
for (var i = n; i > 0; --i){
y[i] = Y[i] += (y[i-1] - Y[i]) * speed;
x[i] = X[i] += (x[i-1] - X[i]) * speed;
};
makecircle();
},
init = function(){ // appends message divs, & sets initial values for positioning arrays
if(!isNaN(window.pageYOffset)){
ymouse += window.pageYOffset;
xmouse += window.pageXOffset;
} else init.nopy = true;
for (var d, i = n; i > -1; --i){
d = document.createElement('div'); d.id = 'iemsg' + i;
d.style.height = d.style.width = a + 'px';
d.appendChild(document.createTextNode(msg[i]));
oi.appendChild(d); y[i] = x[i] = Y[i] = X[i] = 0;
};
o.appendChild(oi); document.body.appendChild(o);
setInterval(drag, 25);
},
ascroll = function(){
ymouse += window.pageYOffset;
xmouse += window.pageXOffset;
window.removeEventListener('scroll', ascroll, false);
};
o.id = 'outerCircleText'; o.style.fontSize = size + 'px';
if (window.addEventListener){
window.addEventListener('load', init, false);
document.addEventListener('mouseover', mouse, false);
document.addEventListener('mousemove', mouse, false);
if (/Apple/.test(navigator.vendor))
window.addEventListener('scroll', ascroll, false);
}
else if (window.attachEvent){
window.attachEvent('onload', init);
document.attachEvent('onmousemove', mouse);
};
})();
</script>
2. Edit text yang berwarna merah dengan text yang anda inginkan.
3. Paste script tersebut pada blog anda di bagian header sebelum tag
4. Simpan dan lihat hasilnya.
Note : Untuk colour yang anda inginkan, tinggal ganti saja dengan kode HTML colur di bawah ini :
#ffffff : Putih
#FOF8FF : Aliceblue
#FAEBD7 : Antiquewhite
#00FFFF : Aqua
#7FFFD4 : Aquamarine
#F0FFFF : Azure
#F5F5DC : Beige
#FFE4C4 : Bisque
#000000 : Black
#FFEBCD : Blanchedalmond
#0000FF : Blue
#8A2BE2 : Blueviolet
#A52A2A : Brown
#DEB887 : Burlywood
#5F9EAD : Cadetblue
#7FFF00 : Chartreuse
#D2691E : Chocolate
#FF7F50 : Coral
#64950 : Cornflowerblue
#FFF8DC : Cornsilk
#DC143C : Crimson
#00FFFF : Cyan
#00008B : Darkblue
#008B8B : Darkcyan
#B8860B : Darkgoldenrod
#A9A9A9 : Darkgray
#006400 : Darkgreen
#8B008B : Darkmagenta
#BDB76B : Darkkhaki
#556B2F : Darkolivegreen
#FF8C00 : Darkorange
#9932CC : Darkorchid
#8B0000 : Darkred
#E9967A : Darksalmon
#8FBC8B : Darkseagreen
#483D8B : Darkslateblue
#2F4F4F : Darkslategray
#00CED1 : Darkturquoise
#9400D3 : Darkviolet
#FF1493 : Deeppink
#00BFFF : Deepskyblue
#696969 : Dimgray
#1E90FF : Dodgerblue
#B22222 : Firebrick
#FFFAF0 : Floralwhite
#228B22 : Forestgreen
#FF00FF : Fuchsia
#DCDCDC : Gainsboro
#F8F8FF : Ghostwhite
#FFD700 : Gold
#DAA520 : Goldenrod
#808080 : Gray
#008000 : Green
#ADFF2F : Greenyellow
#F0FFF0 : Honeydew
#FF69B4 : Hotpink
#CD5C5C : Indianred
#4B0082 : Indigo
#FFFFF0 : Ivory
#F0E68C : Khaki
#E6E6FA : Lavender
#FFF0F5 : Lavenderblush
#7CFC00 : Lawngreen
#FFFACD : Lemonchiffon
#ADE8E6 : Lightblue
#F08080 : Lightcoral
#E0FFFF : Lightcyan
#FAFAD2 : Lightgoldenrodyellow
#90EE90 : Lightgreen
#D3D3D3 : Lightgray
#FFB6C1 : Lightpink
#FFA072 : Lightsalmon
#20B2AA : Lightseagreen
#87CEFA : Lightskyblue
#778899 : Lightslategray
#B0C4DE : Lightsteelblue
#FFFFE0 : Lightyellow
#00FF00 : Lime
#32CD32 : Limegreen
#FAF0E6 : Linen
#FF00FF : Magenta
#800000 : Maroon
#66CDAA : Mediumaquamarine
#0000CD : Mediumblue
#BA55D3 : Mediumorchid
#9370DB : Mediumpurple
#3CB371 : Mediumseagreen
#7B68EE : Mediumslateblue
#00FA9A : Mediumspringgreen
#48D1CC : Mediumturquoise
#C71585 : Mediumvioletred
#191970 : Midnightblue
#F5FFFA : Mintcream
#FFE4E1 : Mistyrose
#FFE4E1 : Moccasin
#FFDEAD : Navajowhite
#000080 : Navy
#FDF5E6 :Oldlace
#808000 : Olive
#6B8E23 : Olivedrab
#FFA500 : Orange
#FF100%0 : Orangered
#DA70D6 : Orchid
#EEE8AA : Palegoldenrod
#98FB98 : Palgreen
#AFEEEE : Paleturquoise
#DB7093 : Palevioletred
#FFEFD5 : Papayawhip
#FFDAB9 : Peachpuff
#CD853F : Peru
#FFC0CB : Pink
#DDA0DD : Plum
#B0E0E6 : Powderblue
#800080 : Purple
#FF0000 : Red
#BC8F8F : Rosybrown
#4169E1 : Royalblue
#8B4513 : Saddlebrown
#FA8072 : Salmon
#F4A460 : Sandybrown
#2E8B57 : Seagreen
#FFF5EE : Seashell
#A0522D : Sienna
#C0C0C0 : Silver
#87CEEB : Skyblue
#708090 : Slategray
#FFFAFA : Snow
#00FF7F : Springgreen
#4682B4 : Steelblue
#D2B48C : Tan
#008080 : Teal
#D8BFD8 : Thistle
#FF6347 : Tomato
#40E0D0 : Turquoise
#EE82EE : Violet
#F5DEB3 : Wheat
#FFFFFF : White
#F5F5F5 : Whitesmoke
#FFFF00 : Yellow
#9ACD32 : Yellowgreen
Nah Semoga berhasil, dan menambah ilmu..
Check this out, www.ndynataega.co.cc
Para Blogger Mania, apa kabar, langsung saja yah, mungkin kalian pernah melihat ada blog seseorang yang saat kita memindahkan kursor mouse ada tulisan menarik yang mengikuti kursor tersebut, warna dan tulisannya beraneka ragam, dan kelihatan cantik banget.
Nah bagi kalian yang pengen blog kalian bisa seperti itu, gampang sekali kog, tinggal ikutin saja tutorialnya disini..
1. Copy script berikut :
<style type="text/css">
/* Circle Text Styles */
#outerCircleText {
/* Optional - DO NOT SET FONT-SIZE HERE, SET IT IN THE SCRIPT */
font-style: italic;
font-weight: bold;
font-family: 'comic sans ms', verdana, arial;
color: #DC143C;
/* End Optional */
/* Start Required - Do Not Edit */
position: absolute;top: 0;left: 0;z-index: 3000;cursor: default;}
#outerCircleText div {position: relative;}
#outerCircleText div div {position: absolute;top: 0;left: 0;text-align: center;}
/* End Required */
/* End Circle Text Styles */
</style>
<script type="text/javascript">
/* Circling text trail- Tim Tilton
Website: http://www.tempermedia.com/
Visit: http://www.dynamicdrive.com/ for Original Source and tons of scripts
Modified Here for more flexibility and modern browser support
Modifications as first seen in http://www.dynamicdrive.com/forums/
username:jscheuer1 - This notice must remain for legal use
*/
;(function(){
// Your message here (QUOTED STRING)
var msg = " Datang & pergi ";
/* THE REST OF THE EDITABLE VALUES BELOW ARE ALL UNQUOTED NUMBERS */
// Set font's style size for calculating dimensions
// Set to number of desired pixels font size (decimal and negative numbers not allowed)
var size = 24;
// Set both to 1 for plain circle, set one of them to 2 for oval
// Other numbers & decimals can have interesting effects, keep these low (0 to 3)
var circleY = 0.75; var circleX = 2;
// The larger this divisor, the smaller the spaces between letters
// (decimals allowed, not negative numbers)
var letter_spacing = 5;
// The larger this multiplier, the bigger the circle/oval
// (decimals allowed, not negative numbers, some rounding is applied)
var diameter = 10;
// Rotation speed, set it negative if you want it to spin clockwise (decimals allowed)
var rotation = 0.4;
// This is not the rotation speed, its the reaction speed, keep low!
// Set this to 1 or a decimal less than one (decimals allowed, not negative numbers)
var speed = 0.3;
////////////////////// Stop Editing //////////////////////
if (!window.addEventListener && !window.attachEvent || !document.createElement) return;
msg = msg.split('');
var n = msg.length - 1, a = Math.round(size * diameter * 0.208333), currStep = 20,
ymouse = a * circleY + 20, xmouse = a * circleX + 20, y = [], x = [], Y = [], X = [],
o = document.createElement('div'), oi = document.createElement('div'),
b = document.compatMode && document.compatMode != "BackCompat"? document.documentElement : document.body,
mouse = function(e){
e = e || window.event;
ymouse = !isNaN(e.pageY)? e.pageY : e.clientY; // y-position
xmouse = !isNaN(e.pageX)? e.pageX : e.clientX; // x-position
},
makecircle = function(){ // rotation/positioning
if(init.nopy){
o.style.top = (b || document.body).scrollTop + 'px';
o.style.left = (b || document.body).scrollLeft + 'px';
};
currStep -= rotation;
for (var d, i = n; i > -1; --i){ // makes the circle
d = document.getElementById('iemsg' + i).style;
d.top = Math.round(y[i] + a * Math.sin((currStep + i) / letter_spacing) * circleY - 15) + 'px';
d.left = Math.round(x[i] + a * Math.cos((currStep + i) / letter_spacing) * circleX) + 'px';
};
},
drag = function(){ // makes the resistance
y[0] = Y[0] += (ymouse - Y[0]) * speed;
x[0] = X[0] += (xmouse - 20 - X[0]) * speed;
for (var i = n; i > 0; --i){
y[i] = Y[i] += (y[i-1] - Y[i]) * speed;
x[i] = X[i] += (x[i-1] - X[i]) * speed;
};
makecircle();
},
init = function(){ // appends message divs, & sets initial values for positioning arrays
if(!isNaN(window.pageYOffset)){
ymouse += window.pageYOffset;
xmouse += window.pageXOffset;
} else init.nopy = true;
for (var d, i = n; i > -1; --i){
d = document.createElement('div'); d.id = 'iemsg' + i;
d.style.height = d.style.width = a + 'px';
d.appendChild(document.createTextNode(msg[i]));
oi.appendChild(d); y[i] = x[i] = Y[i] = X[i] = 0;
};
o.appendChild(oi); document.body.appendChild(o);
setInterval(drag, 25);
},
ascroll = function(){
ymouse += window.pageYOffset;
xmouse += window.pageXOffset;
window.removeEventListener('scroll', ascroll, false);
};
o.id = 'outerCircleText'; o.style.fontSize = size + 'px';
if (window.addEventListener){
window.addEventListener('load', init, false);
document.addEventListener('mouseover', mouse, false);
document.addEventListener('mousemove', mouse, false);
if (/Apple/.test(navigator.vendor))
window.addEventListener('scroll', ascroll, false);
}
else if (window.attachEvent){
window.attachEvent('onload', init);
document.attachEvent('onmousemove', mouse);
};
})();
</script>
2. Edit text yang berwarna merah dengan text yang anda inginkan.
3. Paste script tersebut pada blog anda di bagian header sebelum tag
4. Simpan dan lihat hasilnya.
Note : Untuk colour yang anda inginkan, tinggal ganti saja dengan kode HTML colur di bawah ini :
#ffffff : Putih
#FOF8FF : Aliceblue
#FAEBD7 : Antiquewhite
#00FFFF : Aqua
#7FFFD4 : Aquamarine
#F0FFFF : Azure
#F5F5DC : Beige
#FFE4C4 : Bisque
#000000 : Black
#FFEBCD : Blanchedalmond
#0000FF : Blue
#8A2BE2 : Blueviolet
#A52A2A : Brown
#DEB887 : Burlywood
#5F9EAD : Cadetblue
#7FFF00 : Chartreuse
#D2691E : Chocolate
#FF7F50 : Coral
#64950 : Cornflowerblue
#FFF8DC : Cornsilk
#DC143C : Crimson
#00FFFF : Cyan
#00008B : Darkblue
#008B8B : Darkcyan
#B8860B : Darkgoldenrod
#A9A9A9 : Darkgray
#006400 : Darkgreen
#8B008B : Darkmagenta
#BDB76B : Darkkhaki
#556B2F : Darkolivegreen
#FF8C00 : Darkorange
#9932CC : Darkorchid
#8B0000 : Darkred
#E9967A : Darksalmon
#8FBC8B : Darkseagreen
#483D8B : Darkslateblue
#2F4F4F : Darkslategray
#00CED1 : Darkturquoise
#9400D3 : Darkviolet
#FF1493 : Deeppink
#00BFFF : Deepskyblue
#696969 : Dimgray
#1E90FF : Dodgerblue
#B22222 : Firebrick
#FFFAF0 : Floralwhite
#228B22 : Forestgreen
#FF00FF : Fuchsia
#DCDCDC : Gainsboro
#F8F8FF : Ghostwhite
#FFD700 : Gold
#DAA520 : Goldenrod
#808080 : Gray
#008000 : Green
#ADFF2F : Greenyellow
#F0FFF0 : Honeydew
#FF69B4 : Hotpink
#CD5C5C : Indianred
#4B0082 : Indigo
#FFFFF0 : Ivory
#F0E68C : Khaki
#E6E6FA : Lavender
#FFF0F5 : Lavenderblush
#7CFC00 : Lawngreen
#FFFACD : Lemonchiffon
#ADE8E6 : Lightblue
#F08080 : Lightcoral
#E0FFFF : Lightcyan
#FAFAD2 : Lightgoldenrodyellow
#90EE90 : Lightgreen
#D3D3D3 : Lightgray
#FFB6C1 : Lightpink
#FFA072 : Lightsalmon
#20B2AA : Lightseagreen
#87CEFA : Lightskyblue
#778899 : Lightslategray
#B0C4DE : Lightsteelblue
#FFFFE0 : Lightyellow
#00FF00 : Lime
#32CD32 : Limegreen
#FAF0E6 : Linen
#FF00FF : Magenta
#800000 : Maroon
#66CDAA : Mediumaquamarine
#0000CD : Mediumblue
#BA55D3 : Mediumorchid
#9370DB : Mediumpurple
#3CB371 : Mediumseagreen
#7B68EE : Mediumslateblue
#00FA9A : Mediumspringgreen
#48D1CC : Mediumturquoise
#C71585 : Mediumvioletred
#191970 : Midnightblue
#F5FFFA : Mintcream
#FFE4E1 : Mistyrose
#FFE4E1 : Moccasin
#FFDEAD : Navajowhite
#000080 : Navy
#FDF5E6 :Oldlace
#808000 : Olive
#6B8E23 : Olivedrab
#FFA500 : Orange
#FF100%0 : Orangered
#DA70D6 : Orchid
#EEE8AA : Palegoldenrod
#98FB98 : Palgreen
#AFEEEE : Paleturquoise
#DB7093 : Palevioletred
#FFEFD5 : Papayawhip
#FFDAB9 : Peachpuff
#CD853F : Peru
#FFC0CB : Pink
#DDA0DD : Plum
#B0E0E6 : Powderblue
#800080 : Purple
#FF0000 : Red
#BC8F8F : Rosybrown
#4169E1 : Royalblue
#8B4513 : Saddlebrown
#FA8072 : Salmon
#F4A460 : Sandybrown
#2E8B57 : Seagreen
#FFF5EE : Seashell
#A0522D : Sienna
#C0C0C0 : Silver
#87CEEB : Skyblue
#708090 : Slategray
#FFFAFA : Snow
#00FF7F : Springgreen
#4682B4 : Steelblue
#D2B48C : Tan
#008080 : Teal
#D8BFD8 : Thistle
#FF6347 : Tomato
#40E0D0 : Turquoise
#EE82EE : Violet
#F5DEB3 : Wheat
#FFFFFF : White
#F5F5F5 : Whitesmoke
#FFFF00 : Yellow
#9ACD32 : Yellowgreen
Nah Semoga berhasil, dan menambah ilmu..
Check this out, www.ndynataega.co.cc
0 Response to "KURSOR BERJALAN"
Post a Comment