Ich möchte aus dem Modulpacket 1.8 die NeusteBilder Box mit der Ligthbox versehen. Installiert ist die Lightbox schon und funktioniert auch tadellos. Die picofxBox welche bei der Lightbox dabei war wollte ich nun auf die neuseBilder Box übertragen. Nur irgendwie will es nicht so recht.
Kann mir bitte jemand die Lightbox in den Code hinzufügen?, ich bin langsam am verzweifeln.
LG
floogie
<?php //Copyright by Stefan Jungbauer //www.zocker-eppingen.de //V 1.1 defined ('main') or die ( 'no direct access' ); echo '<center><table align="center">'; $erg = db_query("SELECT * FROM prefix_gallery_imgs ORDER BY id DESC LIMIT 3"); while ($row = db_fetch_object($erg) ) { $anz = db_result(db_query("SELECT COUNT(*) FROM prefix_gallery_imgs WHERE id < ".$row->id." AND cat = ".$row->cat),0); echo '<tr><a href="index.php?gallery-show-'.$row->cat.'-p'.$anz.'" onClick="return oeffneFenster('.$anz.','.$row->cat.');" target="_blank"><img src="include/images/gallery/img_thumb_'.$row->id.'.'.$row->endung.'" border="0" alt="'.$row->datei_name.'" title=" " /></a></tr>'; } echo '</table></center>'; ?> <script language="JavaScript" type="text/javascript"> <!-- function oeffneFenster (bildr, cat) { var fenster = window.open ('index.php?gallery-show-'+cat+'-p'+bildr,'showBild','scrollbars=yes,height=600,width={breite},left=200,status=yes'); fenster.focus(); return (false); } // manage div ... document.onmousemove = checkPosition; function checkPosition(e) { if(document.all) { mausX = event.clientX + document.body.scrollLeft; mausY = event.clientY + document.body.scrollTop; } else { mausX = e.pageX; mausY = e.pageY; } } function alertpos(dname) { if (document.layers) { document.layers[0].left = mausX; document.layers[0].top = mausY; } else if (document.getElementById) { document.getElementById(dname).style.left = mausX + "px"; document.getElementById(dname).style.top = mausY + "px"; } document.getElementById(dname).style.display = "inline"; } function hiddpos(dname) { document.getElementById(dname).style.display = "none"; } //--> </script>
verwendete ilchClan Version: 1.1