• 0
Sign in to follow this  
mestre fyoda

Ajuda Com Frame

Question

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 ?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 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(); ?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this