Opdatere frame?
Hey jeg har denne side i frames... Jeg vil så gerne have at hver gang top bliver loadet så opdatere den main framen... Kan man ikke det? Evt hvor man kan sige hvilken side den skal opdatere i main ? sådan update.main.haha.html :)Min kilde til top ser sådan her ud
<?
include(\"./inc/auth.inc\");
?>
<html>
<head>
<title>New Page 5</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">
<SCRIPT><!--
Net=1;
if ((navigator.appName.substring(0,5) == \"Netsc\" && navigator.appVersion.charAt(0) > 2) || (navigator.appName.substring(0,5) == \"Micro\" && navigator.appVersion.charAt(0) > 3)) {
Net=0;
over = new Image;
out = new Image;
gammel = new Image;
over.src = \"on.gif\";
out.src = \"off.gif\";
gTarget = \'img1\';
}
function Click(Target) {
if (Net != 1){
if (Target != gTarget) {
document[Target].src = over.src;
document[gTarget].src = out.src;
gTarget = Target;
gammel.src = document[Target].src;
}
}
}
function Over(Target) {
if (Net != 1){
gammel.src = document[Target].src;
document[Target].src = over.src;
}
}
function Out(Target) {
if (Net != 1){
document[Target].src = gammel.src;
}
}
//-->
</SCRIPT>
<style TYPE=\"text/css\">
<!--
A:link { text-decoration: Underline; color: #000000; font-weight ;}
A:visited { text-decoration: None; color: #000000; font-weight ;}
A:active { text-decoration: None; color: #000000; font-weight ;}
A:hover { text-decoration: Underline; color: #46494C; font-weight:bold ;}
-->
</style>
<base target=\"main\">
</head>
<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">
<div align=\"left\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"586\">
<tr>
<td width=\"330\"><a href=\"main.htm\" target=\"main\"><img border=\"0\" src=\"images/logo.gif\" width=\"330\" height=\"57\"></a></td>
<td background=\"images/loginbg.gif\" width=\"213\" valign=\"top\">
<p align=\"center\"><font size=\"2\">Hej: <b><?=$brugernavn?> </b>[<? open_db(); $result = $query=mysql_query(\"select * from users where uid=$uid\"); while($info = mysql_fetch_array($result)) { echo \"$info[polet]\"; } ?><b><img border=\"0\" src=\"images/moonstone.gif\" alt=\"Månesten\" width=\"9\" height=\"9\"></b>]<br>
</font><img border=\"0\" src=\"images/6-blank.gif\" width=\"195\" height=\"5\"><br>
<b><font face=\"Arial\" size=\"1\"><a href=\"tekst/post.htm\"><img border=\"0\" src=\"images/ikon_post.gif\" alt=\"Tower Post\" width=\"20\" height=\"12\"></a>
<a href=\"tekst/retinfo.htm\"><img border=\"0\" src=\"images/ikon_retinfo.gif\" alt=\"Ret info\" width=\"20\" height=\"12\"></a>
<a href=\"tekst/venner.htm\"><img border=\"0\" src=\"images/ikon_venner.gif\" alt=\"Venner\" width=\"20\" height=\"12\"></a>
<a href=\"tekst/soeg.htm\"><img border=\"0\" src=\"images/ikon_sog.gif\" alt=\"Søg\" width=\"20\" height=\"12\"></a>
<a href=\"tekst/toplister.htm\"><img border=\"0\" src=\"images/ikon_toplister.gif\" alt=\"Toplister\" width=\"20\" height=\"12\"></a>
<a href=\"tekst/funktioner.htm\"><img border=\"0\" src=\"images/ikon_funktioner.gif\" alt=\"Funktioner\" width=\"20\" height=\"12\"></a>
</font></b><font face=\"Arial\" size=\"1\"><b> <a onFocus=\"this.blur()\" href=\"logud.php\" target=\"top\" onclick=\"parent.main.location.replace(\'./main.php\');\"><img border=\"0\" src=\"images/ikon_logud.gif\" alt=\"Log ud\" width=\"20\" height=\"12\"></a></b></font><b><font face=\"Arial\" size=\"1\"><a href=\"tekst/toplister.htm\"><br>
</a> </font></b>
</td>
<td width=\"37\"><img border=\"0\" src=\"images/moonman.gif\" width=\"43\" height=\"57\"></td>
</tr>
<tr>
<td background=\"images/knapbg.gif\" width=\"580\" colspan=\"3\" height=\"30\">
<p align=\"center\">
<a HREF=\"main.htm\" onMouseOver=\"Over(\'img1\')\" onMouseOut=\"Out(\'img1\')\" onClick=\"Click(\'img1\')\"><img border=\"0\" src=\"images/knap_forside.gif\" width=\"15\" height=\"15\"></a><a HREF=\"main.htm\" onMouseOver=\"Over(\'img1\')\" onMouseOut=\"Out(\'img1\')\" onClick=\"Click(\'img1\')\" target=\"main\"><IMG NAME=img1 SRC=\"on.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
<a HREF=\"tekst/omtower.htm\" onMouseOver=\"Over(\'img2\')\" onMouseOut=\"Out(\'img2\')\" onClick=\"Click(\'img2\')\" target=\"main\"><img border=\"0\" src=\"images/knap_omtower.gif\" width=\"76\" height=\"15\"><IMG NAME=img2 SRC=\"off.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
<a HREF=\"tekst/nyheder.htm\" onMouseOver=\"Over(\'img3\')\" onMouseOut=\"Out(\'img3\')\" onClick=\"Click(\'img3\')\" target=\"main\"><img border=\"0\" src=\"images/knap_nyheder.gif\" width=\"76\" height=\"15\"><IMG NAME=img3 SRC=\"off.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
<a HREF=\"tekst/debat.htm\" onMouseOver=\"Over(\'img4\')\" onMouseOut=\"Out(\'img4\')\" onClick=\"Click(\'img4\')\" target=\"main\"><img border=\"0\" src=\"images/knap_debat.gif\" width=\"76\" height=\"15\"></a><a HREF=\"tekst/konkurrencer.htm\" onMouseOver=\"Over(\'img4\')\" onMouseOut=\"Out(\'img4\')\" onClick=\"Click(\'img4\')\" target=\"main\"><IMG NAME=img4 SRC=\"off.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
<a HREF=\"tekst/konkurrencer.htm\" onMouseOver=\"Over(\'img5\')\" onMouseOut=\"Out(\'img5\')\" onClick=\"Click(\'img5\')\" target=\"main\"><img border=\"0\" src=\"images/knap_konkurrencer.gif\" width=\"76\" height=\"15\"><IMG NAME=img5 SRC=\"off.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
<a HREF=\"tekst/kontakt.htm\" onMouseOver=\"Over(\'img6\')\" onMouseOut=\"Out(\'img6\')\" onClick=\"Click(\'img6\')\" target=\"main\"><img border=\"0\" src=\"images/knap_kontakt.gif\" width=\"76\" height=\"15\"><IMG NAME=img6 SRC=\"off.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
<a HREF=\"tekst/support.htm\" onMouseOver=\"Over(\'img7\')\" onMouseOut=\"Out(\'img7\')\" onClick=\"Click(\'img7\')\" target=\"main\"><img border=\"0\" src=\"images/knap_support.gif\" width=\"76\" height=\"15\"><IMG NAME=img7 SRC=\"off.gif\" BORDER=0 width=\"10\" height=\"15\"></a>
</p>
</td>
</tr>
<tr>
<td width=\"580\" colspan=\"3\"><img border=\"0\" src=\"images/undermenu.gif\" width=\"586\" height=\"19\"></td>
</tr>
</table>
</div>
</body>
</html>