I have 3 banners being displayed but I dont want to display the same one twice how would i go abot that.
here is my code
Thanx aj
banpic = new Array();
banurl = new Array();
banpic[1]="banpic[2]="banpic[3]="banpic[4]="banpic[5]="banpic[6]="
banurl[1]="banurl[2]="banurl[3]="banurl[4]="banurl[5]="banurl[6]="
function getban(){
var language = document.all ? navigator.userLanguage : navigator.language;
lang=0;
if( language && language.indexOf( "nl" ) != -1 ){
lang=3;
}
if(lang == 0){
banpicnum=rand(banpic.length-1);
return("<a href=javascript:banlink('"+banurl[banpicnum]+"')><img border=0 vspace=0 hspace=0 src="+banpic[banpicnum]+"></a>"
}
if(lang == 3){
banpicnum=rand(banpic_nl.length-1);
return("<a href=javascript:banlink('"+banurl_nl[banpicnum]+"')><img border=0 vspace=0 hspace=0 src="+banpic_nl[banpicnum]+"></a>"
}
calling banner function
<script>document.write(getban())</script>
here is my code
Thanx aj
banpic = new Array();
banurl = new Array();
banpic[1]="banpic[2]="banpic[3]="banpic[4]="banpic[5]="banpic[6]="
banurl[1]="banurl[2]="banurl[3]="banurl[4]="banurl[5]="banurl[6]="
function getban(){
var language = document.all ? navigator.userLanguage : navigator.language;
lang=0;
if( language && language.indexOf( "nl" ) != -1 ){
lang=3;
}
if(lang == 0){
banpicnum=rand(banpic.length-1);
return("<a href=javascript:banlink('"+banurl[banpicnum]+"')><img border=0 vspace=0 hspace=0 src="+banpic[banpicnum]+"></a>"
}
if(lang == 3){
banpicnum=rand(banpic_nl.length-1);
return("<a href=javascript:banlink('"+banurl_nl[banpicnum]+"')><img border=0 vspace=0 hspace=0 src="+banpic_nl[banpicnum]+"></a>"
}
calling banner function
<script>document.write(getban())</script>