Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

What's wrong with my site?[RESOLVED]

Code:
<html>
<head>
		<title>Dark Crest Productions | Welcome</title>
		<META http-equiv=REFRESH content=300>
		<META name="keywords" content="Games, MMORPG, MMO, RPG, Role Playing Game, Dark Crest  Productions, Van Helblaze, Armingdale, FPS, First Person Shooter, DIM3, RPG Maker XP,RMXP, Massivly Multiplayer Online Role Playing Game"/>
		<META name="description" content="Independend Games made by one person." />
		<link href="dcp-theme.css" rel="stylesheet" type="text/css" media="all" />
		<link rel="shortcut icon" href="favicon.ico" />
</head>
<body><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<title>untitled</title>
	<style type="text/css">
		#sBar {text-align: center; margin: 0; margin-bottom: 10px; padding: 5px 0px;  width: 728px; background-color: #fff; border: 1px solid #dfdfdf;}
		#sBar li {display: inline; } 
		#sBar li a, #sBar li a:visited {font: bold 11px tahoma,arial; text-decoration: underline; color: #004891; margin: 0px 15px;}
	</style>
</head>

<body>

Maybe if you looked at the source output, you'd get an idea...
 
I fixed, and that's not my true source, bravenet scrambles the source when you try to view it, the problem was with one of my images, for some reason it was not accepting the code, but when I pasted the same code over it again it worked.
 

___

Sponsor

Bravenet scrambles the source?  Whuh?  Why would they do that : (

TBH, I don't think that's possible, sine the source can't be scrambled because it's the instructions that your browser uses to draw the page; if it's scrambled it wouldn't work at all.  Maybe that's not the way you meant it.

In any case you have a huge list of errors in your source, you should run it through a validator.  Often fixing malformed source can resolve mysterious rendering issues.  For starters, though:

If you didn't catch what Yeyinde was pointing out before you have two <head> sections and two <html> and <body> declarations to go with them, the second set of which is located inside the first <body>.  Both sections may only exist once in valid html.  You have no doctype declaration (bravenet apparently stuck one in there for you but it's not in the place the browser looks for it so it's not working), which puts the browser automatically in quirks mode and causes unreliable rendering.  You have a lot of ampersand symbols in your links which should be escaped using & - it's not a huge deal and probably won't cause issues but it's better to fix it anyway.

At the bottom you close out body and html twice.  A browser may assume that body is closed before your second <html> declaration and thus treat the entire rest of your page as invalid code with unexpected results; since only one <head> and <body> is allowed for it may not properly apply CSS to anything using the <body> selector depending on how it decides to deal with the conflict.

Also
Code:
target="_new"
is invalid, you can't lead an attribute with anything but an alphanumeric character (underscores are fine as long as they're not the first character).

