crop_rotate
Run
<html> <head> <title>HTML DOM scrollLeft Property</title> <style> #div { width: 400px; overflow: auto; margin: auto; } #ele { width: 600px; background-color: green; color: white; } </style> </head> <body style="text-align: center;"> <h1 style="color:green;"> Close Tag </h1> <h2> DOM scrollLeft Property </h2> <div id="div" onscroll="myfun()"> <div id="ele"> <p>Close Tag</p> <p> Java Script Tutorial </p> </div> </div> <p id="p"></p> <script> function myfun() { var doc = document.getElementById("div"); var x = doc.scrollLeft; document.getElementById("p").innerHTML = "Horizontal scroll: " + x + "px"; } </script> </body> </html>
PGh0bWw+DQoNCjxoZWFkPg0KCTx0aXRsZT5IVE1MIERPTSBzY3JvbGxMZWZ0IFByb3BlcnR5PC90aXRsZT4NCgk8c3R5bGU+DQoJCSNkaXYgew0KCQkJd2lkdGg6IDQwMHB4Ow0KCQkJb3ZlcmZsb3c6IGF1dG87DQoJCQltYXJnaW46IGF1dG87DQoJCX0NCgkJDQoJCSNlbGUgew0KCQkJd2lkdGg6IDYwMHB4Ow0KCQkJYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47DQoJCQljb2xvcjogd2hpdGU7DQoJCX0NCgk8L3N0eWxlPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4gOjotd2Via2l0LXNjcm9sbGJhcnt3aWR0aDo3cHg7aGVpZ2h0OjdweDt9Ojotd2Via2l0LXNjcm9sbGJhci10cmFja3tiYWNrZ3JvdW5kOiNmZmY7fTo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWJ7Ym9yZGVyLXJhZGl1czo1cHg7YmFja2dyb3VuZDojMmY0NWZmO308L3N0eWxlPjwvaGVhZD4NCg0KPGJvZHkgc3R5bGU9InRleHQtYWxpZ246IGNlbnRlcjsiPg0KCTxoMSBzdHlsZT0iY29sb3I6Z3JlZW47Ij4NCgkJCUNsb3NlIFRhZw0KCQk8L2gxPg0KDQoJPGgyPg0KCQkJRE9NIHNjcm9sbExlZnQgUHJvcGVydHkNCgkJPC9oMj4NCg0KCTxkaX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