KpC Posted June 14, 2009 Report Share Posted June 14, 2009 (edited) Man ir nepieciešams skripts, kurš ir apmēram šāds: openside("Reklāma"); echo <<<HTML $random (1,3) if($random == 1) { echo <<<HTML <a href='http://manslinks.lv'><img src='http://mansliks.lv/banneris1.gif'></a> HTML; } elseif($random == 2) { echo <<<HTML <a href='http://manslinks2.lv'><img src='http://mansliks.lv/banneris2.gif'></a> HTML; } elseif($random == 3) { echo <<<HTML <a href='http://manslinks3.lv'><img src='http://mansliks.lv/banneris3.gif'></a> HTML; } HTML; } closeside(); Zinu, ka kods ir nepareiz, bet man vajag, lai strādā. Kas un kur jāmaina? Edited June 14, 2009 by KpC Link to comment Share on other sites More sharing options...
tipa elvis Posted June 14, 2009 Report Share Posted June 14, 2009 <script> gfx0="banneris1.gif"; lnk0="lapa1.php"; alt0="kruta lapa 1"; txt0="Tags 1"; gfx1="banneris2.gif"; lnk1="lapa2.php"; alt1="kruta lapa 2"; txt1="Tags 2"; gfx2="banners3.gif"; lnk2="lapa3.php"; alt2="kruta lapa 3"; txt2="Tags 3"; len=3; // cik kopā banneri today=new Date(); today=today.getTime()/10; 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> Link to comment Share on other sites More sharing options...
KpC Posted June 15, 2009 Author Report Share Posted June 15, 2009 Man vajag evis jauu skriptu, bet salabot šo skriptu lai viņš iet... Link to comment Share on other sites More sharing options...
tipa elvis Posted June 15, 2009 Report Share Posted June 15, 2009 (edited) [reply] Man ir nepieciešams skripts, kurš ir apmēram šāds: [/reply] izvēlīgs gan XD , scripts ko es devu ir apmēram tāds! , neesmu nekāds lielais koderis tādēļ tavu scriptu salabot nevarēšu. Edited June 15, 2009 by tipa elvis Link to comment Share on other sites More sharing options...
KpC Posted June 15, 2009 Author Report Share Posted June 15, 2009 Vispār varēji paskatīties kodu.. Es nevaru lai tur izmet wos baneri 468x60, jo tam ir jāraksta evis <a href... bet <script... Link to comment Share on other sites More sharing options...
Invisible Shadow Posted June 15, 2009 Report Share Posted June 15, 2009 Nezinu, kā Tavu kodu izlabot, bet vienā forumā vakar prasīju šādu jautājumu, un man iedeva skriptu <? $banners = array( (object)array( 'title' => 'Baneris 1', 'image' => '/images/baneris1.jpg', 'url' => '/forums', 'blank' => false ), (object)array( 'title' => 'Baneris 1', 'image' => '/img/baneris2.gif', 'url' => 'http://domens.lv', 'blank' => true ) ); $banner = $banners[array_rand($banners)]; printf('<a href="%s"%s><img src="%s" alt="%s" /></a>', $banner->url, $banner->blank===true ? ' onclick="window.open(this.href); return false;"' : '', $banner->image, $banner->title); ?> Tikai pat es nezinu, vai viņš iet, savā webā nevaru uploadot un izmantot, testēt utt. Link to comment Share on other sites More sharing options...
KpC Posted June 15, 2009 Author Report Share Posted June 15, 2009 Izlasi manu iepriekšējo post.. :/ Link to comment Share on other sites More sharing options...
tipa elvis Posted June 15, 2009 Report Share Posted June 15, 2009 no wos bannera vispar maza jēga , jo viņš riktīgi tormazī lapu + ja wos netrādā tev lapa pakars + wos'ā viss iet uz kredītu sūtīšanu , pat ja 100 cilvēki tev nobalsos pa nedēļu tas būš piliens jūrā! Link to comment Share on other sites More sharing options...
KpC Posted June 15, 2009 Author Report Share Posted June 15, 2009 Bet man vajag arī 468x60.l* bannerus izvietot Link to comment Share on other sites More sharing options...
tipa elvis Posted June 15, 2009 Report Share Posted June 15, 2009 takš vienkārši pievieno klāt width='468' hight='60' Link to comment Share on other sites More sharing options...
KpC Posted June 15, 2009 Author Report Share Posted June 15, 2009 tipa_elvi, tu nesaproti, ka 468x60.lv ir mājaslapa, kur arī tiek izmantots <script... Link to comment Share on other sites More sharing options...
tipa elvis Posted June 15, 2009 Report Share Posted June 15, 2009 ā neiebraucu nu tad nekā , tas bija viss kas manos spēkos. paprasi "php.l*" tur tev palīdzēs Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now