Caranya cukup mudah sekali, kalian tinggal menanamkan seonggok JavaScript di bawah, ke dalam Widget (HTML/JavaScript)
SAVE.Thanks bloggerplugins Bila membutuhkan value keycode kibor datang saja ke Undercover Blog :)) Sekarang arah panah kiri & kanan keyboard berfungsi menjadi next and previus page blog.<script>
document.onkeyup = function (event) {
if (document.activeElement.nodeName == 'TEXTAREA' || document.activeElement.nodeName == 'INPUT') return;
event = event || window.event;
switch (event.keyCode) {
case 37:
var newerLink = document.getElementById('Blog1_blog-pager-newer-link');
if (newerLink != null) window.location.href = newerLink.href;
break;
case 39:
var olderLink = document.getElementById('Blog1_blog-pager-older-link');
if (olderLink != null) window.location.href = olderLink.href;
}
};
</script>
Wassalam :)
codepen.io/P233/full/qEagi
Tidak ada komentar:
Posting Komentar