C
ConCat
Hello,
I'm a web designer who is new at Javascript and don't yet fully understand
the potential of it. I manage a large site with 5 sectors that are foreign
language translations and therefore use the lang=xx attrib on the <html>
tag, as well as the "Content-Language" content="xx" attribute of the META
http-equiv tag.
I use javascript script implants on templates to "doc.write" a nav-bar
custom to the particular language I am dealing with. My scheming little
mind (always looking for short-cuts, aren't we? thought: If I could
"capture" the language attrib for the page in a string variable (ie, "fr"
for french), I could insert a much more universal JS nav snippet which would
automatically adjust for the language on the page by parsing the html head
for the language attribute.
is this a possibility, or am I dreaming too vividly?
thanks for any pointers or hints...
Gary
I'm a web designer who is new at Javascript and don't yet fully understand
the potential of it. I manage a large site with 5 sectors that are foreign
language translations and therefore use the lang=xx attrib on the <html>
tag, as well as the "Content-Language" content="xx" attribute of the META
http-equiv tag.
I use javascript script implants on templates to "doc.write" a nav-bar
custom to the particular language I am dealing with. My scheming little
mind (always looking for short-cuts, aren't we? thought: If I could
"capture" the language attrib for the page in a string variable (ie, "fr"
for french), I could insert a much more universal JS nav snippet which would
automatically adjust for the language on the page by parsing the html head
for the language attribute.
is this a possibility, or am I dreaming too vividly?
thanks for any pointers or hints...
Gary