Hello,
Thanks for your reply. I attached part of the script that I am having
problems with which someone might be able to help me out with.
<script language="javascript" type="text/javascript">
<!--
function printdate() {
days = new Array(7)
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
months = new Array(12)
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
today = new Date(); day = days[today.getDay() + 1]
month = months[today.getMonth() + 1]
date = today.getDate()
year=today.getYear();
if (year < 2000) year = year + 1900;
document.write ("<font size=1 face='Americana, Arial, Helvetica,
sans-serif' color=003399>" + day +
", " + month + " " + date + ", " + year)
}
More stuff
</script>
<style type="text/css"> <!--
.pviimenudiv td {font-family: "Trebuchet MS", Arial, sans-serif; font-size:
12px}
.pviimenudiv p {font-family: "Trebuchet MS", Arial, sans-serif; font-size:
12px; margin-top: 12px; margin-bottom: 6px}
.pviimenudiv b {font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: normal; color: #666666}
.pviimenudiv a:link {
color: White;
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14px;
text-decoration: underline
}
.pviimenudiv a:visited {
color: White;
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14px;
text-decoration: underline
}
.pviimenudiv a:hover {
color: Red; font-family: "Trebuchet MS", Arial, sans-serif; font-size:
14px;
text-decoration: underline
}
.pviimenudiv a:active {
color: Red; font-family: "Trebuchet MS", Arial, sans-serif; font-size:
14px;
text-decoration: underline
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000"
onLoad="P7_setMenuMagic1(10,40,10,'p7menubottom',' p7menu1','p7submenu1','p7m
but1','p7menu2','p7submenu2','p7mbut2','p7menu3',' p7submenu3','p7mbut3','p7m
enu4','p7submenu4','p7mbut4','p7menu5','p7submenu5 ','p7mbut5');P7_MM1dwt();I
nitAnim();">
<bgsound src="C:\My Documents\test.mids">
<div id="p7menu1" style="position:absolute; left:20px; top:220px;
width:160px; z-index:106"><a href="javascript
:;"
onClick="P7_trigMenuMagic1('p7menu1',1);return false"
onMouseOver="P7_rollCMenu1(event,'p7menu1',0)"
onMouseOut="P7_rollCMenu1(event,'p7menu1',0)"
onFocus="if(this.blur)this.blur()"><img src="butt1.gif" width="160"
height="22" name="p7mbut1" border="0" alt="menu 1"></a></div>
<div id="p7menu2" style="position:absolute; left:20px; top:242px;
width:160px; z-index:107"><a href="javascript
:;"
onClick="P7_trigMenuMagic1('p7menu2',1);return false"
onMouseOver="P7_rollCMenu1(event,'p7menu2',0)"
onMouseOut="P7_rollCMenu1(event,'p7menu2',0)"
onFocus="if(this.blur)this.blur()"><img src="butt2.gif" width="160"
height="22" name="p7mbut2" border="0" alt="menu 2"></a></div>
<div id="p7submenu1" class="pviimenudiv" style="position:absolute;
left:200px; top:242px; width:150px; visibility: hidden; z-index:101">
<table width="150" border="0" cellspacing="6" cellpadding="0">
<tr>
<td><a href="index.html">Home Page</a></td>
</tr>
</table>
</div>
<div id="p7submenu2" class="pviimenudiv" style="position:absolute;
left:200px; top:264px; width:150px; visibility: hidden; z-index:102">
<table width="150" border="0" cellspacing="6" cellpadding="0">
<tr>
<td><a href="test_pages/test.html">test</a></td>
</tr>
</table>
</div>
<td valign="top">
<table width=468 border=0 align="center" cellpadding=0 cellspacing=0
style="border: 1px;"><tr><td>
<div id="surfer3" style="position:absolute"><img src="test.gif"
alt="test"></div>
<div id="surfer4" style="position:absolute"><img src="test.gif"
alt="test"></div>
<div id="surfer5" style="position:absolute"><img src="test.gif"
alt="test"></div>
<div id="surfer6" style="position:absolute"><img src="test.gif"
alt="test"></div>
<ilayer name="waves34i"><div id="waves34"><img src="test.gif"
alt="test"></div></ilayer>
</td></tr></table>
<br><hr size=1>
<script>printdate();</script>
"Grant Wagner" <gw*****@agricoreunited.com> wrote in message
news:41***************@agricoreunited.com...
mike wrote:
Hello,
I am kind of new to this javascript stuff and I am constantly having
problems trying to get my webpage validated. I have the following
<script>printdate();</script> and when I validate it at validator.w3.org
I get a error the attribute given above is required for an element that
you've used, but you have omitted it. For instance, in most HTML and XHTML
document types the "type" attribute is required on the "script" element and the
"alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and
type="text/javascript" for <script>.
Ok, I tried both of these obtions but it always change my fonts to some
different then what I want it. How can I have it so my fonts will not
change. If more info is needed please let me know.
thank you for your help to this matter
<script type="text/javascript"> and <style type="text/css"> should have no
affect on how the fonts appear on your page. Provide a link to two
examples that demonstrate what you are talking about, or two simple examples here. Also
note which browsers you are seeing this behaviour in. If someone can reproduce
your problem, they can help you fix it.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq