Changeset 4583


Ignore:
Timestamp:
2006/09/10 20:56:42 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

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