При работе с сайтом на ModX Evolution (1.0.3, но, думаю, это не важно в данном случае) обнаружил, что в IE выпадающее меню конфликтует со скриптом вкладок ajaxtabs; в остальных браузерах все нормально.
Ссылка на страницу:
http://msi-aval.ru/testsite
Скрипт вкладок:
http://msi-aval.ru/testsite/ajaxtabs/ajaxtabs.js
Проблема в выделенной жирным строке:
this.defaultIframe=’<iframe src="about:blank" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" class="tabcontentiframe" style="width:100%; height:auto; min-height: 269px; font-size: 10px;"></iframe>’. Без нее выпадающее меню работает.
function ddajaxtabs(tabinterfaceid, contentdivid){
this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
this.enabletabpersistence=true
this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
this.contentdivid=contentdivid
this.defaultHTML=""
this.defaultIframe='<iframe src="about:blank" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" class="tabcontentiframe" style="width:100%; height:auto; min-height: 269px; font-size: 10px;"></iframe>'
this.defaultIframe=this.defaultIframe.replace(/<iframe/i, '<iframe name="'+"_ddajaxtabsiframe-"+contentdivid+'" ')
this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}
Как подправить строку, чтобы в Эксплорере и меню, и вкладки работали одновременно?