There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
What's wrong with this code


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Viper's Avatar
Computer Specs
Senior Member with 334 posts.
 
Join Date: Nov 1999
Location: Uk
Experience: MCP, MCDST, ITIL
18-Jan-2002, 09:06 AM #1
What's wrong with this code
I'm slightly confused as to what is wrong with this code. It works fine, yet in Dreamweaver 4, the FORM tags are highlighted......meaning there is possibly a problem with them. I can't see what it is though.

Code:
<HTML>
<HEAD>

</HEAD>

<BODY  BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#990000" TEXT="#000000">
<font color="#3A3A3A" size="-1" face="Arial,Helvetica,Univers,Zurich BT"> 

    <script language="javascript" type="text/javascript">
	function F1_CountDown() {
		var gp		= new Date("Feb 26, 2002 13:50:00 GMT");
		var countdown	= new Date();
		var gap		= Math.floor((gp.getTime() - countdown.getTime()) / 1000);

		secs 	= gap % 60;
		gap 		= Math.floor(gap / 60);
		mins 	= gap % 60;
		gap		= Math.floor(gap / 60);
		hours	= gap % 24;
		gap		= Math.floor(gap / 24);
		days		= gap;

		document.forms['countdown'].elements['days'].value = (days ? days : 0);
		document.forms['countdown'].elements['hours'].value = (hours < 10 ? "0"+hours : hours);
		document.forms['countdown'].elements['mins'].value = (mins < 10 ? "0"+mins : mins);
		document.forms['countdown'].elements['secs'].value = (secs < 10 ? "0"+secs : secs);

	}
	setInterval("F1_CountDown()",1000);
</script>
    <br>
    </font>
          <tr> 
        <td colspan="3"> 
<form name="countdown">
				<font color="#3A3A3A" size="-1" face="Arial,Helvetica,Univers,Zurich BT"> 
          </font>
        
    <table cellspacing="0" cellpadding="1" border="0" width="577">
      <tr> 
              <td style="font-family: verdana; color: #000000; font-size: 7.5pt; font-weight: bold;" valign="middle"> 
                &nbsp;&nbsp;
                <input style="background-color: #ffffff; color: #CC0000; font-family: verdana; font-size: 7.5pt; border-width: 0;" name="days" size="2">
                &nbsp;days, 
                <input style="background-color: #ffffff;  font-family: verdana; color: #CC0000; font-size: 7.5pt; border-width: 0;" name="hours" size="1">
                &nbsp;hours, 
                <input style="background-color: #ffffff;  font-family: verdana; color: #CC0000; font-size: 7.5pt; border-width: 0;" name="mins" size="1">
                &nbsp;minutes & 
                <input style="background-color: #ffffff;  font-family: verdana; color: #CC0000; font-size: 7.5pt; border-width: 0;" name="secs" size="1">
          &nbsp;seconds... until the launch of www.amcnab.co.uk </td>
            </tr>
				
</form>
          </table>
        </td>
      </tr>
    
    
      </BODY>
</HTML>
grrr....i used the "code" tags yet it is displaying the html
__________________
-- MCP, MCDST, ITIL
-- My Blog
-- Roll with the punches, tomorrow's another day
RandyG's Avatar
Distinguished Member with 8,052 posts.
 
Join Date: Jun 2000
Location: American living in Dublin, Ireland
Experience: Advanced
19-Jan-2002, 07:28 PM #2
Re: What's wrong with this code
I don't recall ever seeing a "form name =" before.

take a look at http://www.willcam.com/cmat/html/forms.html#Form for some hints.
Viper's Avatar
Computer Specs
Senior Member with 334 posts.
 
Join Date: Nov 1999
Location: Uk
Experience: MCP, MCDST, ITIL
20-Jan-2002, 08:41 AM #3
{solved}
Managed to "solve" it. I had some tags in the wrong place that were causing errors. Removed the tags, or moved them to the correct place and now everything works fine with no errors

Thanks anyway.

Last edited by Viper : 20-Jan-2002 08:50 AM.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:10 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.