Log in

View Full Version : Javascript banners not working


kevcj
08-12-2011, 08:00 PM
What would cause a javascript banner to work in a basic html page, but not in vbulletin ad_location?

A thread over at vbulletin.com suggested that I add these codes around the script

<vb:literal>

js code

</vb:literal>

but the banner still is not working.

BirdOPrey5
08-14-2011, 08:44 PM
My guess would be a conflict with existing vbulletin javascript. Your browser should have a way to report the exact javascript errors- that would be a start.

kevcj
08-15-2011, 12:35 PM
My guess would be a conflict with existing vbulletin javascript. Your browser should have a way to report the exact javascript errors- that would be a start.

Thank you, but we have been using javascript banners for a long time. We changed the code, and now the banners do not work.

Why would one javascript banner work in vbulletin, and not another?

Iframe banners are working, just not the new javascript banners

BirdOPrey5
08-15-2011, 01:56 PM
Thank you, but we have been using javascript banners for a long time. We changed the code, and now the banners do not work.

Why would one javascript banner work in vbulletin, and not another?

Iframe banners are working, just not the new javascript banners

It's the nature of a conflict- one little change could cause (or fix) it. What did you change that now it doesn't work?

IFRAMES don't use javascript so they would be immune to conflicts on your page.

Can't attempt to diagnose it any further without whatever error(s) the javascript engine is reporting.