JAKuT Posted August 8, 2008 Report Share Posted August 8, 2008 Es gribetu, uzzinat kaa tas izdarams? Un vai kads, varetu iedot tadu php kodu :/ majas, lapa piem ir kadi 7 header, un kad majas lapu atjauno tad galvena foto augsa, mainas.. un uzspiezot, kadu citu menu ari nomainas.. lidzigi taka gamerx.lv .... tas kaa piem es netaisos neko kopet, vnk lot vajag tadu kodu, prieks citas. lietas P.S Cerams, ka iedosiet, un jau ieprieks, pateicos. Link to comment Share on other sites More sharing options...
Norek Posted August 8, 2008 Report Share Posted August 8, 2008 Es Tevi nesaprotu. Tev tikai barot un barot, a pašam sajēgas nekādas. Kā būtu, ja Tu pats kaut nedaudz pamācītos ? Nebūtu tik daudz stulbu jautājumu. ja Tev ir septiņas bildes, nosauc 1-7.jpg un pie bildes ielādes lādē rand(1,7).jpg P.S. ja nezini, kas ir rand, ej un izlasi lv.php.net Link to comment Share on other sites More sharing options...
wap1337 Posted August 8, 2008 Report Share Posted August 8, 2008 ar rand, vnk tad echo mainīgo! Link to comment Share on other sites More sharing options...
JAKuT Posted August 8, 2008 Author Report Share Posted August 8, 2008 Uztaisiju PHP <?php $pict_rand = rand(1,3); print "<IMG SRC=\"images/header/".$pict_rand.".jpg\">"; ?> saliku, mape images/header bildes 3 1.jpg 2.jpg 3.jpg bildi nerada vienalga Links: http://uocs.inetfactory.com/images/header/header.php Link to comment Share on other sites More sharing options...
brazer Posted August 8, 2008 Report Share Posted August 8, 2008 http://uocs.inetfactory.com/images/header/images/header/1.jpg Link to comment Share on other sites More sharing options...
Norek Posted August 8, 2008 Report Share Posted August 8, 2008 PHP <?php $pict_rand = rand(1,3); print '<IMG SRC="images/header/'.$pict_rand.'.jpg" alt="" />'; ?> Link to comment Share on other sites More sharing options...
JAKuT Posted August 8, 2008 Author Report Share Posted August 8, 2008 Vienalga, nerada bildi Link to comment Share on other sites More sharing options...
Norek Posted August 8, 2008 Report Share Posted August 8, 2008 A kapēc Tu norādi images/header , ja Tev pats header.php ir iekš images/header ? bildei, kas nerāda, esi paskatījies properties, no kurienes tā tiek ņemta ? Link to comment Share on other sites More sharing options...
JAKuT Posted August 8, 2008 Author Report Share Posted August 8, 2008 Viss, uztaisiju, var veert ciet Liels Paldies, jums visiem Link to comment Share on other sites More sharing options...
Recommended Posts