Stuff in Java script to show in html page
Page 1 of 1
Karmeck




Posts: 3341
Location: Sweden
PostPosted: Mon, 8th Dec 2008 11:53    Post subject: Stuff in Java script to show in html page
The html
 Spoiler:
 


The java
 Spoiler:
 


But the java stuff just wont show in the html page then I load it up, what is wrong?
Back to top
Rinze
Site Admin



Posts: 2343

PostPosted: Mon, 8th Dec 2008 22:59    Post subject:
Most browsers have an error console which will tell you javascript error messages.

You are missing a lot of single quotes around the strings you want to write, and you're missing semicolons at the end of your statements.
Back to top
dingo_d
VIP Member



Posts: 14555

PostPosted: Mon, 8th Dec 2008 23:54    Post subject:
Your html code is kinda messy. First your body isn't close, and if I'm not wrong it shouldn't be inside your <head>. I could be wrong, as I'm not pro in these. Get DreamviewerCS4, it has validation and stuff. Very useful imo...


"Quantum mechanics is actually, contrary to it's reputation, unbeliveably simple, once you take the physics out."
Scott Aaronson
chiv wrote:
thats true you know. newton didnt discover gravity. the apple told him about it, and then he killed it. the core was never found.

Back to top
}-{ydro




Posts: 81

PostPosted: Sat, 13th Dec 2008 11:37    Post subject:
just bad syntax
heres 1 htm file that this should start you off in the right direction




Code:


<html>
<head>

<body
bgcolor=#FFFFFF background="bg.bmp" topmargin="50" leftmargin="50" marginwidth="50" marginheight="50">
<div id="vanster"> lolz
<script language="JavaScript" type="text/javascript">

 

document.write('<div id="vanster">');
document.write('<ul>');
document.write('<a href="fc2mmain.html" target="main"><img src="Far-Cry-2-logo-1402.jpg" width="184" height="116" border="0"></a><a href="sida2.html"><font color="#FFFFFF"></font>');
document.write('</ul>');

document.write('<li><a href="fc2new.html" target="main" >News</a></li>');
document.write('<li><a href="fc2mmain.html#sysreq" target="main">System requirements</a></li>');
document.write('<li><a href="fc2main.html" target="main">Images</a></li>');
document.write('<li><a href="vfc2.html" target="main">Videos</a></li>');
document.write('<li><a href="fc2fn.html" target="main">Forum info</a></li>') ;


</script>
</head>
</div>
</body>
</html>


Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group