Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/12/2006, 01:29
Avatar de emajesus
emajesus
 
Fecha de Ingreso: abril-2003
Mensajes: 278
Antigüedad: 22 años
Puntos: 1
Re: Ajax y ASP: básico

He observado esta opción, pero no lo logro:

Utilizo esta expresión pero no me carga la dirección del vídeo:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<script type="text/javascript" language="javascript">
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.title) {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
} else {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
return false;
} else {
return true;
}
}
</script>

<div style="border: 1px solid #999; padding: 1em; margin: 0 0 15px 0;">
<ul>
<li><a onclick="return showPic(this)" href="http://video.google.com/googleplayer...281504&hl=es&l oop=true&playerMode=simple" title="a">semana santa</a></li>
<li><a onclick="return showPic(this)" href="http://video.google.com/googleplayer...097021&hl=es&l oop=true&playerMode=simple" title="b">gatos</a></li>
<li><a onclick="return showPic(this)" href="http://video.google.com/googleplayer...097021&hl=es&l oop=true&playerMode=simple" title="c">perros</a></li>

</ul>


<embed id="placeholder" src="AQUÍ DEBERÍA INCLUIR LA DIRECCIÓN" width="275" height="225" type="application/x-shockwave-flash">
<p id="desc">Elige</p>
</div>
</body>
</html>