how to create a Custom Scrollbar
Answer / Vishal Saxena
Here is an example of creating a custom scrollbar using JavaScript and CSS:nnHTML:n```htmln<!DOCTYPE html>n<html lang="en">n<head>n <meta charset="UTF-8">n <title>Custom Scrollbar</title>n <style>n /* Add custom scrollbar styles */n body {n overflow: hidden;n position: relative;n }n body::-webkit-scrollbar {n width: 12px;n height: 12px;n }n body::-webkit-scrollbar-track {n background-color: #f5f5f5;n }n body::-webkit-scrollbar-thumb {n background-color: #ccc;n border-radius: 6px;n }n </style>n</head>n<body>n <h1>Your Content Here</h1>n</body>n</html>```nnJavaScript:nNo JavaScript code is needed in this example as the scrollbar styles are defined using CSS.n
| Is This Answer Correct ? | 0 Yes | 0 No |
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
Create a ViewState Property?
write a code that user can choose/alter Body Text Size
create a slide show
Create a Menu that can be activated while clicking on Right Mouse button
determine which key was pressed and its type
code to calculate the number of days between two dates
Code for Adding Message and Confirmation Boxes Using JavaScript?
code to keep a page Out of the browser history
code to create a new window
program that will accept any name and will be stored in an array
code to detect availability of cookies