Quote:
Originally Posted by patrick91
Hey,
Is it possible to put the code in de default option in vB4 that advertising option and adsense!???
|
A small little change but it should work, though I have not tested it...
changes / additions in bold
Code:
...
var whichImage = Math.round(Math.random()*p);
function showImage(){
if (whichImage == p)
document.write(google_adsense_code_here);
else
document.write('<div align="center"><img src="'+theImages[whichImage]+'" border="0" alt="{vb:raw vboptions.bbtitle}" /></a></div>');
}
// End -->
...
what it does is allows the random number to include 1 higher than the index of the array, then it checks if that number IS outside the array and prints the google adsense code, otherwise just prints the regular image
Again, I have NOT tested this.