Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Uriel Juliatti

Carregando Múltiplos HTMLs em Divs

Recommended Posts

Estou passando por uma dor de cabeça com o IE! No FF dá tudo certo, a página abre.. Mas no IE aparece só o "carregando"...

 

Aqui está o codigo JS:

 

CÓDIGO
// JavaScript Document
function ajaxHTML(id,url){

//Obtém o objeto HTML
objetoHTML=document.getElementById(id);

//Exibe "Carregando..."

objetoHTML.innerHTML="Carregando...";
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");//mudei a posição
}catch(ee){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
xmlhttp = new XMLHttpRequest();//mudei a posição
}catch(E){
xmlhttp = false;
}
}

e o HTML:

 

~<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/default.css" />
<title>Página Inicial</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<!-- Aqui eu chamo a ação javascript com ajax-->
<script src="js/actions.js" type="text/javascript"></script>
</head>

<body  onload="ajaxHTML('destaque1','destaque1.html');">
<div id="tudo">
	<div id="topo">
	  <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','870','height','211','src','menu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','menu' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="870" height="211">
		<param name="movie" value="menu.swf" />
		<param name="quality" value="high" wmode="transparent"/>
		<embed src="menu.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="870" height="211"  wmode="transparent"></embed>
	  </object></noscript>
	<div id="destaque1">
	</div>
	<!--Aqui entra a pagina html logo no inicio do carregamento-->
	<div id="destaque2">
	</div>

</div> <!-- Topo -->
</div>
</body>
</html>

No firefox pega perfeitamente.. mas no IE...

 

Existe como rodar mais de uma pagina ao carregar tudo?

Por exemplo:

 

Rodar destaque1, destaque2, destaque 3 e uma enquete??

 

Como faz isso?

 

Preciso muito dessa ajuda!

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.