Tuesday, November 30, 2004

Hey! The web site has been rewritten

Hey! See this is the new Wa Web. During the Thanksgiving holiday. I spent 4 days (13*4=52 working hours) to learn javascript, and debug the javascript. The time is so worthwhile and I have demostrated lots of technique.

I never see a programming language like javascript use lots of single quotation marks and double quotation marks (See number 3). The most amazing sentences are:


1. one and a half dozen of parameters:
function Item(text, overtext, status, title, href, frame, length, spacing, target,textcol, overtextcol, backcol, overbackcol, iconimg,overiconimg,backimg,overbackimg, textstyle, overtextstyle, textsize, overtextsize) {

2. Execute and Execute:
eval('document.all.menu' + menuCount + 'span' + changeArray[menuCount] + '.innerHTML=newtext;');

3. The longest sentence:

str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderclass ? 3 : 0) + '"><tr> <td id="menu'+currMenu+'table'+currItem+'" '+ (backimg ? 'background="' + backimg + '" ' : '') +' align="left" height="' + (h - 7) + '"><a id="menu'+currMenu+'link'+currItem+'" style="' + textstyle + '" title="' + title + '" class="' + textclass + '" href="%27%20%2B%20href%20%2B%20%27"' + (frame ? ' target="' + frame + '">' : '>') +'<font id="menu'+currMenu+'textcol'+currItem+'" color="'+ textcol +'" size="'+ textsize +'">'+ (iconimg ? '<img id="menu'+ currMenu +'ico' + currItem +'" border="0" src="'+ iconimg + '" width="16" height="16">':'<img id="menu'+ currMenu +'ico' + currItem + '" border="0" src="" width="0" height="0">')+ '<span id="menu'+ currMenu +'span' + currItem + '" innerHTML="' + text + '"></span></font></a></td> ';<br>


No comments: