User
Pass
2FA
 
 

schimbare de baner

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message1633
Criminalul-X
[Banned user]


Banned


Status: Offline
(since 20-02-2008 18:22)
Joined: 22 Sep 2007
Posts: 371, Topics: 49
Location: fun.freakz.ro

Reputation: 135.2
Votes: 10

 
Post Posted: 29-01-2008, 18:24:30 | Translate post to: ... (Click for more languages)

am nevoie de un "script" in care sa pun imaginea si linku siteului unde sa se duca .. - imaginile sunt 468x60 si vreau ceva in genu :

intru pe site si imi arata reclama x , daca dau refresh imi arata reclama z , daca mai dau refres imi arata reclama y ... si tot asa - momentan decat pt 2 img imi trebuiesc .. - si cand apas pe acea imagine vreau sa ma duca la un site ... si tot asa - care poate face?

Code:

<SCRIPT>

gfx0="banner1.gif";
lnk0="page1.html";
alt0="Alt code 1";
txt0="Tagline 1";

gfx1="banner1.gif";
lnk1="page2.html";
alt1="Alt code 2";
txt1="Tagline 2";

len=2;  // change to equal number of banners



today=new Date();
today=today.getTime()/1
rnd=today%len;
document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');

</SCRIPT>


am editat eu unu dar eu vreau sa le ia la rand, adik nu sa arate de 10 ori banner 2 si odata banner 1 ... vreau odata ala odata ala ...


-=>Premii !
-=>Unban/Banati !
-=>Regulament fun.freakz.ro !
-=>Preturi Admine/XP & Admini Serverului

Contact YM: x_criminalul !

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 29-01-2008, 20:38:15 | Translate post to: ... (Click for more languages)

Ca sa le ia la rand, ar insemna sa salvezi ceva informatii pe computerul vizitatorului, asta o poti face doar prin cookie-uri. Seteaza un cookie cu 2 valori, odata 1, odata 2. In functie de valoarea din cookie afiseaza un anumit banner, apoi schimba valoarea..

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 03-12-2024, 08:02:26
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x