Try fixing up all those problems (and more importantly running your source through a validator).  Bravenet is not going to intentionally do anything to hose your source code (unless they're incredibly stupid) so you need to find out what is causing it to stick that second header inside your <body> area and why; normally they would want to put it where it belongs.  It seems as if their insert code is not properly recognizing your initial declarations; try stealing their doctype declaration and sticking it at the top of your source and see if it inserts things properly after that.
 
if you add the correct line of code, you can encode or scramble your source, this code also won't show up in your source code when other people go to view it.  bravenet adds it into sites and it doesn't even show up in my master source, nor do there adds.
 

___

Sponsor

I'd like to see that in action.  I can't imagine how they get the browser to render the page right if the source code is jacked up beyond recognition.  I can see their adds just fine, they're probably inserted by a server-side script when the page is served, that's pretty easy to do.  Here they are:
Code:
<table cellspacing="0" cellpadding="0" border="0" align="center" style="width: 754px; margin: 0 auto;">
	<tr>
		<td align="center" valign="top">
			<ul id="sBar">

		         <li><a href="http://www.bravenet.com/webhosting/" target="_new">Web Hosting</a>

		         <li><a href="http://www.bravenet.com/webtools/guestbook/" target="_new">Guestbooks</a>

		         <li><a href="http://www.bravenet.com/webtools/counter/" target="_new">Hit Counter</a>

		         <li><a href="http://www.bravenet.com/webtools/forum/" target="_new">Forums</a>

		         <li><a href="http://www.bravenet.com/webtools/journal/" target="_new">Blogs</a>

		         <li><a href="http://www.bravenet.com/webtools/elist/" target="_new">Mailing List</a>


				 <li><a href="http://www.bravenet.com/webhosting/" target="_new">Free Web Hosting</a>

		     </ul>
		</td>
		</tr>
	<tr>
		<td align="center"  valign="top">
			<div align="center" style="z-index: 9000; margin-bottom: 10px;">
				<script language="javascript" type="text/javascript" src="http://mercury.bravenet.com/rover/a?dbfile=SPONSORBAR_DB&serv=hosting-sites"></script><noscript><iframe src="http://mercury.bravenet.com/rover/a?dbfile=SPONSORBAR_DB&js=false&serv=hosting-sites" width="754" height="90" allowTransparency="true" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"><img src="http://mercury.bravenet.com/rover/d?dbfile=SPONSORBAR_DB&serv=hosting-sites" alt="" border="0"></iframe></noscript>

				<div style="clear: both;"></div>
			</div>
		</td>
	</tr>
</table>
<script src="http://jupiter.bravenet.com/rover/f?cid=bravenet&ctype=24"></script>
Code:
<br>
<div style="text-align: center">
	<a href="http://www.bravenet.com/webhosting/" style="font: 11px tahoma, sans-serif; color: #004891;">Web Hosting</a> 
	· 
	<a href="http://www.bravenet.com/webtools/journal" style="font: 11px tahoma, sans-serif; color: #004891;">Blog</a>
	· 
	<a href="http://www.bravenet.com/webtools/guestbook/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Guestbooks</a> 
	· 
	<a href="http://www.bravenet.com/webtools/forum/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Message Forums</a> 
	· 
	<a href="http://www.bravenet.com/webtools/elist/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Mailing Lists</a><br>

	<a href="http://allwebcodesign.com/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Allwebco Web Templates</a> 
	·
	<a href="http://resources.bravenet.com/bravenet_toolbar" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Build your own toolbar</a> 
	·
	<a href="http://www.quotemedia.com/" style="font: 11px tahoma, sans-serif;color: #004891;" target="_blank">Financial Data</a>
	· 
	<a href="http://resources.bravenet.com" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Audio, Fonts, Clipart</a><br>

	<a href="http://www.bravenet.com" target="_blank" style="text-decoration: none; color: #004891; font: bold 10px tahoma, sans-serif; display:block; padding-top: 10px;">powered by <img src="http://assets.bravenet.com/bravenet/images/poweredby.gif" border="0" alt="a free webtools company" style="vertical-align: middle;"> bravenet.com</a>
</div><br>
 
yes I see those when I'm viewing my source on the web, but they also add a code to scramble the source when people whom do not have access to my account try to view it.  I'll post what my source actually looks like tomorrow when I'm on my PC, along side of the scrambled source, because in my actual code I don't have anything related to bravenet (well exept the toolbar add).
 
Ah but it is possible

here is the code that you see...
Code:
<html>
<head>
		<title>Dark Crest Productions | Welcome</title>
		<META http-equiv=REFRESH content=300>
		<META name="keywords" content="Games, MMORPG, MMO, RPG, Role Playing Game, Dark Crest  Productions, Van Helblaze, Armingdale, FPS, First Person Shooter, DIM3, RPG Maker XP,RMXP, Massivly Multiplayer Online Role Playing Game">
		<META name="description" content="Independend Games made by one person.">
		<link href="dcp-theme.css" rel="stylesheet" type="text/css" media="all">
		<link rel="shortcut icon" href="favicon.ico">
</head>
<body><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<title>untitled</title>
	<style type="text/css">
		#sBar {text-align: center; margin: 0; margin-bottom: 10px; padding: 5px 0px;  width: 728px; background-color: #fff; border: 1px solid #dfdfdf;}
		#sBar li {display: inline; } 
		#sBar li a, #sBar li a:visited {font: bold 11px tahoma,arial; text-decoration: underline; color: #004891; margin: 0px 15px;}
	</style>
</head>

<body>
<table cellspacing="0" cellpadding="0" border="0" align="center" style="width: 754px; margin: 0 auto;">
	<tr>
		<td align="center" valign="top">
			<ul id="sBar">

		         <li><a href="http://www.bravenet.com/webhosting/" target="_new">Web Hosting</a>

		         <li><a href="http://www.bravenet.com/webtools/guestbook/" target="_new">Guestbooks</a>

		         <li><a href="http://www.bravenet.com/webtools/counter/" target="_new">Hit Counter</a>

		         <li><a href="http://www.bravenet.com/webtools/forum/" target="_new">Forums</a>

		         <li><a href="http://www.bravenet.com/webtools/journal/" target="_new">Blogs</a>

		         <li><a href="http://www.bravenet.com/webtools/elist/" target="_new">Mailing List</a>


				 <li><a href="http://www.bravenet.com/webhosting/" target="_new">Free Web Hosting</a>

		     </ul>
		</td>
		</tr>
	<tr>
		<td align="center"  valign="top">
			<div align="center" style="z-index: 9000; margin-bottom: 10px;">
				<script language="javascript" type="text/javascript" src="http://mercury.bravenet.com/rover/a?dbfile=SPONSORBAR_DB&serv=hosting-sites"></script><noscript><iframe src="http://mercury.bravenet.com/rover/a?dbfile=SPONSORBAR_DB&js=false&serv=hosting-sites" width="754" height="90" allowTransparency="true" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"><img src="http://mercury.bravenet.com/rover/d?dbfile=SPONSORBAR_DB&serv=hosting-sites" alt="" border="0"></iframe></noscript>

				<div style="clear: both;"></div>
			</div>
		</td>
	</tr>
</table>
<script src="http://jupiter.bravenet.com/rover/f?cid=bravenet&ctype=24"></script>

<div id="splash-img">
<img src="dcpcrest.png" alt="Dark Crest Productions (DCP) Logo ~ Click to enter site" width="669" height="460">
</div>

<div class="lang">

<!--English-->

<a href="home.html"><img src="flags-usa1.gif" alt="Enter English version of site" width="142" height="83"></a>

<!--Spanish-->

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.darkcrestproductions.bravehost.com/home.html&langpair=en%7Ces&hl=en&ie=UTF-8"
><img src="flags-spain1.gif" alt="Introduzca versión en español del sitio" width="142" height="83"></a>

<!--French-->

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.darkcrestproductions.bravehost.com/home.html&langpair=en%7Cfr&hl=en&ie=UTF8"><img src="flags-france1.gif" alt="Entrez version française du site" width="142" height="83"></a>

<!--German-->

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.darkcrestproductions.bravehost.com/home.html&langpair=en%7Cde&hl=en&ie=UTF8"><img src="flags-germany1.gif" alt="Geben Sie deutschen Version der Website" width="142" height="83"></a>

</div>

<br>
<div style="text-align: center">
	<a href="http://www.bravenet.com/webhosting/" style="font: 11px tahoma, sans-serif; color: #004891;">Web Hosting</a> 
	· 
	<a href="http://www.bravenet.com/webtools/journal" style="font: 11px tahoma, sans-serif; color: #004891;">Blog</a>
	· 
	<a href="http://www.bravenet.com/webtools/guestbook/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Guestbooks</a> 
	· 
	<a href="http://www.bravenet.com/webtools/forum/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Message Forums</a> 
	· 
	<a href="http://www.bravenet.com/webtools/elist/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Mailing Lists</a><br>

	<a href="http://allwebcodesign.com/" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Allwebco Web Templates</a> 
	·
	<a href="http://resources.bravenet.com/bravenet_toolbar" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Build your own toolbar</a> 
	·
	<a href="http://www.quotemedia.com/" style="font: 11px tahoma, sans-serif;color: #004891;" target="_blank">Financial Data</a>
	· 
	<a href="http://resources.bravenet.com" style="font: 11px tahoma, sans-serif; color: #004891;" target="_blank">Audio, Fonts, Clipart</a><br>

	<a href="http://www.bravenet.com" target="_blank" style="text-decoration: none; color: #004891; font: bold 10px tahoma, sans-serif; display:block; padding-top: 10px;">powered by <img src="http://assets.bravenet.com/bravenet/images/poweredby.gif" border="0" alt="a free webtools company" style="vertical-align: middle;"> bravenet.com</a>
</div><br>

</body>
</html>
</body>
</html>

and here is the code that I wrote...
Code:
<html>
<head>
		<title>Dark Crest Productions | Welcome</title>
		<META http-equiv=REFRESH content=300>
		<META name="keywords" content="Games, MMORPG, MMO, RPG, Role Playing Game, Dark Crest  Productions, Van Helblaze, Armingdale, FPS, First Person Shooter, DIM3, RPG Maker XP,RMXP, Massivly Multiplayer Online Role Playing Game">
		<META name="description" content="Independend Games made by one person.">
		<link href="dcp-theme.css" rel="stylesheet" type="text/css" media="all">
		<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div id="splash-img">
<img src="dcpcrest.png" alt="Dark Crest Productions (DCP) Logo ~ Click to enter site" width="669" height="460">
</div>

<div class="lang">
<!--English-->

<a href="home.html"><img src="flags-usa1.gif" alt="Enter English version of site" width="142" height="83"></a>

<!--Spanish-->

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.darkcrestproductions.bravehost.com/home.html&langpair=en%7Ces&hl=en&ie=UTF-8"
><img src="flags-spain1.gif" alt="Introduzca versión en español del sitio" width="142" height="83"></a>

<!--French-->

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.darkcrestproductions.bravehost.com/home.html&langpair=en%7Cfr&hl=en&ie=UTF8"><img src="flags-france1.gif" alt="Entrez version française du site" width="142" height="83"></a>

<!--German-->

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.darkcrestproductions.bravehost.com/home.html&langpair=en%7Cde&hl=en&ie=UTF8"><img src="flags-germany1.gif" alt="Geben Sie deutschen Version der Website" width="142" height="83"></a>

</div>
</body>
</html>

do you see the differences?  I don't know why they mess up the source so much, but the second code is actually the source that I wrote.
 

___

Sponsor

Junky but still readable, if you take it into a text editor and remove the inane amount of extra whitespace it makes sense.  Probably due to tabbing chunks of code before <?php ?> tags (or whatever server side scripting language) instead of inside the tags, so the whitespace lingers after the code has been processed.  Sloppy sloppy, I hate it when people do that.
 
Nphyx":190tuc5x said:
Junky but still readable, if you take it into a text editor and remove the inane amount of extra whitespace it makes sense.  Probably due to tabbing chunks of code before <?php ?> tags (or whatever server side scripting language) instead of inside the tags, so the whitespace lingers after the code has been processed.  Sloppy sloppy, I hate it when people do that.
Sorry I fixed the problem on Friday, it was a problem with an image, though I think it was just a server error, and I couldn't deal w/ the white space because there was no white space causing codes in my source, actually there wasn't even any white in my source, but thanks for the imput
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top