Foros del Web » Programando para Internet » Javascript »

duda iframe + lytebox.

Estas en el tema de duda iframe + lytebox. en el foro de Javascript en Foros del Web. Hola, he creado un contenido para que la gente se lo ponga en su web a través de un iframe. El problema que tengo es ...
  #1 (permalink)  
Antiguo 27/10/2010, 10:24
 
Fecha de Ingreso: abril-2003
Ubicación: Valencia
Mensajes: 223
Antigüedad: 21 años, 1 mes
Puntos: 7
duda iframe + lytebox.

Hola,

he creado un contenido para que la gente se lo ponga en su web a través de un iframe. El problema que tengo es que hay enlaces que quiero abrir a través de lytebox.

Según la web de lytebox, ...

Cita:
iFrames: If you plan to use Lytebox in an iFrame environment, then you need to include lytebox.css in the parent document, while including lytebox.js in the iFrame document.
y de otra web he encontrado esto...

Cita:
Inserting Lytebox into an iframe:
If you require to use Lytebox within an iframe you only have to put the header code in differently.

1. On the page that holds the iframe you only put the code below into the header.
<link rel="stylesheet" href="lytebox.css" type="text/css" media="screen"/>

2. On the page that is going into the iframe you only put the code below into the header.
<script type="text/javascript" src="lytebox.js"></script>
Al ser para otras webs, me gustaria hacer algo parecido sin que tengan que tocar el head de su página web. ¿Se puede hacer?

Haciendo un iframe normal y target="_blank" consigo un codigo de "copia y pega este código donde quieras que aparezca el contenido".

Cuanto más facil mejor y con un unico copia y pega, mejor.

saludos

Etiquetas: iframe
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:01.