Changeset 4580 for temp/trunk
- Timestamp:
- 2006/09/10 20:53:43 (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
r4579 r4580 108 108 function getAttrValue ( elm, attrname ) { 109 109 110 alert(typeof(elm.attributes[ attrname ])); 111 110 112 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 117 122 { 118 val = elm.attributes.item(attrname) 119 } 120 else 121 { 123 val = elm.attributes.getNamedItem(attrname) 124 } 125 } else { 122 126 val = elm.attributes.getNamedItem(attrname) 123 127 } 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 } 133 133 } 134 134
Note: See TracChangeset
for help on using the changeset viewer.
