Changeset 4576 for temp/trunk/html


Ignore:
Timestamp:
2006/09/10 20:51:04 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

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