Cursed HTML code?

Wizet

New Member
Messages
644
Reaction score
0
Points
0
There is an html code that I have that kind of bugs whatever html editor I have.

For example when I enter the code in the HTMl editing section of PG it works fine. Then when I go to the Normal tab in PG and go to any other tab it starts to go buggy. I can give you the code and see if you can tell me what is wrong with it. God it's starting to **** me off.
 

VPmase

New Member
Messages
914
Reaction score
1
Points
0
We can't help you if you don't share the code with us and give more details...
 

Wizet

New Member
Messages
644
Reaction score
0
Points
0
Here ya go:
Edit:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>MapleForum Test Template</title>
<style type="text/css"><!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #333333;
}
body {
	background-image: url(img/images/cake_01.gif);
	background-repeat: repeat-x;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.smallprint {font-size: 8px}
.lightblue {
	color: #B8B5E3;
	font-weight: bold;
}
.online {
	color: #279100;
	font-weight: bold;
}
.red {color: #E93236}
.fineprint {
	font-size: 2px;
	color: #FFFFFF;
}
a:link {
	color: #4tv34v;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #333333;
}
a:hover {
	text-decoration: none;
	color: #003366;
}
a:active {
	text-decoration: none;
	color: #333333;
}
.goal {color: #BDB120}
.header {
	font-size: 16px;
	font-weight: bold;
}
.author {font-size: 12px}
.offline {color: #910000; font-weight: bold; }
--></style>
<script type="text/javascript">
var iframeids=["status"]
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function dyniframesize() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById){ //begin resizing iframe procedure
dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
if (dyniframe[i] && !window.opera){
dyniframe[i].style.display="block"
if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntax
dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight;
else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //ie5+ syntax
dyniframe[i].height = dyniframe[i].Document.body.scrollHeight;
}
}
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

if (window.addEventListener)
window.addEventListener("load", dyniframesize, false)
else if (window.attachEvent)
window.attachEvent("onload", dyniframesize)
else
window.onload=dyniframesize

</script>
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
	newwindow=window.open(url,'name','height=300,width=350');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->
</script>
</head>
<body>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="726">
<tbody>

<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="51%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td valign="bottom"><br />
</td></tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="660">
<tbody>
<tr>
<td bgcolor="#ffffff" valign="top" width="61%"><a href="index.html"></a></td>

<td bgcolor="#ffffff" valign="top" width="39%">
<iframe id="status" src="http://cakestory.kicks-ass.net/cake/loginbox.php" marginwidth="0" marginheight="0" vspace="0" hspace="0" style="overflow: visible; width: 100%; height: 50px; display: none" frameborder="0" scrolling="no"></iframe><br />
</td></tr></tbody></table></td></tr></tbody></table></td>
<td valign="bottom" width="49%"><br />
</td></tr></tbody></table></td></tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" height="154" width="660">
<tbody>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="660">
<tbody>
<tr>
<td><br />
</td></tr>

<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" height="139" width="660">
<tbody>
<tr>
<td bgcolor="#ffffff" valign="top" width="191"><br />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#ffffff" width="7%">&nbsp;</td>
<td bgcolor="#f4ede0" width="99%">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="75%">
<tbody>
<tr>
<td>
<div align="left"><br />
<img alt="" src="/beta/img/images/cake_14.gif" height="29" width="165" /></div></td></tr>

<tr>
<td>
<p align="left">MapleForum is <font color="#00ff00"><span class="online"><strong>online</strong></span></font>.<br />
<br /><strong>Next Uptime: </strong>00:00:00<br />
<strong>Next Downtime: </strong>00:00:00<br />
&nbsp;</p></td></tr></tbody></table></td>
<td bgcolor="#ffffff" width="0%">&nbsp;</td></tr></tbody></table><br />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>

<tr>
<td>
<p align="left">» <a href="index.php">Home</a><br />
                                » <a href="forum.mfhome.x10hosting.com">Forums</a> <br />

<em>» </em><a href="http://">Rankings</a><br />
<em>» </em><a href="#" onclick="return popitup()">Register </a></p>
<p align="left"><em>» </em><a href="">Downloads</a> <br />
» <a href="">Server Information </a><br />
» <a href="">Donate</a><br />
» <a href="">Guides</a><br />

                                » <a href="">Staff</a> </p>                                </td></tr></tbody></table><br />
</td>
<td bgcolor="#ffffff" width="0%">&nbsp;</td></tr></tbody></table>                    <br />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#ffffff" width="7%">&nbsp;</td>
<td bgcolor="#f4ede0" width="99%">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="75%">
<tbody>
<tr>

<td>
<div align="left"><br />
<img alt="" src="/beta/img/misc.gif" height="29" width="165" /></div></td></tr>
<tr>
<td>
<p align="left">
                                Server Capacity: <strong>5000</strong><br />
                                Server Speed: <strong>100mb/s</strong></p>
<p align="left">Donations recieved: <strong class="online">450$</strong><br />

                                   <span class="red"><strong>300$</strong></span><strong>/month</strong><br />
</p>
<center><a href="http://cakestory.org/forums/misc.php?do=donate"><em><strong></strong></em></a></center> <br />
<br /></td></tr></tbody></table><br />
</td>
<td bgcolor="#ffffff" width="0%">&nbsp;</td></tr></tbody></table>
<p align="center">&nbsp;</p></td>
<td bgcolor="#ffffff" valign="top" width="469">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>

<td><span class="fineprint">fineprint</span><br />
</td></tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tbody>
<tr>
<td width="96%"><br />
</td>
<td width="1%">&nbsp;</td></tr></tbody></table></td></tr>
<tr>
<td>
<div class="smallprint" align="center">Copyright © Shinigami (Matthew) 2008<br />
                          Some Rights Reserved</div></td></tr></tbody></table>

<p>&nbsp;</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div>
<map name="Map" id="Map"></map>
<map name="Map2" id="Map2"></map>
</body>
</html>
 
Last edited:

fbillc

New Member
Messages
2
Reaction score
0
Points
0
i dont see anything wrong in that bro... and can you elaborate little more of your trouble...??
 

Wizet

New Member
Messages
644
Reaction score
0
Points
0
I don't think that would affect the bug that this code is doing to my html editors or would it?
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
I went through that code manually, and there are a couple errors (tags that should not be there)
1. I found one extra <tr> tag
2. I found an extra set of end tags for table (</td></tr></tbody></table>)

I have saved the file and it is attached. I recommend you NOT to use a wysiwyg editor as there often occurs errors in code with those, especially if you flip between viewing source and the graphical editor window, however there's probably a "clean the code" option that should find the extra tags.

I have not tested the file...

Btw, I counted to a total of 15 start tags for table, nested with each others, hard to make that right I guess...
 

Attachments

  • test.html
    12.3 KB · Views: 61
Last edited:

Wizet

New Member
Messages
644
Reaction score
0
Points
0
Hey! Thats what my website looked like when I removed all the <td> tags!
 
Top