Skip navigation

iWeb Snippets for Amazon HTML - does this work ?

349 Views 5 Replies Latest reply: Jan 29, 2013 10:40 AM by Jeff Nitschke RSS
HandiEworker Calculating status...
Currently Being Moderated
Jan 29, 2013 8:13 AM

I have no clue about HTML I am looking for a simple solution for using iWeb snippets to load HTML from Amazon affiliate, so that I can sell stuff from my

web site through them. I am sure there are others like me who want the same ending. This is what I have found out....

 

To display a remote webpage  (Amazon page)in an iWeb webpage, you use the HTML Snippet with the <iframe> HTML element.

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 is an example, the bold text is Javascript and the iframe is that from Amazon.

<iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=shoinmysto-21&o=2&p=8&l=as1&asins=1936078287&I S1=1&ref=tf_til&fc1=000000&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF& f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

<div style="width: 125px; height: 245px"><script language="JavaScript">location.replace('../../../your files.html');

</script></div>

 

Aparently you 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.Now, if there is a truth in this solution, here is my dilema.

My site is www.shopinmystore.org.uk and the page I want this to happen on is called ourstore, here is the url for this http://www.shopinmystore.org.uk/Our_store.html . so for each snippet I am using is this the soloution ( I dont have three ../)?

<iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=shoinmysto-21&o=2&p=8&l=as1&asins=1936078287&I S1=1&ref=tf_til&fc1=000000&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF& f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

<div style="width: 125px; height: 245px">

<script language="JavaScript">

location.replace('http://www.shopinmystore.org.uk/Our_store.html/');


</script>


</div>

 

I would be so grateful to anyone who replies

Mac OS X (10.7.3), iWeb 09

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.