• 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>

 

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 :/

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

    • No registered users viewing this page.
  • Posts

    • That has AI shoved in as well, and I expect at some point that will become more in your face.
    • Edge on a Mac? Hell no, as bad as Edge on Linux, I did not use Edge on Windows. The Ai rubbish is getting too much, seem like it is being put into every flipping app and devices these days. I have disabled it on my Mac, dead easy to do that, disabled it on Brave. I agree with David Uzondu, why can't browsers be simple like they used to be. Not that Chrome is simple and still have AI shoved into that. I like the Duck Duck go browser, but that have AI even, but it can be disabled, the only problem with the Duck Duck go browser is no support for extensions. Maybe we should back to Mosaic.
    • Another reason to stick with Firefox
    • Yes, the Control Pannel issue has been fixed. As I ask when people claim it hasn't, can you name a single thing in Windows 11 that can only be done by opening Control Panel? Your comment about Error 0x80070643 is so asinine that I debated if you were worth a reply, but here I am. The article mentioned a VERY specific issue with the WinRE partition size being too small in Windows 10 and preventing updates from being installed unless you reinstalled or manually fixed it. That issue does not exist on Windows 11, period. To point to random issues with Windows updates on 11 that don't affect everyone and don't involve that issue is being dishonest. Had the article said "Issues with updates, such as..." then I'd agree with you, but it didn't, it simply mentioned that one specific issue, which despite your claim, does not exist on 11 or on newer builds of 10 (so the article is kind of wrong, it did get fixed, just not gracefully). As far as UX/UI comes more down to opinion, but again, you are saying it is "terrible" which has nothing to do with consistency. Windows 11 has a more consistent interface. You are welcome to say it is constantly bad, but I don't see how any objective person can say it isn't more constant than Windows 10's unholy merger of Windows 7 and Windows 8. To be fair, I really like Windows 10's interface, it worked great, but was it consistent, NO, it was one of the least consistent interfaces MS has ever made. I agree with the lack of competition. Linux continues to get better
  • Recent Achievements

    • Week One Done
      NeoWeen earned a badge
      Week One Done
    • One Month Later
      BA the Curmudgeon earned a badge
      One Month Later
    • First Post
      Doreen768 earned a badge
      First Post
    • One Month Later
      James_kobe earned a badge
      One Month Later
    • Week One Done
      James_kobe earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      671
    2. 2
      ATLien_0
      256
    3. 3
      Xenon
      165
    4. 4
      neufuse
      145
    5. 5
      +FloatingFatMan
      114
  • Tell a friend

    Love Neowin? Tell a friend!