PDA

View Full Version : document.write problem



rctxtreme
04-01-2007, 06:31 AM
/*

www.a2h.8m6.net global menu. BOW DOWN.

This should be the output:
<map name="menu">
<area href="http://www.a2h.8m6.net" alt="Home" coords="0,0,96,96">
<area href="http://www.a2h.8m6.net/forums" alt="Forum" coords="97,0,193,96">
<area href="http://www.a2h.8m6.net/gameon" alt="GAMEON" coords="194,0,290,96">
<area href="http://www.a2h.8m6.net/blog.htm" alt="Blog" coords="291,0,387,96">
<area href="http://www.a2h.8m6.net/art" alt="Art" coords="388,0,484,96">
<area href="http://www.a2h.8m6.net/others" alt="Others" coords="485,0,581,96">
</map>
<img src="http://www.a2h.8m6.net/menu.gif" alt="Menu" usemap="#menu" width="581" HEIGHT="96" BORDER="0">

*/

document.writeln("<map name=\"menu\">");
document.writeln("<area href=\"http://www.a2h.8m6.net\" alt=\"Home\" coords=\"0,0,96,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/forums\" alt=\"Forum\" coords=\"97,0,193,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/gameon\" alt=\"GAMEON\" coords=\"194,0,290,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/blog.htm\" alt=\"Blog\" coords=\"291,0,387,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/art\" alt=\"Art\" coords=\"388,0,484,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/others\" alt=\"Others\" coords=\"485,0,581,96\">");
document.writeln("</map>");
document.writeln("<img src=\"http://www.a2h.8m6.net/menu.gif\" alt=\"Menu\" usemap=\"#menu\" width=\"581\" HEIGHT=\"96\" BORDER=\"0\">");


The menu does not output on http://www.a2h.8m6.net/hamachi ...

I used this code to output that file:

<style type="text/javascript" src="http://www.a2h.8m6.net/menu.js"></script>

tech_support
04-01-2007, 07:25 AM
Have you tried instead of writeIn put write?

rctxtreme
04-01-2007, 08:33 AM
It was document.write but it didn't work so I just googled a generator...

And it gave this.

Well I did give what should come out in the commented area...

jscheuer1
04-01-2007, 11:31 AM
Works here:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>
<body>
<script type="text/javascript">
/*

www.a2h.8m6.net global menu. BOW DOWN.

This should be the output:
<map name="menu">
<area href="http://www.a2h.8m6.net" alt="Home" coords="0,0,96,96">
<area href="http://www.a2h.8m6.net/forums" alt="Forum" coords="97,0,193,96">
<area href="http://www.a2h.8m6.net/gameon" alt="GAMEON" coords="194,0,290,96">
<area href="http://www.a2h.8m6.net/blog.htm" alt="Blog" coords="291,0,387,96">
<area href="http://www.a2h.8m6.net/art" alt="Art" coords="388,0,484,96">
<area href="http://www.a2h.8m6.net/others" alt="Others" coords="485,0,581,96">
</map>
<img src="http://www.a2h.8m6.net/menu.gif" alt="Menu" usemap="#menu" width="581" HEIGHT="96" BORDER="0">

*/

document.writeln("<map name=\"menu\">");
document.writeln("<area href=\"http://www.a2h.8m6.net\" alt=\"Home\" coords=\"0,0,96,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/forums\" alt=\"Forum\" coords=\"97,0,193,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/gameon\" alt=\"GAMEON\" coords=\"194,0,290,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/blog.htm\" alt=\"Blog\" coords=\"291,0,387,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/art\" alt=\"Art\" coords=\"388,0,484,96\">");
document.writeln("<area href=\"http://www.a2h.8m6.net/others\" alt=\"Others\" coords=\"485,0,581,96\">");
document.writeln("</map>");
document.writeln("<img src=\"http://www.a2h.8m6.net/menu.gif\" alt=\"Menu\" usemap=\"#menu\" width=\"581\" HEIGHT=\"96\" BORDER=\"0\">");
</script>
</body>
</html>

rctxtreme
04-02-2007, 07:18 AM
I've realised the problem - I used <style>!