calvinc
Junior Member
Posts: 5
Registered: 8/12/2005
Member Is Offline
|
| posted on 12/2/2005 at 06:24 AM |
|
|
Scroller PRO & Google Adsense
I have been having problems with Scroller PRO intermittently not working on my site. I have finally had someone isolate the problem to an
incompatability with Google AdSense banners.
An extract of the solution I was given is as follows:
what is causeing the error is the statement
if(f[k].name!=tspm)
in /tsp_files/scroll.dom.js of your site.
f is set to document.frames shortly before,
and its always with k=3
the problem is that your scroller uses IFrames
and You also have an IFrame from your google ads on your page.
the code for your scroller goes over all the Frames in the document thus reaching the GoogleAds Iframe
and crashes.
Assuming You always have the same structure you can modify the code
in in /tsp_files/scroll.dom.js
and change
while(k<f.length)
to
while (k<f.length-1)
The problem I have is that the Google AdSense is only one of a few banner ads that are displayed on a rotating basis. So if I change the above (which
I did to test it), it works when the AdSense banner is displayed, but not when other banners are displayed.
What is the solution?
For reference, the site is http://www.miningreference.com
Thanks,
Calvin
|
|
|
|