bubu Posted September 22, 2005 Report Share Posted September 22, 2005 atgriezt false vērtību no onclick eventa. Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2005 Author Report Share Posted September 22, 2005 atgriezt false vērtību no onclick eventa. 22927[/snapback] es meegjinaaju atgriezt gan no funkcijas, gan pa taisno ar ieksh onclick onclick="showHide(...); return false; " bet shis taapat izpilda to linku.. murgaini :( Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 parād pilnu kodu. Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2005 Author Report Share Posted September 22, 2005 (edited) parād pilnu kodu. 22930[/snapback] kods jau tas pats kas ieprieksh, tikai pieliku onclickam klaat return false; <a href="#" onclick="showHide(this, 'kautkas'); return false;" class="lilMenuHead"><img src="inc/edit.gif" alt="" width="16" height="16"></a> meegjinaaju arii shitaa: <a href="#" onclick="return showHide(this, 'kautkas'); " class="lilMenuHead"><img src="inc/edit.gif" alt="" width="16" height="16"></a> un ieksh showhide beigaas ieliku return false; ieksh firefox un operas darbojas.. IE nepatiik, kautgan nezkaapeec straadaa, viena rinda.. taa kur menuHead.height.. varbuut taapeec gljuko ? jaapastaas.. showHide(menuHead, bloks) { var activeMenu=document.getElementById(bloks); if (lastMenu) { if (activeMenu != lastMenu) { lastMenu.style.display = 'none'; lastMenu = activeMenu; } else { lastMenu = false; } } else { lastMenu = activeMenu; } menuHead.blur(); activeMenu.style.display = (activeMenu.style.display=='block'?'none':'block'); activeMenu.style.left = findPosX(menuHead) - 141; activeMenu.style.top = findPosY(menuHead) + menuHead.height; lastMenuHead = menuHead; } Edited September 22, 2005 by andrisp Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2005 Author Report Share Posted September 22, 2005 tieshaam vaina tur... diivaini Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 blur jau dara, ka kursoru uzliek uz tā elementa. A kursoru uzliekot tiek bīdīts ekrāns. Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2005 Author Report Share Posted September 22, 2005 blur jau dara, ka kursoru uzliek uz tā elementa. A kursoru uzliekot tiek bīdīts ekrāns. 22935[/snapback] nee, preteeji: tas nonjem focusu nost no elementa.. bet nu es saku, es nonjeemu no to menuHead.height un taa vietaa uzliku vienkaarshi ciparu, IE uzreiz normaali saaka straaadaat.. diivaini.. un diivaini ir tas, ka itkaa IE normaali interpreteeja (vismaz spriezhot peec rezultaatiem) to menuHead.height (kautgan uzraadiija erroru). Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 ak tpfu, pareiz noņem nost :) Kas ir menuHeight, ka tu tam heigth propertiju mēģini nolasīt? Moš alert(menuHead.height) pasakties visprims? Link to comment Share on other sites More sharing options...
andrisp Posted September 22, 2005 Author Report Share Posted September 22, 2005 ak tpfu, pareiz noņem nost :)Kas ir menuHeight, ka tu tam heigth propertiju mēģini nolasīt? Moš alert(menuHead.height) pasakties visprims? 22938[/snapback] man viss ir skaidrs.. alter pazinjoja undefined taads .height nemaz neeksistee :).. kautkur vienkaarshi uzguugleeju kautko taadu un uzreiz iebaazu iekshaa.. iznjeemu aaraa vispaar to rindu un viss ir a ok.. vinjs taapat man atver to boxu uzreiz zem linka.. taakaa man nemaz nevajag apreekjinaat top mainiigo. Link to comment Share on other sites More sharing options...
Recommended Posts