Scroll button detect

Developer
Size
1,844 Kb
Views
4,048

How do I make an scroll button detect?

What is a scroll button detect? How do you make a scroll button detect? This script and codes were developed by Khalid Munir on 04 January 2023, Wednesday.

Scroll button detect Previews

Scroll button detect - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>scroll button detect</title>
</head>
<body> <h1>Try the scroll buttons</h1>
Use the keyboard arrow keys and then while pressing the shift key. <br>
See what happens. <script src="js/index.js"></script>
</body>
</html>

Scroll button detect - Script Codes JS Codes

document.onkeydown = checkKey;
function checkKey(e) { e = e || window.event; if (e.keyCode == '38' && e.shiftKey) { // up arrow alert("up and shift : Maybe copy time to cell above "); // get this cells time and copy to cell above } else if (e.keyCode == '38') { // up arrowa alert("up : Maybe : change focus to cell above"); // get this cells id, and somekind of ref to the cell above // change focus to cell above. } else if (e.keyCode == '40' && e.shiftKey) { // down arrowa alert("down And Shift : Maybe copy this time to cell below"); // get this cells time and copy to cell below } else if (e.keyCode == '40') { // down arrowa alert("down : Maybe : scroll down to cell below"); // get this cells id, and somekind of ref to the cell below // change focus to cell below. } else if (e.keyCode == '37' && e.shiftKey) { // left arrow alert("left and Shift : Maybe reduce time by 1 minute"); // get this cells time and breakdown to hr / min / sec // reduce one to min (and hour if needed) // reconstruct time and put in cell. } else if (e.keyCode == '37') { // left arrow alert("left - Maybe scroll left"); // get this cells id, and somekind of ref to the cell to left // change focus to cell in left. } else if (e.keyCode == '39' && e.shiftKey) { // right arrow alert("right and shift : maybe Add 1minute to time "); // get this cells time and breakdown to hr / min / sec // add one to min (and hour if needed) // reconstruct time and put in cell. } else if (e.keyCode == '39') { // right arrow alert("right : Scroll right"); // get this cells id, and somekind of ref to the cell to right // change focus to cell in right. } //
}
Scroll button detect - Script Codes
Scroll button detect - Script Codes
Home Page Home
Developer Khalid Munir
Username khalidmunir
Uploaded January 04, 2023
Rating 3
Size 1,844 Kb
Views 4,048
Do you need developer help for Scroll button detect?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Khalid Munir (khalidmunir) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!