|
Posted by Thad on 02/25/07 14:08
"Roy A." <royarneskar@gmail.com> wrote in message
news:1172385368.591537.66560@a75g2000cwd.googlegroups.com...
>
> If you are going to use JavaScript (EMCA) with xhtml you got to write
> it so it works in xhtml and in xhtml served as "text/html".
I'm sorry, I don't understand what EMCA stands for or where you would place
the "text/html". My css sheets are called by...
<style type="text/css" title="currentStyle" media="screen">
@import "igcss.css";
</style>
and my external java is called by...
<script type="text/javascript" src = "menujs.js">
</script>
> You don't want it to breake. You can't use document.write, and if you are
> working with e.g. element names you have to look for both DIV (classic
> html) and div (xhtml). Hopefully, if you use JavaScript by heart,
> these links will let you write code that don't use browser type
> checking:
>
Uh oh...you say I can't use document.write? That's exactly what I got
working. If not document.write as in the following example, what would
you suggest?
Example from my js page:
document.write("<dl id=\"menu\">");
document.write("<dt class = \"btn\"><a href=\"beverage.html\">Beverage
Insulators</a></dt>");
document.write("<dt class = \"btn\"><a href=\"carflags.html\Car
Flags</a></dt>");
document.write("<br />");
document.write("<dt class = \"btn\">More soon</dt>");
document.write("<dt class = \"btn\">Such as...</dt>");
document.write("<br /><br />");
document.write("Bookmarkers<br />");
document.write("Dog Tags<br />");
document.write("</dl>");
>
> But don't forget where the real good stuff is: W3C.
>
Oh, I visit there often. There is so much information, I am overwhelmed.
Love the validation.
Thanks Roy (and all the others who have replied)
Thad
[Back to original message]
|