Pentiums Posted September 28, 2008 Report Share Posted September 28, 2008 <?php if(!isset($_GET['id']) || $_GET['id'] == '0') { header('Location:?id=1'); } echo '<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Pastnieks</title> </head> <body> <center><iframe name="pastnieks" src="http://paste.php.lv/'.$_GET['id'].'" width="1033" height="763"> </iframe><br><br>'; $mazak = $_GET['id'] - 1; $vairak = $_GET['id'] + 1; echo '<a href="?id='.$mazak.'">'.$mazak.'</a> | <a href="?id='.$vairak.'">'.$vairak.'</a> </center> </body> </html>'; ?> Link to comment Share on other sites More sharing options...
marcis Posted September 28, 2008 Report Share Posted September 28, 2008 Link to comment Share on other sites More sharing options...
bubu Posted September 28, 2008 Report Share Posted September 28, 2008 Nevajag jau uzspiest webservera un php uzlikšanu. Var viegli iztikt ar pliku html+js ;) <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Pastnieks JS</title> <script type="text/javascript"> var id = 7; function next() { document.getElementById("pastnieks").src = "http://paste.php.lv/" + ++id; return false; } function prev() { document.getElementById("pastnieks").src = "http://paste.php.lv/" + --id; return false; } </script> </head> <body> <center> <iframe id="pastnieks" width="1033" height="763"></iframe> <br/><br/> <script "text/javascript">next();</script> <a href="#" onclick="return prev();"><<</a> | <a href="#" onclick="return next();">>></a> </center> </body> </html> Link to comment Share on other sites More sharing options...
waplet Posted September 28, 2008 Report Share Posted September 28, 2008 Nu bubu , js ir grūtāks , tāpēc vieglāk ir uz php uzrakstīt! Link to comment Share on other sites More sharing options...
andrisp Posted September 29, 2008 Report Share Posted September 29, 2008 waplet, nu es neteiktu, ka grūtāks - tikai nedaudz savādāki koncepti. Link to comment Share on other sites More sharing options...
blackhalt Posted September 29, 2008 Report Share Posted September 29, 2008 Man līdzīgs ir arī priekš yy.lv Tikai man tie turpu šurpu ir augšā, pie saitēm ir arī id, lai zinātu kur esi un ir mazinš input lauks, kur ierakstīt tipa `iet uz`. Bez PHP. Vēl tur (kodā) varētu uzmest custom google search mekli. Link to comment Share on other sites More sharing options...
Delfins Posted September 29, 2008 Report Share Posted September 29, 2008 Vispār jau var izmantot FF+Greasemonkey (lādē JS jebkurā weblapā, pat ne savējā). Izvirtības 100% garantētas Link to comment Share on other sites More sharing options...
andrisp Posted September 29, 2008 Report Share Posted September 29, 2008 A jēga tam visam ? :) Link to comment Share on other sites More sharing options...
blackhalt Posted September 29, 2008 Report Share Posted September 29, 2008 Apmēram meklis: http://www.google.com/coop/cse?cx=01375290...455:vg4qcuktzts Link to comment Share on other sites More sharing options...
v3rb0 Posted September 29, 2008 Report Share Posted September 29, 2008 labāk pluginus redaktoriem, kas iezīmēto iepastē iekš paste.php.lv, citādu pastie org jālieto. Link to comment Share on other sites More sharing options...
Klez Posted September 29, 2008 Report Share Posted September 29, 2008 ja jau par to runa, varbuut paste.php.lv admini var paskatiities shito .. http://paste.php.lv/4449 kaut kaada delfu lapa .... atradu izmantojot shito http://www.google.com/coop/cse?cx=01375290...455:vg4qcuktzts :) Link to comment Share on other sites More sharing options...
Recommended Posts