Ya se que está tratado en dos hilos, los cuales he visitado y releido, y aun así no he sido capaz de hacerlo funcionar.
Creo que he seguido los pasos al milimetro pero sigue sin funcionar.
Paso a paso:
1º - Me he bajado la última version del Shadowbox
2º - He creado un index.hml con el siguiente código:
CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Prueba</title>
<style type="text/css">
body {background: #FFFFFF; margin: 0; padding: 0; width:100%; height:100%;text-align: center;}
div#boton {margin:0px auto 0 auto; width:0px;}
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var params = {};
params.base=".";
params.allowFullScreen="true";
params.bgColor="#FFFFFF";
swfobject.embedSWF("boton.swf","boton","174","73","9.0.28.0", false, false, params);
</script>
<link href="shadowbox/shadowbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
</head>
<body topmargin="0">
<p align="center">
<div id="boton"><font color="#000000">Necesitas flash para ver esto
</font>
</div></p>
<script type="text/javascript">
function openShadowbox(content, player, title){
Shadowbox.open({
content: content,
player: player,
title: title
});
}
</script>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Prueba</title>
<style type="text/css">
body {background: #FFFFFF; margin: 0; padding: 0; width:100%; height:100%;text-align: center;}
div#boton {margin:0px auto 0 auto; width:0px;}
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var params = {};
params.base=".";
params.allowFullScreen="true";
params.bgColor="#FFFFFF";
swfobject.embedSWF("boton.swf","boton","174","73","9.0.28.0", false, false, params);
</script>
<link href="shadowbox/shadowbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
</head>
<body topmargin="0">
<p align="center">
<div id="boton"><font color="#000000">Necesitas flash para ver esto
</font>
</div></p>
<script type="text/javascript">
function openShadowbox(content, player, title){
Shadowbox.open({
content: content,
player: player,
title: title
});
}
</script>
</body>
</html>
3º - He subido al servidor una carpeta con todos los archivos del shadowbox y el swfobject a la raiz del sitio junto con el fichero swf adjunto al posteo.
4º - En el botón creado, he puesto la siguiente linea siguiento las indicaciónes de los posteos antes nombrados:
CODE
on (release) {
getURL("java script:openShadowbox('http://www.swishmax.es/foros/index.php?', 'player', 'Página Swishmax', '450', '600') ");
}
getURL("java script:openShadowbox('http://www.swishmax.es/foros/index.php?', 'player', 'Página Swishmax', '450', '600') ");
}
(no entiendo por que las etiquetas de código separan "javascript" pero en realidad esta junto.)
Debo de ententer que "player" es el contenedor de la pelicula, si no es así corregirme por favor.
Se supone que con los pasos anteriores deberia de funcionar ¿no? pues mi gozo en un pozo compañeros.
Lo se cancrexo, lo se... dame un pescozon entre oreja y oreja pero dime donde me equivoco por favor.
Un saludo.