Changeset 4580 for temp/trunk


Ignore:
Timestamp:
2006/09/10 20:53:43 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r4579 r4580  
    108108function getAttrValue ( elm, attrname ) { 
    109109 
     110alert(typeof(elm.attributes[ attrname ])); 
     111 
    110112    if (typeof(elm.attributes[ attrname ]) != 'undefined') { 
    111  
    112     val = ""; 
    113     if((typeof ScriptEngineMajorVersion)=='function') 
    114     { 
    115         if( Math.floor(ScriptEngineMajorVersion()) == 5 && 
    116             navigator.userAgent.indexOf("Win")!=-1) //win-e5Âбþ 
     113        val = ""; 
     114        if((typeof ScriptEngineMajorVersion)=='function') 
     115        { 
     116            if( Math.floor(ScriptEngineMajorVersion()) == 5 && 
     117                navigator.userAgent.indexOf("Win")!=-1) //win-e5Âбþ 
     118                { 
     119                val = elm.attributes.item(attrname) 
     120                } 
     121            else 
    117122            { 
    118             val = elm.attributes.item(attrname) 
    119             } 
    120         else 
    121         { 
     123                val = elm.attributes.getNamedItem(attrname) 
     124            } 
     125        } else { 
    122126            val = elm.attributes.getNamedItem(attrname) 
    123127        } 
    124     } else { 
    125         val = elm.attributes.getNamedItem(attrname) 
    126     } 
    127      
    128     alert(elm.attributes[ attrname ].nodeValue+"/"+val.value); 
    129      
    130     return val.value; 
    131         } 
    132      
     128         
     129        alert(elm.attributes[ attrname ].nodeValue+"/"+val.value); 
     130         
     131        return val.value; 
     132    } 
    133133} 
    134134 
Note: See TracChangeset for help on using the changeset viewer.