Jump to content

Redirecting with target=_top


winmastergames

Recommended Posts

Ok want im tying to do is redirect to another site with the _top target i think the one where it scraps the old frames here is the script i have now

Is it as easy as just putting in target=_top or something else because its use meta

 

<meta name="description" content="Winmastergames has everthing you can think of we host websites for free we are currently hosting Vidmic Bloodscars and much much more">
<meta name="Author" content="Dean Gardiner">
<meta name="Publisher" content="winmastergames.com">
<meta name="robots" content="index, follow"> <!-- (robot commands: all, none, index, no index, follow, no follow) -->
<meta name="revisit-after" content="30 days">
<meta name="distribution" content="global">
<meta name="rating" content="general">
<meta name="content-language" content="english">
<meta http-equiv="REFRESH" content="0;url=http://www2.winmastergames.com">

<script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script>

<style type="text/css">
<!--
.basestyle {
color: #FFFFFF;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
h1 {
font-size: 16px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body, td, p, input {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #333333;
}
.navlinks {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.style1 {
color: #FFFFFF;
}
-->
</style>
</head>
<body style="margin:0; ">
<table width=755 height="100%" border=0 align="center" cellpadding=0 cellspacing=0>
        <tr align="center" valign="middle">
          <td height="169" colspan="2"><a href="http://winmastergames.com"><img src="images/toplogo.gif" width="216" height="155" border="0"></a><img src="images/topbanner.gif" width="539" height="155"></td>
        </tr>
    <tr>
      <td width="185" align="center" valign="top" bgcolor="#d80000"><h3><img src="images/sidetop.gif" width="185" height="14"></h3>
        <table width="132" border="0" cellpadding="2" cellspacing="0">
          <tr>
            <td class="navlinks"><a class="navlinks" href="index.php">:: Home</a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="thescript.php">:: T<span class="style1">he 
		Scri</span>pt</a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="donate.php">:: D<span class="style1">onate</span></a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="contactus.php">:: C<span class="style1">ontact 
		Us</span></a></td>
          </tr>
          <tr>
            <td class="navlinks"> </td>
          </tr>
        </table>
      <h3>         </h3></td>
	<td width="570" rowspan="2" valign="top" style="padding-left:20px; padding-top:25px; padding-right:40px; padding-bottom:35px; ">

Redirecting..</td>
</tr>
<tr>
  <td height="20" valign="bottom" bgcolor="#d80000"><img src="images/sidebottom.gif" width="185" height="20"></td>
  </tr>
<tr>
  <td height="58" colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="26"><img src="images/baseleft.gif" width="26" height="51"></td>
          <td align="center" bgcolor="#ef8406" class="basestyle">© Copyright 
		2006-2007 Winmastergames.com. All Rights Reserved.<br>
		Theme Made by
		<a target="_blank" href="http://www.myfreetemplates.com">
		myfreetemplates.com</a></td>
          <td width="26"><img src="images/baseright.gif" width="26" height="51"></td>
        </tr>
      </table></td>
</tr>
</table>
</body>
</html>

Link to comment
Share on other sites

you just need to create a standard anchor in your meta refresh - try this:

 

<meta name="description" content="Winmastergames has everthing you can think of we host websites for free we are currently hosting Vidmic Bloodscars and much much more">
<meta name="Author" content="Dean Gardiner">
<meta name="Publisher" content="winmastergames.com">
<meta name="robots" content="index, follow"> <!-- (robot commands: all, none, index, no index, follow, no follow) -->
<meta name="revisit-after" content="30 days">
<meta name="distribution" content="global">
<meta name="rating" content="general">
<meta name="content-language" content="english">
<meta http-equiv="REFRESH" content="0;url=http://www2.winmastergames.com#top">

<script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script>

<style type="text/css">
<!--
.basestyle {
color: #FFFFFF;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
h1 {
font-size: 16px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body, td, p, input {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #333333;
}
.navlinks {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.style1 {
color: #FFFFFF;
}
-->
</style>
</head>
<body style="margin:0; ">
<table width=755 height="100%" border=0 align="center" cellpadding=0 cellspacing=0>
        <tr align="center" valign="middle">
          <td height="169" colspan="2"><a href="http://winmastergames.com"><img src="images/toplogo.gif" width="216" height="155" border="0"></a><img src="images/topbanner.gif" width="539" height="155"></td>
        </tr>
    <tr>
      <td width="185" align="center" valign="top" bgcolor="#d80000"><h3><img src="images/sidetop.gif" width="185" height="14"></h3>
        <table width="132" border="0" cellpadding="2" cellspacing="0">
          <tr>
            <td class="navlinks"><a class="navlinks" href="index.php">:: Home</a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="thescript.php">:: T<span class="style1">he 
		Scri</span>pt</a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="donate.php">:: D<span class="style1">onate</span></a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="contactus.php">:: C<span class="style1">ontact 
		Us</span></a></td>
          </tr>
          <tr>
            <td class="navlinks"> </td>
          </tr>
        </table>
      <h3>         </h3></td>
	<td width="570" rowspan="2" valign="top" style="padding-left:20px; padding-top:25px; padding-right:40px; padding-bottom:35px; ">

Redirecting..</td>
</tr>
<tr>
  <td height="20" valign="bottom" bgcolor="#d80000"><img src="images/sidebottom.gif" width="185" height="20"></td>
  </tr>
<tr>
  <td height="58" colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="26"><img src="images/baseleft.gif" width="26" height="51"></td>
          <td align="center" bgcolor="#ef8406" class="basestyle">© Copyright 
		2006-2007 Winmastergames.com. All Rights Reserved.<br>
		Theme Made by
		<a target="_blank" href="http://www.myfreetemplates.com">
		myfreetemplates.com</a></td>
          <td width="26"><img src="images/baseright.gif" width="26" height="51"></td>
        </tr>
      </table></td>
</tr>
</table>
</body>
</html>

Link to comment
Share on other sites

the only other conclusion that I can come up with is that you want to open a page in your frameset and you want a link in your top frame that allows people to click it and view the web page below outside of your frameset - like a link that says: "see this page without frame". is this what your wanting to try to do?

 

 

or you could try something like this:

 

<meta name="description" content="Winmastergames has everthing you can think of we host websites for free we are currently hosting Vidmic Bloodscars and much much more">
<meta name="Author" content="Dean Gardiner">
<meta name="Publisher" content="winmastergames.com">
<meta name="robots" content="index, follow"> <!-- (robot commands: all, none, index, no index, follow, no follow) -->
<meta name="revisit-after" content="30 days">
<meta name="distribution" content="global">
<meta name="rating" content="general">
<meta name="content-language" content="english">
<meta http-equiv="REFRESH" content="0;url=http://www.mydomain.com/index.php?pgurl=http://www2.winmastergames.com">

<script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script>

<style type="text/css">
<!--
.basestyle {
color: #FFFFFF;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
h1 {
font-size: 16px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body, td, p, input {
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #333333;
}
.navlinks {
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.style1 {
color: #FFFFFF;
}
-->
</style>
</head>
<body style="margin:0; ">
<table width=755 height="100%" border=0 align="center" cellpadding=0 cellspacing=0>
        <tr align="center" valign="middle">
          <td height="169" colspan="2"><a href="http://winmastergames.com"><img src="images/toplogo.gif" width="216" height="155" border="0"></a><img src="images/topbanner.gif" width="539" height="155"></td>
        </tr>
    <tr>
      <td width="185" align="center" valign="top" bgcolor="#d80000"><h3><img src="images/sidetop.gif" width="185" height="14"></h3>
        <table width="132" border="0" cellpadding="2" cellspacing="0">
          <tr>
            <td class="navlinks"><a class="navlinks" href="index.php">:: Home</a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="thescript.php">:: T<span class="style1">he 
		Scri</span>pt</a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="donate.php">:: D<span class="style1">onate</span></a></td>
          </tr>
          <tr>
            <td class="navlinks"><a class="navlinks" href="contactus.php">:: C<span class="style1">ontact 
		Us</span></a></td>
          </tr>
          <tr>
            <td class="navlinks"> </td>
          </tr>
        </table>
      <h3>         </h3></td>
	<td width="570" rowspan="2" valign="top" style="padding-left:20px; padding-top:25px; padding-right:40px; padding-bottom:35px; ">

Redirecting..</td>
</tr>
<tr>
  <td height="20" valign="bottom" bgcolor="#d80000"><img src="images/sidebottom.gif" width="185" height="20"></td>
  </tr>
<tr>
  <td height="58" colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="26"><img src="images/baseleft.gif" width="26" height="51"></td>
          <td align="center" bgcolor="#ef8406" class="basestyle">© Copyright 
		2006-2007 Winmastergames.com. All Rights Reserved.<br>
		Theme Made by
		<a target="_blank" href="http://www.myfreetemplates.com">
		myfreetemplates.com</a></td>
          <td width="26"><img src="images/baseright.gif" width="26" height="51"></td>
        </tr>
      </table></td>
</tr>
</table>
</body>
</html>

 

Then set your index.php frameset up like so:

 

<?php

if ($pageurl != NULL)
{
$bottom = $_GET['pgurl'];
}
else {
$bottom="myindexpage.html";
}

?>


<frameset rows="25%,75%">
<frame src="header.html">
<frame src="<?php echo "$bottom"; ?>">
</frameset>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.