Question

live dhtml date problem

Asked by: linque

I can't figure out what changed in my site.  The live time/date no longer shows up.  I've checked and fixed the body tag, and recopied the script that runs this, which I found at dynamic dhtml here:  http://www.dynamicdrive.com/dynamicindex6/clock3.htm   that script is pasted in below.  I also put the body tag information in.

after this script, I've pasted the code from my dysfunctional page.  If anyone spots what's wrong, I'd greatly appreciate the help!

linque




<script>

/*
Live Date Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/


var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
+"</b></font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

</script>
<span id="clock"></span>





source code from my page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><meta name="keywords" content="snow removal, snow shovelling, snow, shovel, shovelled, snow shovel, plow, snow plowing, snow plowed, block group, group plan, commercial, commercial snow removal, driveway, snow shovel service, winter, driveway, shovel driveway, michigan, MI, Michigan, Detroit, Dearborn, Dearborn Heights, Personal Snow Removal, ice, remove, salt">
<meta name="description" content="Personal Snow Removal will plow your home or your neighborhood block. Don't worry about your driveway or subdivision street in the winter.  We will shovel your snow.">
<link href="../style.css" rel="stylesheet" type="text/css">

<!-- TemplateBeginEditable name="doctitle" -->
<title> Dreamweaver Template</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--







<!--






<!--





<!--




<!--



<!--


<!--

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.address {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 14px;
      font-weight: bold;
      color: #000066;
      margin-top: 5px;
      margin-right: 5px;
      margin-bottom: 5px;
      margin-left: 5px;
}
-->
</style>
<style type="text/css">
<!--
-->
</style>
</head>

<body background="../images/layout/bg_ltBlue.jpg" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../images/layout/leftnav/leftnav_r1_c1_f2.gif','../images/layout/leftnav/leftnav_r2_c1_f2.gif','../images/layout/leftnav/leftnav_r4_c1_f2.gif','../images/layout/leftnav/leftnav_r6_c1_f2.gif','../images/layout/leftnav/leftnav_r8_c1_f2.gif','../images/layout/leftnav/leftnav_r10_c1_f2.gif','../images/layout/leftnav/leftnav_r12_c1_f2.gif','../images/layout/leftnav/leftnav_r14_c1_f2.gif',');goforit();" >

<table border="0" cellpadding="0" cellspacing="0" width="760">
<!-- fwtable fwsrc="header_new.png" fwbase="header_new.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
  <tr>
   <td><table border="0" cellpadding="0" cellspacing="0" width="760">
        <tr>
         <td><img name="header_new_r1_c1" src="../images/layout/header_new/header_new_r1_c1.gif" width="243" height="73" border="0" alt=""></td>
         <td><table border="0" cellpadding="0" cellspacing="0" width="517">
              <tr>
               <td><img name="topheader" src="../images/layout/header_new/topheader.gif" width="517" height="5" border="0" alt=""></td>
              </tr>
              <tr>
               <td><table border="0" cellpadding="0" cellspacing="0" width="517">
                    <tr>
                     <td><table border="0" cellpadding="0" cellspacing="0" width="468">
                          <tr>
                                    <td><img name="header_new_r2_c3" src="../images/layout/header_new/header_new_r2_c3.gif" width="468" height="60" border="0" alt="Personal Snow Removal"></td>
                          </tr>
                          <tr>
                           <td><img name="bottomheader" src="../images/layout/header_new/bottomheader.gif" width="468" height="8" border="0" alt=""></td>
                          </tr>
                        </table></td>
                     <td><img name="endheader" src="../images/layout/header_new/endheader.gif" width="49" height="68" border="0" alt=""></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr>
   <td><table border="0" cellpadding="0" cellspacing="0" width="760">
        <tr>
            <td><a href="mailto:info@personalsnowremoval.com"><img name="tabheader" src="../images/layout/header_new/tabheader.gif" width="173" height="40" border="0" alt="e-mail"></a></td>
         <td><img name="pageheader" src="../images/layout/header_new/pageheader.gif" width="429" height="40" border="0" alt=""></td>
            <td><img name="header_new_r4_c4" src="../images/layout/header_new/header_new_r4_c4.gif" width="158" height="40" border="0" alt="(248) 559-2618"></td>
        </tr>
      </table></td>
  </tr>
</table>

<table width="760" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150"><img src="/images/layout/spacer.gif" width="150" height="5
      "></td>
    <td width="450" align="center" valign="top" class="address" >24525 Southfield
      Road, Suite 202 <br>
      Southfield, Michigan 48075 <br>
      248.559.2618 | Fax 248.559.2620 <br> <a href="mailto:info@personalsnowremoval.com">E-mail:
      info@personalsnowremoval.com</a> </td>
    <!-- TemplateBeginEditable name="weather" -->
    <td width="160" align="center"><a href="http://www.weatherforyou.com/cgi-bin/hw3/hw3.cgi?forecast=zandh&place=Detroit&state=mi&country=us&zipcode="><img src="http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=hourly&place=Detroit&state=mi&alt=hwismallhourly&hwvbg=transparent&hwvtc=navy" alt="Weather Right Now In Detroit" width="140" height="70" border="0"></a>
      <br>
      <br>
     
<script>

/*
Live Date Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/


var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
+"</b></font></small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

</script>
<span id="clock"></span>
    <!-- TemplateEndEditable --></tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> </td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td width="147">
<table border="0" cellpadding="0" cellspacing="0" width="147">
<!-- fwtable fwsrc="leftnav.png" fwbase="leftnav.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
  <tr>
   <td><a href="../index.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r1_c1','','../images/layout/leftnav/leftnav_r1_c1_f2.gif',1);"><img name="leftnav_r1_c1" src="../images/layout/leftnav/leftnav_r1_c1.gif" width="147" height="17" border="0" alt="Home"></a></td>
  </tr>
  <tr>
   <td><a href="../coverageareas.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r2_c1','','../images/layout/leftnav/leftnav_r2_c1_f2.gif',1);"><img name="leftnav_r2_c1" src="../images/layout/leftnav/leftnav_r2_c1.gif" width="147" height="17" border="0" alt="Coverage Areas"></a></td>
  </tr>
  <tr>
   <td><a href="../guidelines.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r4_c1','','../images/layout/leftnav/leftnav_r4_c1_f2.gif',1);"><img name="leftnav_r4_c1" src="../images/layout/leftnav/leftnav_r4_c1.gif" width="147" height="17" border="0" alt="Program Guidelines"></a></td>
  </tr>
  <tr>
   <td><a href="../cost.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r6_c1','','../images/layout/leftnav/leftnav_r6_c1_f2.gif',1);"><img name="leftnav_r6_c1" src="../images/layout/leftnav/leftnav_r6_c1.gif" width="147" height="17" border="0" alt="Cost For Services"></a></td>
  </tr>
  <tr>
   <td><a href="../register.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r8_c1','','../images/layout/leftnav/leftnav_r8_c1_f2.gif',1);"><img name="leftnav_r8_c1" src="../images/layout/leftnav/leftnav_r8_c1.gif" width="147" height="17" border="0" alt="Registering Online"></a></td>
  </tr>
  <tr>
   <td><a href="../announcements.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r10_c1','','../images/layout/leftnav/leftnav_r10_c1_f2.gif',1);"><img name="leftnav_r10_c1" src="../images/layout/leftnav/leftnav_r10_c1.gif" width="147" height="17" border="0" alt="Announcements"></a></td>
  </tr>
  <tr>
   <td><a href="../commercial.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r12_c1','','../images/layout/leftnav/leftnav_r12_c1_f2.gif',1);"><img name="leftnav_r12_c1" src="../images/layout/leftnav/leftnav_r12_c1.gif" width="147" height="17" border="0" alt="Announcements"></a></td>
  </tr>
  <tr>
   <td><a href="../contact.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r14_c1','','../images/layout/leftnav/leftnav_r14_c1_f2.gif',1);"><img name="leftnav_r14_c1" src="../images/layout/leftnav/leftnav_r14_c1.gif" width="147" height="18" border="0" alt="Contact Us"></a></td>
  </tr>
</table>
      &nbsp;<!-- TemplateBeginEditable name="LeftNav SideBar" -->
      <table width="147" border="0" cellpadding="4" cellspacing="0" class="leftnav">
        <tr>
          <td align="center"> <div align="center">The Internet Home of Convenience
              for Snowbound Homeowners</div></td>
        </tr>
      </table>
      <!-- TemplateEndEditable --></td>
    <!-- TemplateBeginEditable name="Body" -->
    <td width="455" class="body"> <table width="100%" border="0" cellspacing="0" cellpadding="10">
        <tr>
          <td valign="top"> <p>Have you ever thought that thousands of Metro-Detroiters
              pay utility companies hundreds of dollar each year to protect them
              just in case the furnace breaks down, the air conditioner stops
              working or the stove won&#8217;t light. </p>
            <p>There is something else to stay prepared for in Michigan. SNOW
              FALLS! Signing up for our program eliminates this back breaking
              work for you and the tendency to wait for the neighborhood kids
              to come when most of them are home playing video games if snow fall
              results in a day off from school.</p>
            <p>OUR TRACTORS WILL BE ON YOUR STREET: CLEANING SIDEWALKS, DRIVEWAYS
              AND WALKWAYS. Add $25.00 per house, per year and the street is cleaned
              too. Opt out of the sidewalk, driveway and walkway program, pay
              $55.00 for the public street only.</p>
            <p>All you have to do is phone Ms. Davis in our offices at 248.559.2618,
              Ext. 22 any day but Thursday or click on the link &#8220;REGISTERING
              ON-LINE&#8221; and pay $139.95 for the season. After this winter
              season, beginning April 1st, 2004 you can begin paying a monthly
              rate of $15.00 and be covered for life and never clean snow again
              from December 1st through March 31st each season.</p>
            <p>We&#8217;re equipped with 15 snow tractors with 46&#8221; snow
              throwers to handle your private property. However, our limit is
              900 homes or 23 blocks, so the time to get on our list is now.<br>
            </p></td>
        </tr>
      </table></td>
    <td align="center"> <p class="address">Metro Detroit Weather</p>
      <p align="center"><img src="../images/layout/line_dashed.gif" width="140" height="2"></p>
      <p><a href="../register.htm"><img src="../images/layout/highlight_box.gif" alt="Register Now" width="140" height="130" border="0"></a></p>
      <p><img src="../images/layout/line_dashed.gif" width="140" height="2"></p>
      <p><img src="../images/layout/arrow.gif" width="10" height="10" hspace="3" align="absmiddle">
        A Project Of Detroit Maid &amp; Specialty Chore Services, Inc. and Personal
        Snow Removal, Inc.</p></td>
    <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Right Column Text" -->
    <!-- TemplateEndEditable --></tr>
  <tr valign="top">
    <td>&nbsp;</td>
    <td><table width="100%" border="0" cellpadding="3" cellspacing="0" class="fineprint">
        <tr>
          <td> <div align="center">Copyright &copy; 2003. PersonalSnowRemoval.com
              All Rights Reserved.<br>
              &nbsp; </div></td>
        </tr>
      </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-09-22 at 19:46:07ID20745837
Tags

dhtml

,

doctype

,

javascript

Topic

Hypertext Markup Language (HTML)

Participating Experts
1
Points
250
Comments
5

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Stylesheets
    I am using LINK tag to my stylesheets. All works great in IE 4 but not in Navigator 4. My code is <LINK REL=STYLESHEET TYPE="text/css" HREF="style/mkt.css"> and my stylesheet is BODY {font: 12 pt Arial} H1 {font: 22 pt Times; color: navy; text-a...
  2. External stylesheets
    Hi I am trying to learn CSS. My external style sheet reads like this <style type="text/css"> <!-- a { text-decoration: none} a:hover { text-decoration: underline overline} dd { color: #0000CC} --> </style> What do i have to add to this so t...
  3. Live Data View - CSS?
    Here's the rundown: User logs in Page gets user's CSS preference from db php puts their chosen css into the css link like this: <?php if (!isset($csschoice)) { $csschoice = "DefaultStyleSheet"; } ?> <link href="../css/<?php echo "$csschoice...
  4. CSS layouts in dreamweaver
    Ok i am a web developer, my design layouts are usually made with tables however i am attempting to start with stylesheets. however i am having some problems working out how to lay things out using CSS in dreamweaver because i'm so use to the visual ease of using borderless ta...
  5. CSS and Dreamweaver
    I'm a beginner Dreamweaver. I'm trying to look at existing CSS based sites (like the templates within Dreamweaver) to better understand how each CSS div tag was created and applied. When I create a web page within Dreamweaver using the CSS style/layer tools inside of Dreamw...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ketapillarPosted on 2003-09-22 at 19:56:30ID: 9410242

You need to cleanup your code... look for duplicates and delete them



<!--







<!--






<!--





<!--




<!--



<!--


<!--


<style type="text/css">
<!--
-->
</style>
----------------------------------------------

Place all your scripts together in between <HEAD> </HEAD> taqs

 

by: ketapillarPosted on 2003-09-22 at 20:08:22ID: 9410276

Try this...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><meta name="keywords" content="snow removal, snow shovelling, snow, shovel, shovelled, snow shovel, plow, snow plowing, snow plowed, block group, group plan, commercial, commercial snow removal, driveway, snow shovel service, winter, driveway, shovel driveway, michigan, MI, Michigan, Detroit, Dearborn, Dearborn Heights, Personal Snow Removal, ice, remove, salt">
<meta name="description" content="Personal Snow Removal will plow your home or your neighborhood block. Don't worry about your driveway or subdivision street in the winter.  We will shovel your snow.">
<link href="../style.css" rel="stylesheet" type="text/css">

<!-- TemplateBeginEditable name="doctitle" -->
<title> Dreamweaver Template</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/*
Live Date Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/


var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
      var mydate=new Date()
      var year=mydate.getYear()
      
      if (year < 1000) {
            year+=1900;
      }
      
      var day=mydate.getDay()
      var month=mydate.getMonth()
      var daym=mydate.getDate()
      if (daym<10) {
            daym="0"+daym;
      }
      
      var hours=mydate.getHours()
      var minutes=mydate.getMinutes()
      var seconds=mydate.getSeconds()
      var dn="AM"
      if (hours>=12) {
            dn="PM";
      }
      if (hours>12){
            hours=hours-12;
      }
      if (hours==0) {
            hours=12;
      }
      if (minutes<=9) {
            minutes="0"+minutes;
      }
      if (seconds<=9) {
            seconds="0"+seconds;
      }
      //change font size here
      var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn+"</b></font></small>"
      if (document.all) {
            document.all.clock.innerHTML=cdate;
      }
      else if (document.getElementById) {
            document.getElementById("clock").innerHTML=cdate;
      }
      else {
            document.write(cdate);
      }
      if (!document.all&&!document.getElementById) {
            getthedate();
      }
}

function goforit(){
      if (document.all||document.getElementById) {
            setInterval("getthedate()",1000);
      }
}

function loadImages() {
      MM_preloadImages('../images/layout/leftnav/leftnav_r1_c1_f2.gif','../images/layout/leftnav/leftnav_r2_c1_f2.gif','../images/layout/leftnav/leftnav_r4_c1_f2.gif','../images/layout/leftnav/leftnav_r6_c1_f2.gif','../images/layout/leftnav/leftnav_r8_c1_f2.gif','../images/layout/leftnav/leftnav_r10_c1_f2.gif','../images/layout/leftnav/leftnav_r12_c1_f2.gif','../images/layout/leftnav/leftnav_r14_c1_f2.gif');
}
//-->
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.address {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000066;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
}
-->
</style>
</head>

<body background="../images/layout/bg_ltBlue.jpg" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="loadImages();goforit();" >

<table border="0" cellpadding="0" cellspacing="0" width="760">
<!-- fwtable fwsrc="header_new.png" fwbase="header_new.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
 <tr>
  <td><table border="0" cellpadding="0" cellspacing="0" width="760">
      <tr>
       <td><img name="header_new_r1_c1" src="../images/layout/header_new/header_new_r1_c1.gif" width="243" height="73" border="0" alt=""></td>
       <td><table border="0" cellpadding="0" cellspacing="0" width="517">
           <tr>
            <td><img name="topheader" src="../images/layout/header_new/topheader.gif" width="517" height="5" border="0" alt=""></td>
           </tr>
           <tr>
            <td><table border="0" cellpadding="0" cellspacing="0" width="517">
                <tr>
                 <td><table border="0" cellpadding="0" cellspacing="0" width="468">
                     <tr>
                               <td><img name="header_new_r2_c3" src="../images/layout/header_new/header_new_r2_c3.gif" width="468" height="60" border="0" alt="Personal Snow Removal"></td>
                     </tr>
                     <tr>
                      <td><img name="bottomheader" src="../images/layout/header_new/bottomheader.gif" width="468" height="8" border="0" alt=""></td>
                     </tr>
                   </table></td>
                 <td><img name="endheader" src="../images/layout/header_new/endheader.gif" width="49" height="68" border="0" alt=""></td>
                </tr>
              </table></td>
           </tr>
         </table></td>
      </tr>
    </table></td>
 </tr>
 <tr>
  <td><table border="0" cellpadding="0" cellspacing="0" width="760">
      <tr>
          <td><a href="mailto:info@personalsnowremoval.com"><img name="tabheader" src="../images/layout/header_new/tabheader.gif" width="173" height="40" border="0" alt="e-mail"></a></td>
       <td><img name="pageheader" src="../images/layout/header_new/pageheader.gif" width="429" height="40" border="0" alt=""></td>
          <td><img name="header_new_r4_c4" src="../images/layout/header_new/header_new_r4_c4.gif" width="158" height="40" border="0" alt="(248) 559-2618"></td>
      </tr>
    </table></td>
 </tr>
</table>

<table width="760" border="0" cellpadding="0" cellspacing="0">
 <tr>
    <td width="150"><img src="/images/layout/spacer.gif" width="150" height="5
    "></td>
   <td width="450" align="center" valign="top" class="address" >24525 Southfield
      Road, Suite 202 <br>
     Southfield, Michigan 48075 <br>
     248.559.2618 | Fax 248.559.2620 <br> <a href="mailto:info@personalsnowremoval.com">E-mail:
      info@personalsnowremoval.com</a> </td>
   <!-- TemplateBeginEditable name="weather" -->
   <td width="160" align="center"><a href="http://www.weatherforyou.com/cgi-bin/hw3/hw3.cgi?forecast=zandh&place=Detroit&state=mi&country=us&zipcode="><img src="http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=hourly&place=Detroit&state=mi&alt=hwismallhourly&hwvbg=transparent&hwvtc=navy" alt="Weather Right Now In Detroit" width="140" height="70" border="0"></a>
      <br>
     <br>
<span id="clock"></span>
   <!-- TemplateEndEditable --></tr>
 <tr>
    <td></td>
   <td></td>
   <td></td>
 </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0">
 <tr>
    <td> </td>
 </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0">
 <tr valign="top">
    <td width="147">
<table border="0" cellpadding="0" cellspacing="0" width="147">
<!-- fwtable fwsrc="leftnav.png" fwbase="leftnav.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
 <tr>
  <td><a href="../index.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r1_c1','','../images/layout/leftnav/leftnav_r1_c1_f2.gif',1);"><img name="leftnav_r1_c1" src="../images/layout/leftnav/leftnav_r1_c1.gif" width="147" height="17" border="0" alt="Home"></a></td>
 </tr>
 <tr>
  <td><a href="../coverageareas.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r2_c1','','../images/layout/leftnav/leftnav_r2_c1_f2.gif',1);"><img name="leftnav_r2_c1" src="../images/layout/leftnav/leftnav_r2_c1.gif" width="147" height="17" border="0" alt="Coverage Areas"></a></td>
 </tr>
 <tr>
  <td><a href="../guidelines.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r4_c1','','../images/layout/leftnav/leftnav_r4_c1_f2.gif',1);"><img name="leftnav_r4_c1" src="../images/layout/leftnav/leftnav_r4_c1.gif" width="147" height="17" border="0" alt="Program Guidelines"></a></td>
 </tr>
 <tr>
  <td><a href="../cost.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r6_c1','','../images/layout/leftnav/leftnav_r6_c1_f2.gif',1);"><img name="leftnav_r6_c1" src="../images/layout/leftnav/leftnav_r6_c1.gif" width="147" height="17" border="0" alt="Cost For Services"></a></td>
 </tr>
 <tr>
  <td><a href="../register.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r8_c1','','../images/layout/leftnav/leftnav_r8_c1_f2.gif',1);"><img name="leftnav_r8_c1" src="../images/layout/leftnav/leftnav_r8_c1.gif" width="147" height="17" border="0" alt="Registering Online"></a></td>
 </tr>
 <tr>
  <td><a href="../announcements.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r10_c1','','../images/layout/leftnav/leftnav_r10_c1_f2.gif',1);"><img name="leftnav_r10_c1" src="../images/layout/leftnav/leftnav_r10_c1.gif" width="147" height="17" border="0" alt="Announcements"></a></td>
 </tr>
 <tr>
  <td><a href="../commercial.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r12_c1','','../images/layout/leftnav/leftnav_r12_c1_f2.gif',1);"><img name="leftnav_r12_c1" src="../images/layout/leftnav/leftnav_r12_c1.gif" width="147" height="17" border="0" alt="Announcements"></a></td>
 </tr>
 <tr>
  <td><a href="../contact.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('leftnav_r14_c1','','../images/layout/leftnav/leftnav_r14_c1_f2.gif',1);"><img name="leftnav_r14_c1" src="../images/layout/leftnav/leftnav_r14_c1.gif" width="147" height="18" border="0" alt="Contact Us"></a></td>
 </tr>
</table>
     &nbsp;<!-- TemplateBeginEditable name="LeftNav SideBar" -->
      <table width="147" border="0" cellpadding="4" cellspacing="0" class="leftnav">
       <tr>
          <td align="center"> <div align="center">The Internet Home of Convenience
              for Snowbound Homeowners</div></td>
       </tr>
     </table>
     <!-- TemplateEndEditable --></td>
   <!-- TemplateBeginEditable name="Body" -->
    <td width="455" class="body"> <table width="100%" border="0" cellspacing="0" cellpadding="10">
       <tr>
          <td valign="top"> <p>Have you ever thought that thousands of Metro-Detroiters
              pay utility companies hundreds of dollar each year to protect them
              just in case the furnace breaks down, the air conditioner stops
              working or the stove won&#8217;t light. </p>
           <p>There is something else to stay prepared for in Michigan. SNOW
              FALLS! Signing up for our program eliminates this back breaking
              work for you and the tendency to wait for the neighborhood kids
              to come when most of them are home playing video games if snow fall
              results in a day off from school.</p>
           <p>OUR TRACTORS WILL BE ON YOUR STREET: CLEANING SIDEWALKS, DRIVEWAYS
              AND WALKWAYS. Add $25.00 per house, per year and the street is cleaned
              too. Opt out of the sidewalk, driveway and walkway program, pay
              $55.00 for the public street only.</p>
           <p>All you have to do is phone Ms. Davis in our offices at 248.559.2618,
              Ext. 22 any day but Thursday or click on the link &#8220;REGISTERING
              ON-LINE&#8221; and pay $139.95 for the season. After this winter
              season, beginning April 1st, 2004 you can begin paying a monthly
              rate of $15.00 and be covered for life and never clean snow again
              from December 1st through March 31st each season.</p>
           <p>We&#8217;re equipped with 15 snow tractors with 46&#8221; snow
              throwers to handle your private property. However, our limit is
              900 homes or 23 blocks, so the time to get on our list is now.<br>
           </p></td>
       </tr>
     </table></td>
   <td align="center"> <p class="address">Metro Detroit Weather</p>
     <p align="center"><img src="../images/layout/line_dashed.gif" width="140" height="2"></p>
     <p><a href="../register.htm"><img src="../images/layout/highlight_box.gif" alt="Register Now" width="140" height="130" border="0"></a></p>
     <p><img src="../images/layout/line_dashed.gif" width="140" height="2"></p>
     <p><img src="../images/layout/arrow.gif" width="10" height="10" hspace="3" align="absmiddle">
        A Project Of Detroit Maid &amp; Specialty Chore Services, Inc. and Personal
        Snow Removal, Inc.</p></td>
   <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="Right Column Text" -->
    <!-- TemplateEndEditable --></tr>
 <tr valign="top">
    <td>&nbsp;</td>
   <td><table width="100%" border="0" cellpadding="3" cellspacing="0" class="fineprint">
       <tr>
          <td> <div align="center">Copyright &copy; 2003. PersonalSnowRemoval.com
              All Rights Reserved.<br>
             &nbsp; </div></td>
       </tr>
     </table></td>
   <td>&nbsp;</td>
 </tr>
</table>
</body>
</html>

 

by: ketapillarPosted on 2003-09-22 at 20:11:40ID: 9410287

Cursory cleanup and modified body tag.  Got rid of error within

<body background="../images/layout/bg_ltBlue.jpg" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../images/layout/leftnav/leftnav_r1_c1_f2.gif','../images/layout/leftnav/leftnav_r2_c1_f2.gif','../images/layout/leftnav/leftnav_r4_c1_f2.gif','../images/layout/leftnav/leftnav_r6_c1_f2.gif','../images/layout/leftnav/leftnav_r8_c1_f2.gif','../images/layout/leftnav/leftnav_r10_c1_f2.gif','../images/layout/leftnav/leftnav_r12_c1_f2.gif','../images/layout/leftnav/leftnav_r14_c1_f2.gif',');goforit();" >

shortened and moved to it's own function.  Problem was with the trailing ,'

...../images/layout/leftnav/leftnav_r14_c1_f2.gif',');goforit();">

should have been

...../images/layout/leftnav/leftnav_r14_c1_f2.gif');goforit();">

 

by: linquePosted on 2003-09-22 at 21:17:27ID: 9410495

ketapillar: much appreciation for superb coding!  I appreciate your time too

 

by: ketapillarPosted on 2003-09-22 at 21:31:51ID: 9410537

your welcome :)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...