Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Boa Tarde
Estou iniciando com jquery e divs, estou fazendo um site usando divs e peguei o código em uma video aula que nela funciona beleza, mas implementei no meu código, porém ao clicar no link não carrega a página na div de forma alguma, já to quase apelando para usar iframe, se alguém conseguir entender o motivo de não carregar, ficarei muito grato.
Segue abaixo o código:
Clico em home e simplesmente não ocorre nada.
<!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" />
<title>Prática Embalagens</title>
<script type="text/javascript" src"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
jquery.noconflict();
jquery(document).ready(function() {
jquery("#conteudo").load("home.html");
});
function abrePag(page)jquery(#conteudo).load(page);
}
</script>
<style type="text/css">margin: 0px;
height: auto;
}
#tudo {
margin: auto;
height: auto;
width: 980px;
}
#topo {
height: 150px;
width: 980px;
}
#menu {
height: 30px;
width: 980px;
position: relative;
background-color: #003399;
}
#conteudo {
width: 980px;
overflow: auto;
position: relative;
height: 500px;
background-color: #CCCCCC;
}
#rodape {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: normal;
color: #003366;
background-color: #FFFFFF;
height: 15px;
width: 980px;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: solid;
border-right-style: none;
border-bottom-style: solid;
border-left-style: none;
border-top-color: #003366;
border-bottom-color: #003366;
font-size: 10px;
text-align:center;
}</style>
</head>
<body>
<div id="tudo">
<div id="topo"><img src="imagens/topo/topo.jpg" width="980" height="150" /></div>
<div id="menu"><a href="javascript:abrePag("home.html");">home</a></div>
<div id="conteudo"></div>
<div id="rodape">Copyrigth - Todos os Direitos Reservados a Pratica Embalagens - Design by Marcos Aguiar</div>
</div>
</body>
</html>Carregando comentários...