Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/09/2012, 18:48
Avatar de flashmax
flashmax
 
Fecha de Ingreso: julio-2012
Ubicación: Bs.As. Argentina
Mensajes: 507
Antigüedad: 12 años, 4 meses
Puntos: 86
Respuesta: Ventana emergente con contenido HTML

Código HTML:
<html>
	<head>
		<meta charset='utf-8'/>
		<title></title>
		<link rel="stylesheet" href="colorbox.css" />
		<script src="jquery.min.js"></script>
		<script src="jquery.colorbox.js"></script>
		<script>
			$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
                $(".inline").colorbox({inline:true, width:"50%"});
				$(".callbacks").colorbox({
					onOpen:function(){ alert('onOpen: colorbox is about to open'); },
					onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
					onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
					onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
					onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
				});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});
		</script>
	</head>
	<body>
		
		<p><a class='inline' href="#inline_content">Abrir formulario</a></p>

		
		<!-- This contains the hidden content for inline calls -->
		<div style='display:none'>
			<div id='inline_content' style='padding:10px; background:#fff;'>
			<p><strong><form action="" method="get">
            <input name="" type="text">
            <input name="" type="text">
            <input name="boton" type="button" value="enviar">
            
            </form></strong></p>
			
			</div>
		</div>
	</body>
</html> 
script completo: http://www.mediafire.com/?6w13ck17j9940pj
__________________
Saludos!
----------------------------------------------------------