El script que usamos es este:
Código:
Pero por supuesto que no esta funcionando bien... // FUNCION ABRIR VENTANA-POPUP //------------------------------------------------------ function Abrir_ventana($pagina) { $opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=420, height=300, top=85, left=140"; window.open($pagina,"",$opciones); } //LO QUE HAGO ES QUE AL PASAR EL MOUSE POR LA IMAGEN Y HACIENDO 'CLICK' EN ELLA, APARECE EL DETALLE DEL DEPORTE. // LO QUE QUIERO ES QUE APAREZCA EL DETALLE EN UN POPUP, Y NO ME SALE //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if ($opcion <> 0) { $q = 'SELECT * FROM deporte WHERE categoria_deporte=' . $opcion; }else $q = 'SELECT * FROM deporte'; $r = mysql_query($q); $fila = 1; while ( $row = mysql_fetch_array($r) ){ $lnkmodificar_deporte = 'detalle_deporte.php?id_deporte=' . $row['id_deporte']; if ($fila % 2 != 0) { $color_fila = "#98B8D8"; // IMPAR } else { $color_fila = "#7295DC"; // PAR } echo '<tr bgcolor=' . $color_fila . '>'; $bd = new Bd; $bd->AbrirBd("iccmdp_iic"); $array_foto = $bd->consultar_foto($row['id_deporte']); $nombre_foto = $array_foto['nombre_nuevo']; //ACA COLOCO LA FOTO, Y CREO QUE DEBERIA IR EL POPUP echo '<td><a href=' . $lnkmodificar_deporte . '>' . '<img src="' . 'img_deporte/' . $nombre_foto .'" width="50" height="50" </a></td>';
Algun error que uds vean?
Sugerencia?
Muchas gracias por su ayuda.