PDA

View Full Version : Can anyone tell me what's wrong with this java?


pjalne
Jan 12th, 2004, 02:42 PM
//
<!--
document.writeln('

');
document.writeln('');
document.writeln('-- Per A');
document.writeln('
');
document.writeln('<a href=mailto:webmaster@encyclopedia-obscura.com>webmaster@encyclopedia-obscura.com</a>');
document.writeln('');
document.writeln('

');
//-->

I can't figure out why the hell it won't show up.

whoreable
Jan 12th, 2004, 03:05 PM
<script type="text/javascript">
document.writeln('

');
document.writeln('');
document.writeln('-- Per A');
document.writeln('
');
document.writeln('<a href=mailto:webmaster@encyclopedia-obscura.com>webmaster@encyclopedia-obscura.com</a>');
document.writeln('');
document.writeln('

');
</script>

works for me...

executioneer
Jan 12th, 2004, 03:22 PM
NEEDS SOME HALF AND HALF :lol

-willie

sspadowsky
Jan 12th, 2004, 07:52 PM
Damn willie beat me to it. :(

sspadowsky
Jan 12th, 2004, 07:54 PM
Hey, PJ, look at the last line:

document.writeln('

');

Shouldn't it be
document.writeln('</p>'); ?

AChimp
Jan 12th, 2004, 08:27 PM
Whoreable already fixed the mistake. Remember your <script> tags, foo'. >:

EDIT: You don't need to close your

and
tags unless you want to get that gay W3C approved rating.

sspadowsky
Jan 12th, 2004, 08:45 PM
I was just guessing. I don't know shit about Java, but I know a little HTML, so that's why that jumped out at me. :(

I WAS ONLY TRYING TO HELP. :wah

pjalne
Jan 13th, 2004, 07:10 AM
Thanks, people, I figured it out. Problem was that Internet Explorer for Mac is a piece of shit, it worked in Safari. And now that the code has marinated for 12 hours it works on IE Mac as well.

Whorable and AChimp: yeah, that would be the solution if this was part of an html document. This is an external signature that I refer to at the end of all my pieces. You know, so I can change it or throw a link in without having to edit every single page. I'd use an iframe, but they're so damned inflexible. Im sure there's a better solution out there, though.

whoreable
Jan 13th, 2004, 10:58 AM
So it is just for an include file? Dont you still have to include script tags in things like that?

I am just curious, cause I seem to not know a whole bunch of obvious shit when it comes to html/javascript.

pjalne
Jan 13th, 2004, 11:23 AM
I think you have to. Not really an expert myself.[/i]