Ir para conteúdo
Fórum Script Brasil
  • 0

Ajuda Com Frame


mestre fyoda

Pergunta

alguém poderia me ajudar com os frames , ao clicar no link abre dentro de uma div usando frame . do geito q to usando abre em outra pagina .

Por favor arrumem meu codigo .

<td width=5%><a href="paginacao.php" target="teste" > <img src="img/usuario.ico" border="0"> </a>Membros</td>

<FRAME name="teste" id="teste" src="home.php" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" FRAMEBORDER="0" FRAMESPACING="0">

<div id="conteudo">

</div>

</FRAME>

desse geito ta abrindo em outra pagina .

porque ?

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0
<? OB_START(); ?>
<html>
<head>

<link rel="stylesheet" type="text/css" href="css/tudo.css" /> 
<style type="text/css">
    <!--

    body {
	padding:0px;
        margin:0px;
    }

    #superior {
	padding:0px;
	margin:0px;
	float: left;
	width: 100%;
	background-color:#FFFFFF;
	list-style:none;
	font:80% Tahoma;
    }

    #menu {
        width:30%;
        padding-left:5px;
        padding-top:7px;
        float:left;
    }

    #conteudo {
        width:40%;
        padding-left:5px;
        padding-top:7px;
        float:left;
    }
    
    #direita {
        width:30%;
        padding-left:5px;
        padding-top:7px;
        float:left;
    }    
    -->


td { 
    font-family:verdana,arial; 
    font-size:8pt; 
} 

.estilotabelasobreposta{ 
    background-color:F4F4F4; 
    border-style:solid; 
    border-color:666666; 
    border-width:1px; 
} 

.estilotabela{ 
    background-color:ffffff; 
    border-style:solid; 
    border-color:CCCCCC; 
    border-width:1px; 
} 
.estilocelula{ 
    background-color:#F9F9F9; 
    color:333333; 
    font-weight:bold; 
    font-size:10pt; 
} 

.estilocelulaesquerda{ 
    background-color:#CCCCCC; 
    color:333333; 
    font-weight:bold; 
    font-size:10pt; 
} 

</style>

</head>

<body>

<div id="superior">
<table width=100% height=30 cellpadding=2 cellspacing=2 >
<tr align="center">
<td width=5%> <a href=login.php> <img src="img/login.gif" border="0">&nbsp;&nbsp;Login </a></td>
<td width=5%><img src="img/cadastro.ico">&nbsp;&nbsp;Cadastro</td>
<td width=5%><img src="img/adm.ico">&nbsp;&nbsp;Área Restrita</td>
<td width=5%><img src="img/busca.ico">&nbsp;&nbsp;Busca</td>
<td width=5%><a href="paginacao.php" target="teste" > <img src="img/usuario.ico" border="0"> </a>Membros</td>
<td width=5%><img src="img/sair.ico">&nbsp;&nbsp;Logout</td></tr>
</table>
</div>

<br><br>

<div id="menu">
<table width=150 height=18 cellpadding=2 cellspacing=2 class="estilotabelasobreposta">
<tr> <td>


<table width=150 height=18 cellpadding=2 cellspacing=2 > 
<tr><td class="estilocelula" > <img src="img/adm.ico">Usuário </td></tr> 
</table>


<table width=150 height=18 cellpadding=2 cellspacing=2 class="estilotabela"> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Chat</td></tr>
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
</table> 


<table width=150 height=18 cellpadding=2 cellspacing=2 > 
<tr><td class="estilocelula" ><img src="img/user.gif">Usuário </td></tr> 
</table>


<table width=150 height=18 cellpadding=2 cellspacing=2 class="estilotabela"> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Chat</td></tr>
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
<tr><td class="estilocelulaesquerda" width=15></td> <td class="estilocelula" >Cadastro</td></tr> 
</table>
</td> </tr>
</table>

</div>


<FRAME name="teste" id="teste" src="home.php" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" FRAMEBORDER="0" FRAMESPACING="0">
<div id="conteudo">
</div>
</FRAME>

</body>
</html>
<? OB_END_FLUSH(); ?>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...