Changeset 4584 for temp/trunk


Ignore:
Timestamp:
2006/09/10 20:58:07 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/js/layout_design.js

    r4583 r4584  
    107107// Ãͤò¼èÆÀ 
    108108function getAttrValue ( elm, attrname ) { 
    109 //  if (typeof(elm.attributes[ attrname ]) != 'undefined') { 
    110         alert(elm.attributes[ attrname ].nodeValue); 
     109/* 
     110    if (typeof(elm.attributes[ attrname ]) != 'undefined') { 
    111111        return elm.attributes[ attrname ].nodeValue; 
    112 //  } 
     112    } 
     113*/   
     114 
     115    alert(typeof elm.attributes.getNamedItem(attrname)); 
     116    val = ""; 
     117    if((typeof ScriptEngineMajorVersion)=='function') 
     118    { 
     119        if( Math.floor(ScriptEngineMajorVersion()) == 5 && 
     120            navigator.userAgent.indexOf("Win")!=-1) //win-e5Âбþ 
     121            { 
     122            val = elm.attributes.item(attrname) 
     123            } 
     124        else 
     125        { 
     126            val = elm.attributes.getNamedItem(attrname) 
     127        } 
     128    } else { 
     129        val = elm.attributes.getNamedItem(attrname) 
     130    } 
     131     
     132    alert(elm.attributes[ attrname ].nodeValue+"/"+val.value); 
     133     
     134    return val.value; 
    113135} 
    114136 
Note: See TracChangeset for help on using the changeset viewer.