2010.06.29 자출 (압구정~증산)

사무실에서 7시 30분에 출발. 비가 조금 내리더니 달리기 시작하니까 오지 않는다. 무리하지 않고 천천히 달렸다. 그래도, 도착하니 8시 40분. 평균 1시간10분 소요되는군. 습도가 높아서인지 무지 덮다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 21:00 2010/06/29 21:00
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5316

[javascript] Object 속성 보기

var obj= document.getElementById("obj");
for(var x in obj) {
  document.write("<B>"+ x + "</B>" + " : ", [obj[x]] + "<br />");
}


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 18:55 2010/06/29 18:55
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5315

    var rowCnt = 0;
        
function fnInputCreate(tbodyId, pnum,limitCount, pnumSize,pnumColor) {
    var myTbody = document.getElementById(tbodyId);

    //alert(tbodyId);

    var row     = document.createElement("tr");
    var rowId = "row" + rowCnt++;

    var cell             = document.createElement("td");
    var cell2             = document.createElement("td");
    var cell3             = document.createElement("td");
    var cell4             = document.createElement("td");
    var cell5             = document.createElement("td");
    var i_idx             = document.createElement("input");    //-- o_idx
    var i_pnum         = document.createElement("input");    //-- o_num
    var i_countchk    = document.createElement("input");    //-- o_countcheck
    var i_size             = document.createElement("select");    //-- o_size
    var i_color         = document.createElement("select");    //-- o_color
    var i_count        = document.createElement("input");    //-- o_count

    row.setAttribute("style","text-align:center;")
    
    i_idx.setAttribute("type", "hidden");
    i_idx.setAttribute("name", "o_idx[]");
    i_idx.setAttribute("value", "");
    i_pnum.setAttribute("type", "hidden");
    i_pnum.setAttribute("name", "o_num[]");
    i_pnum.setAttribute("value", pnum);
    i_countchk.setAttribute("type", "hidden");
    i_countchk.setAttribute("name", "o_countcheck[]");
    i_countchk.setAttribute("value", limitCount);
    
    i_size.setAttribute("name", "o_size[]");
    i_size.setAttribute("value", "M");
    i_size.setAttribute("style", "width:60px;");
    
    //--- Size Option first
    if (isIE()) {
        i_size.options[0] = new Option("Size", "");
    }
    else {
        i_sizeop     = document.createElement("option");    //-- o_size  - option
        i_sizeop.appendChild(document.createTextNode("Size"));
        i_sizeop.setAttribute("value", "");
        i_size.options.add(i_sizeop);
    }    
    for (var i = 0; i < pnumSize.length; i++){
            ii = i +1;
        if (isIE()) {
            i_size.options[ii] = new Option(pnumSize[i], pnumSize[i]);    
        }else{
            i_sizeop     = document.createElement("option");    //-- o_size  - option
            i_sizeop.appendChild(document.createTextNode(pnumSize[i]));
            i_sizeop.setAttribute("value", pnumSize[i]);
            i_size.options.add(i_sizeop);
        }
    };
        
    i_color.setAttribute("name", "o_color[]");
    i_color.setAttribute("value", "1");
    i_color.setAttribute("style", "width:100px;");
    
    //--- Color Option First
    if (isIE()) {
        i_color.options[0] = new Option("Color", "");    
    }else{
        i_colorop     = document.createElement("option");    //-- o_color - option
        i_colorop.appendChild(document.createTextNode("Color"));
        i_colorop.setAttribute("value", "");
        i_color.options.add(i_colorop);
    }
    for (var i = 0; i < pnumColor.length; i++){
            ii = i + 1;
        if (isIE()) {
            i_color.options[ii] = new Option(colorchip_name(pnumColor[i]), pnumColor[i]);    
        }else{
            i_colorop     = document.createElement("option");    //-- o_size  - option
           //i_colorop.appendChild(document.createTextNode(pnumColor[i]));
            i_colorop.appendChild(document.createTextNode(colorchip_name(pnumColor[i])));
            i_colorop.setAttribute("value", pnumColor[i]);
            i_color.options.add(i_colorop);
        }
    };
    
    
    
    
    i_count.setAttribute("type", "text");
    i_count.setAttribute("name", "o_count[]");
    i_count.setAttribute("value", limitCount);
    i_count.setAttribute("style", "ime-mode:disabled;width:50px;text-align:right;");

    var button  = document.createElement("input");
    var button2 = document.createElement("input");

    if (isIE()) {
        row.id  = rowId;
        button  = document.createElement("<input onclick=\"fnInputCreate('" + tbodyId + "','" + pnum + "','" + limitCount + "', size_" + pnum + ", color_" + pnum + ")\"  />");
        button2 = document.createElement("<input onclick=\"fnInputRemove('" + rowId + "')\"    />");
    } else {
        row.setAttribute("id", rowId);
        button.setAttribute("onclick", "fnInputCreate('" + tbodyId + "','" + pnum + "','" + limitCount + "', size_" + pnum + ", color_" + pnum + ")");
        button2.setAttribute("onclick", "fnInputRemove('" + rowId + "')");
    }

    button.setAttribute("type",  "button");
    button.setAttribute("value", "+");
    button.setAttribute("class", "newButton");
    button.setAttribute("style", "width:25px;");
    button2.setAttribute("type", "button");
    button2.setAttribute("value", "-");
    button2.setAttribute("class", "newButton");
    button2.setAttribute("style", "width:25px;");
 
    cell.appendChild(i_idx);
    cell.appendChild(i_pnum);
    cell.appendChild(i_countchk);
    cell.appendChild(i_size);
    cell2.appendChild(i_color);
    cell3.appendChild(i_count);
    cell4.appendChild(button);
    cell5.appendChild(button2);

    row.appendChild(cell);
    row.appendChild(cell2);
    row.appendChild(cell3);
    row.appendChild(cell4);
    row.appendChild(cell5);

    myTbody.appendChild(row);
}

