Re: critique requested

by "Michael West" <webmaster(at)mwwebdesign.com>

 Date:  Tue, 1 Feb 2000 17:21:21 -0800
 To:  "Matt Kreps" <matt(at)morningstarcomm.com>
 Cc:  "hwg-critique" <hwg-critique(at)hwg.org>
  todo: View Thread, Original
>Brian wrote:

     <snip>
>Also the date showed the year as 100. This is a getYear() problem between
IE and NS
     </snip>

Sorry your wrong Brian the getYear() property is supported by IE 3.0 and NS
2.0  the problem is many JS writers like to only concentrate on one browser
to make things simple ie: Matt's script using a format specific to IE. The
script I've written below will work for IE 3.0 thru IE 5.0 and NS 2.0 thru
4.7 I haven't checked it out on the NS 5.0 beta but there should be no
problems. If anyone has NS 5.0 beta and the script doesn't work please let
me know.


>Matt Kreps wrote:
    <snip>
> I am particularly interested in making sure the site displays correctly on
Wintel machines and that the date script works.
    </snip>

Matt

Here is a date script for you and anyone else on the list that needs it,
I've added extra comments to help on installation. And if anyone would like
the Dream Weaver Object version it's available at my web site below.

<div id=mwDateLayer style="position: absolute; width: 200; height: 20; top:
5px; left: 5px; z-index: 1">
// Adjust the position of the script using the top and left pixel number
above
// To place in a table remove the line above and the </div> closing tag
below
// Table cell restrictions depend on the font size and face information
below

<script language="JavaScript">
// Dynamic Date Dreamweaver Object (c) 1999 Michael West,
webmaster(at)mwwebdesign.com
// Please report any bugs or improvement suggestions.

document.write("<font color='#000000' font size='+0' font
face='arial'><b><i>")
// adjust the font color, size and face on the above line
// remove the bold and or italic tag above it not wanted,
// make sure that you remove the closing tag below also .

var mydate=new Date()
var year=mydate.getYear()
if (year<2000)
year += (year < 1900) ? 1900 : 0
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"
 )
var montharray=new
Array("January","February","March","April","May","June","July","August","Sep
tember","October","November","December")
document.write("&nbsp;"+dayarray[day]+", "+montharray[month]+" "+daym+",
"+year+"&nbsp;")
document.write("</b></i></font>")
</script>
</div>



--
Sincerely,
Michael West
http://www.mwwebdesign.com/

HTML: hwg-critique mailing list archives, maintained by Webmaster @ IWA