Changeset 4584 for temp/trunk/html
- Timestamp:
- 2006/09/10 20:58:07 (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
r4583 r4584 107 107 // Ãͤò¼èÆÀ 108 108 function getAttrValue ( elm, attrname ) { 109 / / if (typeof(elm.attributes[ attrname ]) != 'undefined') {110 alert(elm.attributes[ attrname ].nodeValue);109 /* 110 if (typeof(elm.attributes[ attrname ]) != 'undefined') { 111 111 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; 113 135 } 114 136
Note: See TracChangeset
for help on using the changeset viewer.