function delEventPresentRow(buttonObj) {
    var tableBody = document.getElementById("targetBody");
    var index = buttonObj.parentElement.parentElement.rowIndex;
    tableBody.removeChild(tableBody.childNodes[index]);
}

function fnInputRemove(rowId) {
    var row = document.getElementById(rowId);
    //alert(rowId);
    row.parentNode.removeChild(row);
}

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 15:14 2010/06/29 15:14
, , , , , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5314


function isIE() {
    var name = navigator.appName;
    if (name == "Microsoft Internet Explorer")
        return true;
    else
        return false;
}
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 15:12 2010/06/29 15:12
, , , ,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5313

'고마움의 창고'는 사용하지 않으면
않을수록 용량이 급격히 줄어들지만,
계속 사용하고 또 사용하다 보면
더욱 커져만 가는 것이 고마움의 창고다.
누구나 마음속에는 고마움의 창고가 있을 듯 싶다.
오늘따라 직원들에 대한 고마움으로 가슴이 저며 온다.
- 고환택, ‘철든 놈이 성공한다’에서


심리학자 로버트 에몬스(Robert Emmons)는 감사에 대한 연구 결과
‘고마운 것들을 하루 5개 정도 꾸준히 기록하는 사람은
스트레스가 적고 건강하며 유쾌하고 낙천적이다’는 사실을 발견했습니다.
고마운 마음이 들면, 과거에 대한 원망이 줄어들고
미래에 대해 더욱 긍정적으로 되고,
감사를 많이 느끼는 사람들은
더 낙관적이고 사고가 유연해서
문제해결 능력도 더 뛰어나다고 합니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 09:21 2010/06/29 09:21
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5312

2010.06.29 자출(증산 ~ 압구정)

기온이 조금 내려간 아침. 안개가 많다.
저단기어로 쉬지않고 압구정까지.
7시 40분에 집앞에서 출발, 8시 40분에 압구정 사무실 도착.

오는 길에  한강 수영장에는 물을 가득 채워두었더라.
이번 주말에 개장인가보다.
개장 첫날에 가고 싶은데.

새로산 Take5언더레이어 긴팔을 입었더니 땀이 어디 갓는지 모르겠군.

자전거, 후덜덜 하다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 09:21 2010/06/29 09:21
,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5311

도전과제

'음악'은 나의 궁극적인 도전과제다.
가장 가슴 뛰는 삶은 결코 통달할 수 없는
그 무엇을 좇는 삶이리라. 나는 힌다 선생님을
만나기전까지 피아노에 관한 모든 것을 통달해가고 있다고
생각했다. 나름대로 정상에 다다르고 있다고 생각했다.
하지만 나는 힌다 선생님에게서 정상에 도착하면
그 뒤로 또다른 거대한 산이 기다리고 있음을
배웠다. 그 산에 대한 '도전' 정신이
매일 나를 살아가게 한다.


- 패트릭 헨리 휴스의《나는 가능성이다》중에서 -


* 누구에게나 도전과제가 있습니다.
혹시라도 없다면 그건 '심장이 멈춘' 삶입니다.
가슴은 이미 차갑게 식어버리고, 몸은 살아있으나
정신은 잠들어 있는 '꿈이 없는' 인생입니다.
큰 산과도 같은 도전과제를 찾으십시오.
그리고 이를 위해 매일 도전하십시오.
도전하고 또 도전하는 사람만이
'살아있는' 사람입니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/06/29 09:12 2010/06/29 09:12
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5310


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2010/06   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Statistics Graph

Site Stats

Total hits:
180247
Today:
94
Yesterday:
299