Hi,

Need some help regarding the google ads code conflict with otherJS. Actually I am using the below JS in my webpage to randomly rotate some content.


[I][I]<div id = "myDiv0" style="display:none">ABC0</div>
<div id = "myDiv1" style="display:none">ABC1</div>
<div id = "myDiv2" style="display:none">ABC2</div>
<div id = "myDiv3" style="display:none">ABC3</div>
<div id = "myDiv4" style="display:none">ABC4</div>
<div id = "myDiv5" style="display:none">ABC5</div>
<div id = "myDiv6" style="display:none">ABC6</div>

<script type = "text/javascript">

var numberOfDivs = 7; // or however many

window.onload = function() {
var list = [];
for (var i = 0; i < numberOfDivs; i++) {
list [i] = i;
}
shuffle(list);
alert (list); // for testing

for (var i = 0; i < 4; i++) { // show 4 out of 7
document.getElementById(["myDiv"+ list[i]]).style.display="block";
}
}

shuffle = function(v){
for(var j, x, i = v.length; i; j = parseInt(Math.random() * i), x = v[--i], v = v[j], v[j] = x);
return v;
}
</script>



Now whenever I insert google ads code in my webpage above content got hidden automatically.

Any Suggestions? Thanks...