2010-06-12 109 views
-3

我剛剛搜索了文檔找到它,我刪除了<hr class="cmdbar"></hr>,但它仍然存在!你們有沒有看到別的東西?隨機<hr/>我不知道該如何擺脫!


<?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"> 
<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> 
+0

我把你的代碼粘貼在我自己的文件中,然後試着......它不再存在了。您是否嘗試過使用Ctrl + F5強制刷新?或者,在最壞的情況下,重新啓動XAMPP服務器? – BoltClock 2010-06-13 00:17:52

+0

我將嘗試重新啓動XAMPP,如果這不起作用,您是否擁有TeamViewer? – 2010-06-13 00:22:44

+1

在webbrowser的右鍵單擊頁面,在' BalusC 2010-06-13 00:25:13

回答

1

你也可以使用Firefox的Firebug。它是一個整潔的附加組件,可幫助您根據網頁的外觀找到代碼。

10

<hr class="cmdbar"></hr>,行:126 CTRL + F一般適用於大多數文本編輯器。

2

這就是:

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

不過,瀏覽器治療<hr></hr>作爲一個適當的<hr />過,雖然如此,根據W3C規範,這不是應該。

+0

非常感謝你們! – 2010-06-12 23:59:35