Foros del Web » Creando para Internet » Flash y Actionscript »

Problema para cargar Flash externo desde otro dominio (no secure)

Estas en el tema de Problema para cargar Flash externo desde otro dominio (no secure) en el foro de Flash y Actionscript en Foros del Web. Hola! Un amigo tiene un problema para cargar desde un dominio externo un flash que servirá para mostrar un banner flash expandible. El Javascript es ...
  #1 (permalink)  
Antiguo 25/06/2009, 15:45
Avatar de ZMaster  
Fecha de Ingreso: septiembre-2005
Mensajes: 47
Antigüedad: 18 años, 7 meses
Puntos: 0
Problema para cargar Flash externo desde otro dominio (no secure)

Hola!

Un amigo tiene un problema para cargar desde un dominio externo un flash que servirá para mostrar un banner flash expandible. El Javascript es el siguiente:

// JavaScript Document

function ads_init( div, main, child, w, mh, ch, url )
{
var obj = document.getElementById( div + "_main" );
if( obj == null )
{
var obj = document.getElementById( div );
var embed_main = '<embed src="' + main + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + mh + '" flashvars="posicion=' + div + '&clickTAG=' + url + '&padre=' + main + '&hijo=' + child + '"></embed>';
var embed_child = '<embed src="' + child + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + ch + '" flashvars="posicion=' + div + '&clickTAG=' + url + '"></embed>';
htmlcode = "<div id='" + div + "_main' style='display:block;'>" + embed_main + "</div><div id='" + div + "_child' style='display:none;'>" + embed_child + "</div>";
// alert(htmlcode);
obj.innerHTML = htmlcode;
}
}

function ads_show( div )
{
var main = document.getElementById( div + "_main" );
var child = document.getElementById( div + "_child" );

main.style.display = "none";
child.style.display = "block";
}

function ads_hide( div )
{
var main = document.getElementById( div + "_main" );
var child = document.getElementById( div + "_child" );

main.style.display = "block";
child.style.display = "none";
}

Hay algún maestro de verdad que pueda ayudarnos????
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 16:27.