Auto refresh html - alternate pdf files
I have developed a report that is now on display on a separate computer in the middle of my office. This report changes frequent, so to display it, I wrote the following htm. It is not pretty, but it works.
<META HTTP-EQUIV="refresh" CONTENT="600">
<iframe src="\\SERVER-NATBIO\Distribution\LOG\Uncontrolled\Delivery Schedule.pdf" width="100%" height="100%" FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME>
Now I have been asked to display another pdf report as well. I was wondering if it is possible to modify this code so that on each refresh, the html page will load a different file. The user looking at it would see something like this:
start - file 1 is displayed
5mins later - file 2 is displayed
5mins later - file 1 is displayed again
5mins later - file 2 is displayed again
I haven't done much html, but my engineering logic would suggest something like the following should work, I just don't know how to do it in html:
Set switch = first
IF (switch = first, load file 1, set switch = second)
ELSE (load file 2, set switch = first)
Refresh after 5min
Thanks in advance!