• 0

Make iframe auto scroll contents up and down on delay?


Question

I have the following code, in a simple HTML file, which loads two seperate HTML files. The second iframe is vertically to long and I use a scroll bar on it to view the contents, what I would like to do is use some type of script like .js or similar to have the iframe just constantly but smoothly scroll the contents to the bottom, then return to the top, Anyone know of a way to do this?

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta http-equiv="refresh" content="60">
<title>Bandwidth Monitor - Detailed</title>

</head>

<body>
 
 <iframe width=640 height=895 frameborder="1" scrolling="no" align="left"
   src="https://172.16.50.16:8081/public/mapshow.htm?id=2056&mapid=8DBBBBB1-6B06-44B4-AC71-7CD9F469AA08">
   </iframe>


<iframe width=575 height=895 frameborder="1" scrolling="yes" align="left"
   src="https://172.16.50.16:11695/list.html">
   </iframe>



</body>

</html>

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I would consider loading the iframe html into a div but that would be a problem when you want to keep the iframe content seperated from the site(not affected by css and such). Your method might have issues with cross domain content :/

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.