Using Javascript for Responsive Banner
Permalink
I am a designer, not a developer, and need help getting an html block to display javascript. I want to use a responsive banner from Amazon.com, and the only responsive banners use javascript. Here is the HTML for the responsive banner I want to use.
<div class="alignleft">
<script type='text/javascript'>
amzn_assoc_ad_type = 'banner';
amzn_assoc_tracking_id = 'kendapublil01-20';
amzn_assoc_marketplace = 'amazon';
amzn_assoc_region = 'US';
amzn_assoc_placement = 'assoc_banner_placement_default';
amzn_assoc_linkid = 'LRSEX2GZ4MSKKHQ6';
amzn_assoc_campaigns = 'books';
amzn_assoc_banner_type = 'category';
amzn_assoc_isresponsive = 'true';
</script>
<script src='//z-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1'></script>
</div>
When I add that alone to an HTML block, it comes up blank. Suggestions to make it display correctly?
<div class="alignleft">
<script type='text/javascript'>
amzn_assoc_ad_type = 'banner';
amzn_assoc_tracking_id = 'kendapublil01-20';
amzn_assoc_marketplace = 'amazon';
amzn_assoc_region = 'US';
amzn_assoc_placement = 'assoc_banner_placement_default';
amzn_assoc_linkid = 'LRSEX2GZ4MSKKHQ6';
amzn_assoc_campaigns = 'books';
amzn_assoc_banner_type = 'category';
amzn_assoc_isresponsive = 'true';
</script>
<script src='//z-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1'></script>
</div>
When I add that alone to an HTML block, it comes up blank. Suggestions to make it display correctly?
Can you provide a link to the page that contains this?
http://69.195.124.148/~kendalp2/
The banner should be at the bottom of the page, just above a similar Planet Green banner. I was using an iframe, but need a responsive banner for the site.
The banner should be at the bottom of the page, just above a similar Planet Green banner. I was using an iframe, but need a responsive banner for the site.
The code that you listed in this ticket doesn't appear on the page anywhere, did the HTML block save with that in it and the page get published?
I removed the block since it wasn't displaying correctly, but have now added it back in.
I have copy and pasted your exact same ad code into three different instances of websites that I have here and it works perfectly in all of them (2 Concrete5 sites and one plain HTML page).
Is it possible that the ad won't load on a website that doesn't have a URL, just an IP Address? I don't know how to find the rules on those ads, but that would be my best guess.
Is it possible that the ad won't load on a website that doesn't have a URL, just an IP Address? I don't know how to find the rules on those ads, but that would be my best guess.
That is certainly a possibility. I appreciate your help on this!