Sandis Posted December 8, 2004 Author Report Share Posted December 8, 2004 Un kaa man uzmeistarot, ka peec peedeejaas bildes apskatiishanaas, uz taas uzklikshkjinot, es nonaaku uz galerijs thumbnailiem, t.i., atveru galeriju->uzklikshinu uz pirmas bildes thumbnaila->atveraas pirmaas bilde->uzklikshjinot uz pirmaas bilde, nokljuusut uz otraas-> taa es eju cauri visaam bildem-> tachu uzklikshkjinot uz peedeejaas bildes, buut vajadziigs, lai lietotajs nonaktu uz atpakalj uz galerijas thumbnailiem! Kaa to pareizaak izdariit? Ar JavaScriopt? Link to comment Share on other sites More sharing options...
Snukzz Posted December 8, 2004 Report Share Posted December 8, 2004 Iecheko sheit: http://www.hotscripts.com/PHP/Scripts_and_...mage_Galleries/ Gan atradiisi ko liidziigu! ;) Link to comment Share on other sites More sharing options...
bubu Posted December 8, 2004 Report Share Posted December 8, 2004 (edited) ... // dabū iekš $id tekošās bildes nr if (++$id == $cnt) { header('Location: thumbnails.php'); die(); } ... // normāls, bildes ar numuru $id, parādīšanas kods Edited December 8, 2004 by bubu Link to comment Share on other sites More sharing options...
Venom Posted December 8, 2004 Report Share Posted December 8, 2004 bubu, no tevis redzēt tādu die() pielietojumu ir gaužām neskaisti bulletproofāks variants tomēŗ iraid: header('Location: thumbnails.php'); die('<meta http-equiv="refresh" content="0; url=thumbnails.php">'); Link to comment Share on other sites More sharing options...
bubu Posted December 8, 2004 Report Share Posted December 8, 2004 Nu nez, es atkal nesaprotu, kāpēc citi domā, ka browseris nesapratīs Location http atribūtu. Link to comment Share on other sites More sharing options...
Venom Posted December 8, 2004 Report Share Posted December 8, 2004 brouzeris jau saprastu saprot, bet bieži pirms tā tiek kaučkas izvadīts, e.g. kods pa vidu bodijam un tad ar header vai nu ņi-ņī, vai nu output_bufferingu jālieto Link to comment Share on other sites More sharing options...
Sandis Posted December 8, 2004 Author Report Share Posted December 8, 2004 (edited) Akotadmandarit!? Unkaamandariit!? Venom, kaads ir Tavs viedoklis!? Un kaa tad es vareetu sakaartot masiiva elementus lapaa- izretinaat un centreet (bez css)-nu, ja pedeejaa rindaa paliek tikai 2 atteeli, tad tos smuki izretina, iecentree... Luudzu, padalieties - iedodiet kaadu kodu, tagu gabalinju... :) Edited December 8, 2004 by Sandis Link to comment Share on other sites More sharing options...
bubu Posted December 8, 2004 Report Share Posted December 8, 2004 Kāpēc tev nepatīk CSS? Link to comment Share on other sites More sharing options...
Sandis Posted December 8, 2004 Author Report Share Posted December 8, 2004 Esmu ap to kjibinaajies, bet es neticu sev, ka es caur css to vareetu izdariit! Link to comment Share on other sites More sharing options...
Snukzz Posted December 8, 2004 Report Share Posted December 8, 2004 paburies manuaali vismaz 30min un pieleeks! Link to comment Share on other sites More sharing options...
Venom Posted December 8, 2004 Report Share Posted December 8, 2004 a man patīk šāda veida risinājumi: <style type="text/css"> .lapa img {display:box;height:100px;float:left} </style> <div class="lapa"> <img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /><img /> </div> Link to comment Share on other sites More sharing options...
Sandis Posted December 8, 2004 Author Report Share Posted December 8, 2004 (edited) Es Tavu variantu, Venom, izmantoju šādi: <style type="text/css"> .lapa img {display:box;height:100px;float:center} </style> ... <div class="lapa"> <? for($x = 0; $x < $hmr; $x++){ $buf .= '<tr>'; $y = $x; for($z = 0; $z < 5; $z++){ if(!$interjers[$_REQUEST["g"]-1][2][$z+($y*5)]){ $im = ''; } else{ $im = '<a href="./index.php?id=3&g='.$_REQUEST["g"].'π='.($z+($y*5)).'"><img src=".'.$GLOBALS["imglib"].'/'.$interjers[$_REQUEST["g"]-1][1].'/'.$interjers[$_REQUEST["g"]-1][3][$z+($y*5)].'" border="0"></a>'; } $buf .= '<td width="600" height="222" align="center" valign="middle">'.$im.'<td>'; } $buf .= '</tr>'; } ?> </div> <? ... Bet, nee, nekust ne no vietas! :( Edited December 8, 2004 by Sandis Link to comment Share on other sites More sharing options...
Venom Posted December 8, 2004 Report Share Posted December 8, 2004 kas nekust un uz kurieni? Link to comment Share on other sites More sharing options...
Snukzz Posted December 8, 2004 Report Share Posted December 8, 2004 manam skjist ka Javaskripc atkal negrib sho to izpildiit! ;) Link to comment Share on other sites More sharing options...
Sandis Posted December 8, 2004 Author Report Share Posted December 8, 2004 (edited) Nu, e saku to, ka, piemeram, pedeja rinda man paliek tikai divas bildes un es taas gribu iecentreet - lai nestaav vienas pashas kreisajaa malaa! Izmeegjinaaju arii Venom variantu - bet chiks! :( Edited December 8, 2004 by Sandis Link to comment Share on other sites More sharing options...
Recommended Posts