27 March 2009

Random Banner On One Area

Setelah hari kemarin saya posting tentang Kumpulan Foto Bugil Adiknya Miyabi HOT dan Download Video Porno Bokep Bugil 3gp Gratis Laris, maka hari ini saya akan update Random Banner On One Area.

actually create ads (Banner) a display in one area is not too difficult, we only refer only to the location of the picture, but the problem so what if we have 10 advertisers who want to display in one location area, this is the main obstacle to be manager ad.

With Javascript sample code:


<script LANGUAGE="JavaScript">
<- Begin
number_ads var = 3;
var waktu_sekarang = new Date ()
var seconds = waktu_sekarang.getSeconds ()
var seconds = pairs_ad % number_ads;
pairs_ad + = 1;
if (pairs_ad == 1) (
txt = "Write the Title";
url = "Address URL";
alt = "Address URL";
banner = "Image URL Address";
width = "468";
height = "60";
)
if (pairs_ad == 2) (
txt = "Write the Title";
url = "Address URL";
alt = "Address URL";
banner = "Image URL Address";
width = "468";
height = "60";
)
if (pairs_ad == 3) (
txt = "Write the Title";
url = "Address URL";
alt = "Address URL";
banner = "Image URL Address";
width = "468";
height = "60";
)
document.write ( '<center>');
document.write ( '<a href=\"' + url +'\" target=\"_top\">');
document.write ( '<img src = \ "' + banner + '\" width =')
document.write (width + 'height =' + height + '');
document.write ( 'alt = \ "' + alt + '\" border = 0> <br>');
document.write ( '<small>' + txt + '</ small> </ a>');
document.write ( '</ center>');
/ / End ->
</ SCRIPT>


Description:

If you want to increase the amount of live ads only add to its script code, the above example we have 3 the number of ads that are displayed, if the plan to add 1 more ads also do not forget to add new value to 4, begitupun onwards. See example code below:

if (pairs_ad == 4) (
txt = "Write the Title";
url = "Address URL";
alt = "Address URL";
banner = "Image URL Address";
width = "468";
height = "60";
)

Oops almost forgot, do not forget to add the total number of ads that are displayed, For example:

jumlah_iklan var = 4;

Happy Testing


No comments:

Post a Comment