Problemas com arquivos .swf

1 resposta
M

Pessoal, minha página exibe vários objetos flash (.swf) e quando passo o mouse por cima ele cria uma borda em volta do objeto e aparece um hint “clique para ativar e usar este controle”.

Pesquisando no pai google, achei 2 soluções, 1ª onde tenha que fazer update do IE e a 2ª cria-se um .js maior cabuloso e depois chamar meus objetos por javascript.

Bom, a 1ª opção ficaria ruim para os usuário q não saberiam atualizar o IE e a 2ª opção fica inviável por ter muitos objetos, assim a manutenção ficaria horrível de ser dado.

Alguém, por favor, teria alguma outra solução ???

Obrigado.

1 Resposta

M

Achei um código JavaScript que corrige (Abaixo), mas corrige apenas objetos .swf simples, os objetos que recebem Dados.XML no parametro dá o seguinte erro: “Error in Loading Data”.

// When the page loads:
window.onload = function(){
	if (document.getElementsByTagName) {
	// Get all the tags of type object in the page.
		var objs = document.getElementsByTagName("object");
		for (i=0; i<objs.length; i++) {
		// Get the HTML content of each object tag
		// and replace it with itself.
			objs[i].outerHTML = objs[i].outerHTML;
		}
	}
}
// When the page unloads:
window.onunload = function() {
	if (document.getElementsByTagName) {
	//Get all the tags of type object in the page.
		var objs = document.getElementsByTagName("object");
		for (i=0; i<objs.length; i++) {
		// Clear out the HTML content of each object tag
		// to prevent an IE memory leak issue.
			objs[i].outerHTML = "";
		}
	}
}

Alguém sabe como tratar os Dados.XML para que funcione corretamente ???

Obrigado.

Criado 9 de outubro de 2006
Ultima resposta 9 de out. de 2006
Respostas 1
Participantes 1