Changeset 4564 for temp/trunk/html
- Timestamp:
- 2006/09/10 20:46:57 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/js/layout_design.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/js/layout_design.js
r4563 r4564 107 107 // Ãͤò¼èÆÀ 108 108 function getAttrValue ( elm, attrname ) { 109 /* 109 110 if (typeof(elm.attributes[ attrname ]) != 'undefined') { 110 111 return elm.attributes[ attrname ].nodeValue; 111 112 } 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 = t0.attributes.item(attrname) 121 } 122 else 123 { 124 val = t0.attributes.getNamedItem(attrname) 125 } 126 } else { 127 val = t0.attributes.getNamedItem(attrname) 128 } 129 130 return val; 131 132 112 133 } 113 134 … … 390 411 391 412 for ( var i = 1; i < all_elms.length; i++ ) { 392 393 //test = all_elms[i].attributes.item('class');394 //test = all_elms[i].attributes.getNamedItem('class');395 //alert(test.nodeValue);396 397 //1 id̾¤¬'test0'¤Î¥¨¥ì¥á¥ó¥È¤òÊÑ¿ôt0¤ØÆþ¤ì¤ë398 var t0 = all_elms[i]399 // var t0 = document.getElementById('test0')400 401 402 //2 win-e5¤òʬ´ô¤·¤Æt0¤Îid°À¤òÊÑ¿ôt0a¤ØÆþ¤ì¤ë403 if((typeof ScriptEngineMajorVersion)=='function')404 {405 if( Math.floor(ScriptEngineMajorVersion()) == 5 &&406 navigator.userAgent.indexOf("Win")!=-1) //win-e5Âбþ407 {408 t0a = t0.attributes.item('id')409 }410 else411 {412 t0a = t0.attributes.getNamedItem('id')413 }414 } else {415 t0a = t0.attributes.getNamedItem('id')416 }417 418 //3 Safari¤ÈKonqueror¤Ïspecified¤òȿž419 /*420 syuuseiSpecified = t0a.specified421 if(navigator.userAgent.indexOf('Safari')!=-1 ||422 navigator.userAgent.indexOf('Konqueror')!=-1 )423 syuuseiSpecified = !t0a.specified424 */425 426 427 //4 t0a¤Î³Æ¥¢¥È¥ê¥Ó¥å¡¼¥È¤ò¥À¥¤¥¢¥í¥°É½¼¨¤¹¤ë428 alert(typeof t0a.value )429 430 431 432 413 // class¤¬ dragged_elm ¤Î¾ì¹ç¤Î¤ß½èÍý¤ò¹Ô¤¦ 433 414 if ( getAttrValue ( all_elms[i], 'class' ) == 'dragged_elm' ) {
Note: See TracChangeset
for help on using the changeset viewer.
