Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/10/2012, 20:02
mirza
 
Fecha de Ingreso: octubre-2012
Mensajes: 77
Antigüedad: 11 años, 6 meses
Puntos: 1
Problema con Galeria de imagenes y marco flotante

Que Tal Gente

Tengo una pagina principal, y dentro un marco flotante con una galeria de imagenes, como hago para que cuando hago click en la imagen se abra en la pagina principal y no en el marco?

Se que hay que poner un target="_parent" pero no se donde

Ejemplo en la Web, estan las dos maneras con el iframe y sin el iframe:
http://indarte.com.uy/extra/simplegallery/resultados_2remateconjunto.htm

Ejemplo en Imagenes:
http://subirimagenes.net/show-image.php?id=f455cbe1fa59d9b680d49ddf74785b4a

Nose si hay que cambiar alguna linea en este archivo:
http://indarte.com.uy/extra/simplegallery/js/simplegallery.js

o en este:
Código:
require_once("../inc/functions.php");

if(isset($_POST['action'])) {
	$gallery_folder = "../gallery/";
	$sg_path = $_POST['sg_path'];
	$sg_main_category = $_POST['sg_main_category'];
	$sg_twidth = $_POST['sg_twidth'];
	$sg_theight = $_POST['sg_theight'];
	if($_POST['action']=="loadData") {
		$crumbs = get_crumbs($gallery_folder, $sg_main_category);
		$dirs = get_dirs($gallery_folder);
		$images = get_images($gallery_folder);
	} else 
	if($_POST['action']=="changeDir") {
		$newdir = $_POST['newdir'];
		$crumbs = get_crumbs($newdir, $sg_main_category);
		$dirs = get_dirs($newdir);
		$images = get_images($newdir);
	}
	if($sg_path=='') {
		echo '<script type="text/javascript" src="js/fancybox/jquery.fancybox.js?v=2.0.6"></script>';
		echo '<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />';
		echo '<link rel="stylesheet" type="text/css" href="js/fancybox/jquery.fancybox.css?v=2.0.6" media="screen" />';
	} else {
		echo '<script type="text/javascript" src="'.$sg_path.'/js/fancybox/jquery.fancybox.js?v=2.0.6"></script>';
		echo '<link rel="stylesheet" type="text/css" href="'.$sg_path.'/css/style.css" media="screen" />';
		echo '<link rel="stylesheet" type="text/css" href="'.$sg_path.'/js/fancybox/jquery.fancybox.css?v=2.0.6" media="screen" />';
	}
	if($_POST['action']=="changeDir") {
		echo '<script>sg_reload("'.$sg_path.'", "'.$sg_main_category.'", "'.$sg_twidth.'", "'.$sg_theight.'");</script>';
	}
	if($crumbs) {
		$i=1;
		echo '<ul id="sg_crumbs">';
		foreach($crumbs as $value) {
			if($i==count($crumbs)) {
				echo '<li class="current" id="'.$value['path'].'">'.$value['name'].'</li>';
				$currentDir = $value['name'];
			} else {
				echo '<li id="'.$value['path'].'">'.$value['name'].'</li>';
			}
			$i++;
		}
		echo '</ul>';
	}
	if($dirs) {
		$i=1;
		echo '<ul id="sg_dirs">';
		foreach($dirs as $value) {
			if($i==count($dirs)) {
				echo '<li class="last" id="'.$value['path'].'">'.$value['name'].'</li>';
			} else {
				echo '<li id="'.$value['path'].'">'.$value['name'].'</li>';
			}
			$i++;
		}
		echo '</ul>';
	}
	if($images) {
		echo '<ul id="sg_images">';
		foreach($images as $value) {
			if($sg_path=='') {
				echo '<li><a href="inc/img.php?i='.$value.'" rel="'.$currentDir.'" title=""><img src="inc/img.php?c='.$value.'&w='.$sg_twidth.'&h='.$sg_theight.'"></a></li>';
			} else {
				echo '<li><a href="'.$sg_path.'/inc/img.php?i='.$value.'" rel="'.$currentDir.'" title=""><img src="'.$sg_path.'/inc/img.php?c='.$value.'&w='.$sg_twidth.'&h='.$sg_theight.'"></a></li>';
			}
		}
		echo '</ul>';
	}
	echo '<div style="clear:both;"></div>';


Gracias por la ayuda