Hi,
I have a webpage where i am loading the content of external website into a div and it is working perfectly.
please find below the code i am using for loading the web page( example url-http://www.w3schools.com/)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function () {
$("#siteloader").html('<object height="1000px" width="1000px" data="http://www.w3schools.com/">')
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="siteloader"></div> <%--div to load site--%>
</body>
</html>
Since the page content is overflowing ,the div will introduce 'scroll bars'.I would like to implement auto scroll feature to this div where it will scroll down for every 10 sec by some length and scroll up back to the top on reaching the end.
I have implemented auto refresh every 1 minute and it is working fine,but i am unable to implement this.
Is it possible to implement the same using jQuery or JavaScript ??
Thanks