more sophisticated code
Posted: Sat Nov 01, 2014 5:48 pm
Been working with XML a bit more and I found something that might have some potential
this the right idea?
Code: Select all
// http://www.amazon.com/dp/YOUR10DIGITASIN
var xmlhttp = new XMLHttpRequest();
var url = "http://www.amazon.com/dp/" + AISN
xmlhttp.open("GET", url, true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
temp = '<iframe src="http://rcm-na.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=cpa07-20&o=1&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=';
temp += AISN;
temp += '" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>';
document.write(temp+='\n');
}
}