Changeset 4583
- Timestamp:
- 2006/09/10 20:56:42 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/js/layout_design.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/js/layout_design.js
r4582 r4583 107 107 // Ãͤò¼èÆÀ 108 108 function 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 // } 129 113 } 130 114
Note: See TracChangeset
for help on using the changeset viewer.
