473,396 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

more javascript help!!!!!!!

This is not showing up I have an idea what is wrong though I think that I have a "
in the wrong place or i might be missing one. I need this code to show the holiday and then the date after it I need some help!!!!!!!!

<html>
<body>
<table>

<script>

var sGreetings = new Array();
sGreetings[0] = "Christmas ";
sGreetings[1] = "Halloween ";
sGreetings[2] = "Easter ";
sGreetings[3] = "Mothers Day ";
sGreetings[4] = "Fathers Day ";
sGreetings[5] = "New Years ";
sGreetings[6] = "Thanksgiving Day ";
sGreetings[7] = "Remembrance Day ";
sGreetings[8] = "Tony day ";
sGreetings[9] = "Dylan Day ";
sGreetings[10] = "Boxing day ";


var sDates = new Arrary()
sDates[0] = "December 25";
sDates[1] = "October 30";
sDates[2] = "April 8";
sDates[3] = "Some day in May";
sDates[4] = "Some day in June";
sDates[5] = "January 1";
sDates[6] = "October 8";
sDates[7] = "November 11";
sDates[8] = "July 2";
sDates[9] = "December 13";
sDates[10] = "December 26";

document.write("<table border='3' width='70%'>")
document.write("<tr align='center' height='30'>")
document.write("<td colspan='1'>")document.write(</td>")
for (nItemDay=0; nItemDay<12>; nItemDay++){
document.write("sGreetings[nItemDay] + <br>");
}

document.write("<td>")
document.write("<td colspan='2'>");
for (nItemDay=0; nItemDate<12>; nItemDate++){
document.write("sDates[nItemdate] + <br>");
}
document.write("</td>")
document.write("</tr>")
document.write("</table>")

</script>

</table>
</body>
</html>
May 8 '07 #1
1 972
Logician
210 100+
You've got about a dozen errors in total, about half of which are syntax errors indicated in the error console. Use FireFox.

The first 2 errors are on this line:

document.write("<td colspan='1'>")document.write(</td>")
May 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Trip | last post by:
Please if someone can help me !!! I need client and server code(principle based on AJAX) for next problem: i have 3 <select> tags on html page.(it must be NO page reload(callback) only...
3
by: Tina | last post by:
I don't write much javascript so I was hoping to get some direction here on how best to approach a problem. I want to do a tab folder approach where maybe I have some image buttons that look...
9
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us...
11
by: Marcelo | last post by:
Hi, I need to make a robot that fills forms. I already made that with php sites, but now I need that in a javascript pages site ( the robot can be php,asp, asp.net ), anyone knows how can I do...
2
by: michaelmaud | last post by:
I am currently working on a photo gallery which loads in images on the fly. upon the page loading, it scans the directory in PHP and builds an array of the image names in a JavaScript Array format...
1
by: dreamlab | last post by:
Hello, Can one of you javascript wizards help out a newbie, please? I’ve got a formHandler that is supposed to check for a good email address and name in the form after clicking the submit...
1
nirmalsingh
by: nirmalsingh | last post by:
i have tried many ways to call a C# function through javascript. but i couldn't. i'll be more thankful if any one help me with sample code...
4
by: fredy | last post by:
I Need javascript help to retrive the cpu information of client in mozilla browser Note: <script language="javascript"> alert(navigator.cpuClass); </script>
2
by: Support Desk | last post by:
I am working on a python webcrawler, that will extract all links from an html page, and add them to a queue, The problem I am having is building absolute links from relative links, as there are so...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.