Hi everyone, just wondering if anyone could help me or at least point me in the right direction.
I am designing some pages to load to be displayed as a customer display on a terminal. The pages are displayed using IE6s rendering engine, and I don’t have control over that. There are 3 pages displayed, in a slideshow style using a javascript and the setTimeout function to load them after a delay, before loading the next one and so on. 2 of these pages require different versions depending on the available height.
The problem is that I need to be able to poll document.body.clientHeight and detect when the height changes, and then dynamically load a different page.
I’ll freely admit I am a beginner, and that my skills are lacking, but nobody is born knowing everything, right?
I currently have this:
[CODE]<body>
<SCRIPT language=”JavaScript”>
<!–
if ((document.body.clientHeight>=500))
{
window.location=”onehighres.html”;
}
else
{
window.location=”onelowres.html”;
}
//–>
</SCRIPT>
</body>
The problem is that I need to add detection to onehighres.html that will detect when document.body.clientHeight changes and then almost instantly display the lowres page instead.
Obviously, if I can roll both lowres and highres versions onto one page that would be much easier to maintain too.
So if anyone could help point me in the right direction with regards to detecting and acting upon document.body.clientHeight changes that would be very much appreciated.
Thanks in advance,
Troy.