forked from bitovi/funcunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscroll.html
More file actions
24 lines (24 loc) · 862 Bytes
/
Copy pathscroll.html
File metadata and controls
24 lines (24 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script src="../browser/resources/jquery.js" type='text/javascript'></script>
<script type='text/javascript'>
$(function(){
$('#innerdiv').click(function()
{
$('#scrolldiv').scrollTop(100);
$('#scrolldiv').scrollLeft(100);
})
})
</script>
</head>
<body>
<h1>Scroll Test</h1>
<div id="mainscrollingarea">
<div id='scrolldiv' style='width:100px;height:200px;overflow-y:scroll;' tabindex='0'>
<div id='innerdiv' style='width:500px; height:1000px;'><a id="scrollme" href='javascript://'>click to scroll</a></div>
</div>
</body>
</html>