Efek Awan Dan Pesawat Terbang Di Blog
Iseng-iseng jalan ke negeri tetangga, sewaktu blogwalking ehh nemu script unik di blog tersebut. Awalnya sich ga tau mesti di apain nich script namun tiba-tiba dapet ide untuk berkreasi menggunakan script ini dan hasilnya seperti awan dan pesawat yang terlihat pada postingan artikel ini. Gimana sob... kerenkan... kalo blog sobat mempunyai tema tentang traveling, ulasan pesawat terbang atau pun cuma pengen tampilan blognya tampil beda monngo sob di pasang widget ini... Nah buat yang tertarik langsung aja dech ke TKP.
Penting !!! ada baiknya sobat blogger mem-backup terlebih dahulu template blog sobat untuk menghindari hal-hal yang tidak diinginkan dalam menerapkan widget ini.
Cara Pemasangan :Login ke blog sobat...
Klik "More Options" selector box kemudian klik "Tata Letak" setelah itu pilih "Add Widget" dan pilih "HTML / Javascript", seperti gambar di bawah ini.
Copy-paste kode di bawah ini dan taruh di kotak gadget blog. Silakan sesuaikan beberapa parameter kode tersebut agar sesuai dengan tema blog sobat
<style type="text/css">#cover-cloud { width:100%; height:200px; position:absolute; z-index:100; left:0; top:0; } #cloud { background: url(http://2.bp.blogspot.com/-pIdaj5t_YMg/T4asjeHwrJI/AAAAAAAADPo/1jFK0WRW4Z0/s1600/cloud1.png) repeat-x 0 0; position: absolute; width:100%; height:188px; z-index: 200; } #cloud2 { background: url(http://4.bp.blogspot.com/-1LiwOdGfsag/T4afsRPasQI/AAAAAAAADPI/rP6G5TP0ky8/s1600/cloud2.png) repeat-x 0 0; position: absolute; width:100%; height:125px; z-index: 300; } #cloud3 { background: url(http://3.bp.blogspot.com/-D1UZFZTfMMo/T4afst6IauI/AAAAAAAADPU/zzTOtV0P-40/s1600/cloud3.png) repeat-x 0 0; position: absolute; width:100%; height:46px; z-index: 400; } </style><script>var imgLinkUrlCloud="http://lh6.googleusercontent.com/-c4TjgNXUJPA/T4b2CqEp_GI/AAAAAAAABjY/yt4AWY6tGXQ/s800/red_baron.gif";
</script>
<script>
document.write(unescape('%3C%73%63%72%69%70%74%20%6C%61%6E%67%75%61%67%65%3D%22%6A%61%76%61%73%63%72%69%70%74%22%3E%66%75%6E%63%74%69%6F%6E%20%64%46%28%73%29%7B%76%61%72%20%73%31%3D%75%6E%65%73%63%61%70%65%28%73%2E%73%75%62%73%74%72%28%30%2C%73%2E%6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%74%3D%27%27%3B%66%6F%72%28%69%3D%30%3B%69%3C%73%31%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%74%2B%3D%53%74%72%69%6E%67%2E%66%72%6F%6D%43%68%61%72%43%6F%64%65%28%73%31%2E%63%68%61%72%43%6F%64%65%41%74%28%69%29%2D%73%2E%73%75%62%73%74%72%28%73%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%74%29%29%3B%7D%3C%2F%73%63%72%69%70%74%3E'));dF('%297GWGVMTX%2964PERKYEKI%297H%2966nezewgvmtx%2966%297I%294Ezev%2964xi%7CxGshi%297H%2966%297Ghmz%2964mh%297H%296%3Bgsziv1gpsyh%296%3B%297I%297Ghmz%2964mh%297H%296%3Bgpsyh%296%3B%297I%297G3hmz%297I%297Ghmz%2964mh%297H%296%3Bgpsyh6%296%3B%297I%297Gqevuyii%2964hmvigxmsr%297H%296%3Bvmklx%296%3B%297I%297Ge%2964lvij%297H%296%3Blxxt%297E33qsrs%7Egsvi2fpskwtsx2gsq3645634%3A3ijio1e%7Ber1her1tiwe%7Bex1xivferk2lxqp%296%3B%2964xevkix%297H%296%3Bfpero%296%3B%2964xmxpi%297H%296%3BKix%2964xlmw%2964%7Bmhkix%296%3B%297I%297Gmqk%2964wvg%297H%296%3B%2966/mqkPmroYvpGpsyh/%2966%296%3B3%297I%297G3e%297I%297G3qevuyii%297I%297G3hmz%297I%297Ghmz%2964mh%297H%296%3Bgpsyh7%296%3B%297I%297G3hmz%297I%297G3hmz%297I%2966%297F%294E%2968%296%3C%2966fsh%7D%2966%296%3D2ettirh%296%3Cxi%7CxGshi%296%3D%297F%294E%296%3Cjyrgxmsr%296%3C%2968%296%3D%2964%29%3BF%2968%296%3Chsgyqirx%296%3D2vieh%7D%296%3Cjyrgxmsr%296%3C%296%3D%2964%29%3BF%2968%296%3C%296%3B%2967gpsyh%296%3B%296%3D2ter%296%3C%29%3BFjtw%297E%296474%296G%2964wtiih%297E%29645%296G%2964hmv%297E%2964%296%3Bvmklx%296%3B%29%3BH%296%3D%297F%2968%296%3C%296%3B%2967gpsyh6%296%3B%296%3D2ter%296%3C%29%3BFjtw%297E%296474%296G%2964wtiih%297E%29646%296G%2964hmv%297E%2964%296%3Bvmklx%296%3B%29%3BH%296%3D%297F%2968%296%3C%296%3B%2967gpsyh7%296%3B%296%3D2ter%296%3C%29%3BFjtw%297E%296474%296G%2964wtiih%297E%2964429%296G%2964hmv%297E%2964%296%3Bvmklx%296%3B%29%3BH%296%3D%297F%29%3BH%296%3D%297F%29%3BH%296%3D%296%3CnUyiv%7D%296%3D%297F%294E%297G3WGVMTX%297I%294E%294%3D%294%3D%294%3D4');
(function($) {
$._spritely = {
// shared methods and variables used by spritely plugin
animate: function(options) {
var el = $(options.el);
var el_id = el.attr('id');
if (!$._spritely.instances) {
$._spritely.instances = {};
}
if (!$._spritely.instances[el_id]) {
$._spritely.instances[el_id] = {
current_frame: -1
};
}
var instance = $._spritely.instances[el_id];
if (options.type == 'sprite') {
var frames;
var animate = function(el) {
var w = options.width,
h = options.height;
if (!frames) {
frames = [];
total = 0
for (var i = 0; i < options.no_of_frames; i++) {
frames[frames.length] = (0 - total);
total += w;
}
}
if ($._spritely.instances[el_id]['current_frame'] >= frames.length - 1) {
$._spritely.instances[el_id]['current_frame'] = 0;
} else {
$._spritely.instances[el_id]['current_frame'] = $._spritely.instances[el_id]['current_frame'] + 1;
}
el.css('background-position', frames[$._spritely.instances[el_id]['current_frame']] + 'px 0');
if (options.bounce && options.bounce[0] > 0 && options.bounce[1] > 0) {
var ud = options.bounce[0]; // up-down
var lr = options.bounce[1]; // left-right
var ms = options.bounce[2]; // milliseconds
el
.animate({
top: '+=' + ud + 'px',
left: '-=' + lr + 'px'
}, ms)
.animate({
top: '-=' + ud + 'px',
left: '+=' + lr + 'px'
}, ms);
}
}
animate(el);
} else if (options.type == 'pan') {
if (options.dir == 'left') {
$._spritely.instances[el_id]['l'] = ($._spritely.instances[el_id]['l'] - (options.speed || 1)) || 0;
} else {
$._spritely.instances[el_id]['l'] = ($._spritely.instances[el_id]['l'] + (options.speed || 1)) || 0;
}
if ($.browser.msie) {
// fixme - the background-position property does not work
// corretly in IE so we have to hack it here... Not ideal
// especially as $.browser is depricated
var bp_top = $(el).css('background-position-y') || '0';
$(el).css('background-position', $._spritely.instances[el_id]['l'] + 'px ' + bp_top);
} else {
var bp_top = ($(el).css('background-position').split(' ') || ' ')[1];
$(el).css('background-position', $._spritely.instances[el_id]['l'] + 'px ' + bp_top);
}
}
},
randomIntBetween: function(lower, higher) {
return parseInt(rand_no = Math.floor((higher - (lower - 1)) * Math.random()) + lower);
}
};
$.fn.extend({
spritely: function(options) {
var options = $.extend({
type: 'sprite',
do_once: false,
width: null,
height: null,
fps: 12,
no_of_frames: 2
}, options || {});
options.el = this;
options.width = options.width || $(this).width() || 100;
options.height = options.height || $(this).height() || 100;
var get_rate = function() {
return parseInt(1000 / options.fps);
}
if (!options.do_once) {
window.setInterval(function() {
$._spritely.animate(options);
}, get_rate(options.fps));
} else {
$._spritely.animate(options);
}
return this; // so we can chain events
},
sprite: function(options) {
var options = $.extend({
type: 'sprite',
bounce: [0, 0, 1000] // up-down, left-right, milliseconds
}, options || {});
return $(this).spritely(options);
},
pan: function(options) {
var options = $.extend({
type: 'pan',
dir: 'left',
continuous: true,
speed: 1 // 1 pixel per frame
}, options || {});
return $(this).spritely(options);
},
flyToTap: function(options) {
var options = $.extend({
el_to_move: null,
type: 'moveToTap',
ms: 1000, // milliseconds
do_once: true
}, options || {});
if (options.el_to_move) {
$(options.el_to_move).active();
}
if ($._spritely.activeSprite) {
if (window.Touch) { // iphone method see http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9 or http://www.nimblekit.com/tutorials.html for clues...
$(this)[0].ontouchstart = function(e) {
var el_to_move = $._spritely.activeSprite;
var touch = e.touches[0];
var t = touch.pageY - (el_to_move.height() / 2);
var l = touch.pageX - (el_to_move.width() / 2);
el_to_move.animate({
top: t + 'px',
left: l + 'px'
}, 1000);
};
} else {
$(this).click(function(e) {
var el_to_move = $._spritely.activeSprite;
$(el_to_move).stop(true);
var w = el_to_move.width();
var h = el_to_move.height();
var l = e.pageX - (w / 2);
var t = e.pageY - (h / 2);
el_to_move.animate({
top: t + 'px',
left: l + 'px'
}, 1000);
});
}
}
return this;
},
active: function() {
// the active sprite
$._spritely.activeSprite = this;
return this;
},
activeOnClick: function() {
// make this the active script if clicked...
var el = $(this);
if (window.Touch) { // iphone method see http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9 or http://www.nimblekit.com/tutorials.html for clues...
el[0].ontouchstart = function(e) {
$._spritely.activeSprite = el;
};
} else {
el.click(function(e) {
$._spritely.activeSprite = el;
});
}
return this;
},
spRandom: function(options) {
var options = $.extend({
top: 50,
left: 50,
right: 290,
bottom: 320,
speed: 4000,
pause: 0
}, options || {});
var el_id = $(this).attr('id');
var r = $._spritely.randomIntBetween;
var t = r(options.top, options.bottom);
var l = r(options.left, options.right);
$('#' + el_id).animate({
top: t + 'px',
left: l + 'px'
}, options.speed)
window.setTimeout(function() {
$('#' + el_id).spRandom(options);
}, options.speed + options.pause)
return this;
},
makeAbsolute: function() {
// remove an element from its current position in the DOM and
// position it absolutely, appended to the body tag.
return this.each(function() {
var el = $(this);
var pos = el.position();
el.css({
position: "absolute",
marginLeft: 0,
marginTop: 0,
top: pos.top,
left: pos.left
})
.remove()
.appendTo("body");
});
}
})
})(jQuery);
// Stop IE6 re-loading background images continuously
try {
document.execCommand("BackgroundImageCache", false, true);
} catch (err) {}
</script>
KETERANGAN :Jangan lupa untuk memasang kode script JQuery.Pada kode : imgLinkUrlCloud="http://lh6.googleusercontent.com/-c4TjgNXUJPA/T4b2CqEp_GI/AAAAAAAABjY/yt4AWY6tGXQ/s800/red_baron.gif"; merupakan link gambar pesawat, untuk mengganti gambar pesawat silakan ganti link tersebut dengan link gambar yang sobat inginkan. Usahakan menggunakan gambar dengan ukuran 144 pixel baik ukuran tinggi maupun ukuran lebar gambar. Pada postingan artikel ini terdapat beberapa pilihan gambar yang bisa sobat gunakan untuk menyesuaikan gambar pesawat dengan tema template blog sobat.
Pilihan Gambar Pesawat :
http://lh5.googleusercontent.com/-jtgL8EqZtPo/T-YOSTVhVbI/AAAAAAAACPA/DLAlH7wvG8Q/s800/sexy-witch.gif
http://lh6.googleusercontent.com/-c4TjgNXUJPA/T4b2CqEp_GI/AAAAAAAABjY/yt4AWY6tGXQ/s800/red_baron.gif
http://lh4.googleusercontent.com/-ekCpPkHYeVs/T-ZlXiTjkXI/AAAAAAAACPM/sD9RAks3I2s/s800/UFO1.gif
http://3.bp.blogspot.com/-C_K3wx11k7Y/VFNDSPeC2-I/AAAAAAAAEcc/6-vzs_6HgTM/s1600/gundam1.gif
http://1.bp.blogspot.com/-ymaWyZM8SkM/UM_XzNThzTI/AAAAAAAAC2c/KlPWqHQXyr0/s800/Naruto_N3.gif
http://4.bp.blogspot.com/-5AWZG6I3oH8/VFMwC50pbNI/AAAAAAAAEcM/NVrc0mrtHSE/s1600/galaxyfight2.gif
http://4.bp.blogspot.com/-NT4TiiKM0cg/VFMwBnMIokI/AAAAAAAAEcE/djd4MttJHO8/s1600/galaxyfight14.gif
Klik "Save" dan lihat hasilnya...Oke sobat monozcore jangan lupa meninggalkan jejak komentarnya yaa... biar postingan berikutnya semakin unik dan menarik.. happy blogging..
.: Semoga Bermanfaat :.
Artikel ini hanyalah simpanan cache dari url asal penulis yang berkebarangkalian sudah terlalu lama atau sudah dibuang :
http://monozcore.blogspot.com/2017/05/efek-awan-dan-pesawat-terbang-di-blog.html