Thanks Mordechai,

I'll start with the easy one first:

var d=new Date();yr=d.getFullYear();if (yr!=2003)document.write ("© "+yr); myplace

which gives me: © 2007 myplace

Here's my pathetic attempt:

window.onload = function() {
  var para = document.createElement("p");
  var txt1 = document.createTextNode("© ");
   var year = new Date().getFullYear();
   var now = year;
   var txt2 = document.createTextNode()
  var txt3 = document.createTextNode(" FIFe");
  para.appendChild(txt1);
  para.appendChild(txt2);
  para.appendChild(txt3);
  var testdiv = document.getElementById("testdiv");
  testdiv.appendChild(para);
}

and think I know where it is wrong
I need to get it to write the year (ex-document +yr) in the () of the txt2 node, but I don't know how to do it.

I also don't think the if (yr!=2003) from the old js is necessary, but I may be wrong

Bob Schwartz wrote:
I am in the process of converting my javascript library to nonobtrusive js.

Where could I go for help in converting these?
Here, for one place. Can you be more specific about the problems?


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to