Welcome Guest [Log In] [Register]
Viewing Single Post From: Ad System v1
Eureka
Member
[ *  *  * ]
Heya Nuke,
For the arrays, you can do something like this:
Code:
 

<script>
var eArray=[];
eArray[eArray.length] = ["LINK_URL_1", "IMG_URL_1"];
eArray[eArray.length] = ["LINK_URL_2", "IMG_URL_2"];
// so on and so forth.
// here's the loop that go through them. The string will be stored in var ads;
var ads="";
for (e=0; e<eArray.length; e++) ads+="<a href='"+eArray[e][0]+"'><img src='"+eArray[e][1]+"' /></a>";
// optional
document.write(ads);
</script>


What do you think? Yes?

Eureka
Offline Profile Quote Post
Ad System v1 · User Created Codes