Jump to content
php.lv forumi

Tuksie elementi galerijaas


Sandis

Recommended Posts

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

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 by Sandis
Link to comment
Share on other sites

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

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 by Sandis
Link to comment
Share on other sites

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 by Sandis
Link to comment
Share on other sites


×
×
  • Create New...