Random <hr/> that I don't know how to get rid of!
Posted
by Anonymous the Great
on Stack Overflow
See other posts from Stack Overflow
or by Anonymous the Great
Published on 2010-06-12T23:52:33Z
Indexed on
2010/06/13
0:02 UTC
Read the original article
Hit count: 251
There is no extra <hr/>
on the page, and I cannot figure out why it is there. Do you see anything that is causing it?
I am sorry for posting the whole thing, I do not know exactly where it starts.
The <hr/>
is at the top somewhere, but I'm not sure where.
<?php print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<font face="Segoe UI">
<body>
<script type="text/javascript">
/*function detectBrowser()
{
var browser = navigator.appCodeName;
if (browser!="Mozilla") {document.location.href="noaccess.php"; alert(browser);}
}
detectBrowser();
*/
</script>
<title>Second</title>
<link rel="stylesheet" type="text/css" href="allCSS.css"/>
<center>
<!--<img align="right" src="logo.png" id="headerimg"/>-->
<input type="image" id="headerimg" src="logo.png" align="right" onclick="toggleh();"/>
<ul align="center" class="">
<div class="menu">
<ul class="nav">
<li><strong><a href="index.php">Home</a></strong>
<ul>
<li><a href="games.php">Games</a></li>
<li><a href="browse.php">Browse</a></li>
<li><a href="catalogue.php">Catalogue</a></li>
<li><a href="forum.php">Forums</a></li>
</ul>
</li>
<li><strong><a href="games">Games</a></strong>
<ul>
<li><a href="profile.php">Profile</a></li>
<li><a href="settings.php">Settings</a></li>
</ul>
</li>
<li><strong><a href="contact">Contact</a></strong>
<ul>
<li><a href="contact/index.php">Phone</a></li>
<li><a href="contact/index.php">Email</a></li>
<li><a href="contact/index.php">Mail</a></li>
</ul>
</li>
</div>
</center>
</body>
<center>
<?php
echo '<div id="msg">';
include 'message.txt';
echo '</div>';
//include 'hits.txt';
?>
<p>
<?php
function ChangeText($txt)
{
$txt='<script type="text/javascript">get();</script>';
echo '<script type="text/javascript">change();</script>';
$filename="message.txt";
$fp=fopen($filename,'w');
fwrite($fp,'<h4 class="hmsg">' . $txt . '</h4>');
fclose($fp);
}
?>
<script type="text/javascript">
<!--
window.onload=enter;
function enter()
{
//alert("Welcome!");
//hideCMD();
}
function get(text)
{
text=document.getElementById("ta").value;
return text;
}
function toggleh()
{
var element=document.getElementById("headerimg");
if (element.style.display!="none"){element.style.display="none";}
else {element.style.display="";}
}
function change(text)
{
text=document.getElementById("ta").value;
if (text=="toggle") {toggleh(); return;}
if (text=="home") {document.location.href="index.html"; return;}
if (text.match("goto:*")) {var loc=text.substring(5,text.length); document.location.href=loc; return;}
if (text.match("ban:*")) {var loc=text.substring(4,text.length); document.location.href=loc; return;}
document.getElementById("msg").innerHTML='<h2 class="hmsg">'+text+'</h2>';
}
function hideCMD()
{
document.getElementById("cmd").style.display="none";
}
//-->
</script>
</head>
<body>
<div id="msg">
</div>
<p id="cmd">
<hr class="cmdbar"></hr>
<input class="panela" type="text" value="" id="ta" maxLength="20"/>
<input class="panelb" type="image" src="submit.png" alt="Submit" onclick='change();'/>
</p>
</center>
<p class="hide">HELLO!</p>
</font>
</html>
© Stack Overflow or respective owner