Forum Moderators: open
How can I write the iframe code to scroll the page over? I don't have control over the external webpage so I can't use anchor tags.
Thanks,
Matt
A neat way to do this is to nest IFRAMES. Make one IFRAME which contains just a big table with anchors spaced vertically on the left in a 0px column, and one big cell on the right containing another IFRAME - rather large and long - which has your final target page.
You can now use ANCHORS on the first IFRAME to move the second IFRAME.
Your main page
<iframe src="scrollframe.html#40percent" style="width:800px;height:200px"></iframe>
The intermediate page
<body style="margin:0px">
<table style="width:100%" cellpadding="0" cellspacing="0">
<tr>
<td style="width:0px;height:20%"><a name="top"></a></td>
<td rowspan="5">
<iframe src="http://some.other.domain.foo/page" scrolling="no" style="width:100%;height:3000px"><iframe>
</td>
</tr>
<tr><td style="width:0px;height:20%"><a name="20percent"></a></td></tr>
<tr><td style="width:0px;height:20%"><a name="40percent"></a></td></tr>
<tr><td style="width:0px;height:20%"><a name="60percent"></a></td></tr>
<tr><td style="width:0px;height:20%"><a name="80percent"></a></td></tr>
</table>