Menu
Hi,
I have a page with 2 iframes in (presumably at the same hierarchical level). I need to control iframe called “main” from the iframe called “menu’.
The code that I have so far is below with the lines that I think need changing highlighted in [B]bold
<script language=”JavaScript”>
function scroller(xval)
{
[B]var i = main.document.body.scrollLeft;
var speed = 15;
if (i < xval)
{
while (i <= xval)
{
i+=speed;
[B]main.scrollTo(i, 0);[/B]
}
}
else
{
while (i >= xval)
{
i-=speed;
[B]main.scrollTo(i, 0);[/B]
}
}
}
</script>
Many thanks in advance