Do you want the ad to display on every page in your site?
You should probably ask on the cubecart forums because they are more familiar with it. The question you want to ask is how to place a javascript snippet on every page, not just the index page.
hi thanks for info
i just want to load on index page . the links for the the other pagesdontload it stay on index page . i think so went wrong with the javascript .