Zitat:
Original geschrieben von ZerOHacke
Hi,
Mein Problem konnte ich noch immer nicht lösen
Aktuell sieht der Code so aus:
PHP-Code:
/Hersteller gewaehlt => anzeigen
$sql = "SELECT * FROM artikel WHERE Hersteller = '$hersteller'";
$result = mysql_query($sql);
echo mysql_error();
while($row = mysql_fetch_assoc($result))
{
echo '<script type="text/javascript">';
echo '{location.href="'.$row['Bild'].'" rel="lightbox[bla]";}';
echo '</script>';
}
Problem: Die JS Funktion klappt nicht, keine weiterleitung..
lg,
Michael
|
also auf der lightbox hp stehe folgendes:
Zitat:
If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:
image #1
image #2
image #3
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
|
daher verstehe ich dein
PHP-Code:
echo '{location.href="'.$row['Bild'].'" rel="lightbox[bla]";}';
nicht. wenn die bilder nicht im selben pfad sind, wie das php script, wird das schon mal so anscheinend nicht klappen. jeder hersteller hat sicher auch eine id, würde diese zusätzlich auslesen und den bildern als lightbox gruppennamen zuweisen.
hoffe ich konnte helfen
