In trying to find a solution to make iWEb snippet work I have copied this from the internet as an iframe alternative to the HTML snippet. This issue is causing me such a headache, and i feel close to just giving up on the idea, there are so many out there with the same problem and same anguish........
To display a remote webpage in an iWeb webpage, you use the HTML Snippet with the <iframe> HTML element.It's a line of code with a lot of attributes :
<iframe src="http://url.to.file.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>
iWeb uses an separate file, widget0-markup.html, to display that remote page.And since the HTML Snippet itself is an <iframe> it's double. To avoid that you can use a JavaScript that replaces the widget0-markup.html with another file, be it a webpage or an image.
Here's the code you paste :
<div style="width: 650px; height: 650px">
<script language="JavaScript">
location.replace('../../../your files.html');
</script>
</div>
Use three sets of ../ to escape from the folder with the Sitename if you use a relative URL, Use "/url-to-file", when using a relative to root URL or use an absolute URL to the remote file.
The <div> is used to define the size of the HTML Snippet. It is assumed that the file doesn't have to scroll inside the HTML Snippet.
Now, assuming that this is the method to use what do I have to add to make sure this code works when published. Here is some HTML code that i am using, what will it look like with the code added?
<iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=shopinmystor-21&o=2&p=8&l=as1&asins=B0044WWYN6 &ref=tf_til&fc1=000000&IS2=1<1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFF F&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>