views:

114

answers:

3

I have just searched the document to find it, I removed the <hr class="cmdbar"></hr> but it is still there! Do any of you see anything else?


<?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"&gt;
<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">
<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">-</p>
</font>
</html>
+8  A: 

Here it is <hr class="cmdbar"></hr>, line: 126. CTRL + F generally works with most text editors.

Babiker
+2  A: 

Here it is:

<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>

Browsers do treat <hr></hr> as a proper <hr /> too, although that's not supposed to be so according to W3C specs.

BoltClock
Thank you both very much!
Anonymous the Great
+1  A: 

You could also use Firebug for Firefox. It's a neat add-on that helps you find code based on the appearance of the web page.

Gnarly