if instr(strBannerIDs, "-") > 0 then arrAllBannerIDs = split(strBannerIDs, "-") y = 0 For i = LBound(arrAllBannerIDs) To UBound(arrAllBannerIDs) if isValidID(trim(arrAllBannerIDs(i))) then arrChosenBannerIDs(y) = arrAllBannerIDs(i) y = y + 1 end if Next if y > 0 then randomize response.write "/grafik/affiliate/468x60-" & arrChosenBannerIDs(int(y * rnd)) & ".gif" else randomAll() end if else if isValidID(trim(strBannerIDs)) then response.write "/grafik/affiliate/468x60-" & strBannerIDs & ".gif" else randomAll() end if end if
function isValidID(strBannerID)
isValidID = "false"
if strBannerID <> "" and isNumeric(strBannerID) then if strBannerID > 0 and strBannerID < 10 then 'if strBannerID > 0 and strBannerID < strCountBanners then isValidID = "true" end if end if
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.