KillerBean Posted October 27, 2006 Report Share Posted October 27, 2006 Pats neko daudz no JS nesaprotu, tapeec panjeemu free script'u... Scripts te tad index failaa vinjsh tiek ievietots attieciigajaa tabulas sadaljaa, bet jautaajums: kaa var nonjemt 350. rindaa sho "x=c.fromLeft,y=c.fromTop", lai 1. uzraxts atteelotos tajaa tabulas sadaljaa pa vidu, nevis noraadiitajaa X un Y.? Paldies. Link to comment Share on other sites More sharing options...
hmnc Posted October 29, 2006 Report Share Posted October 29, 2006 paņem no šejienes: http://www.alistapart.com/articles/horizdropdowns kompaktāks un ērtāk lietojams Link to comment Share on other sites More sharing options...
KillerBean Posted November 13, 2006 Author Report Share Posted November 13, 2006 it kaa tieshaam Tev taisniiba... vieniigi tas menu gljuko bish ja vinjam pieliek 3. liimenja menu. :( Varbuut kaads var paliidzeet? Menu: <ul id="nav"> <li><a href="#">Trīs</a> <ul> <li><a href="#">Nr.1</a></li> <li><a href="#">Nr.2</a> <ul> <li><a href="#">A</a></li> <li><a href="#">B</a></li> </ul> </li> </ul> </li> </ul> JS: startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("nav"); for (i=0; i<navRoot.childNodes.length; i++) { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } } window.onload=startList; Vinjsh kjipa atteelo arii uz sietienu arii 3. liimenja menu, lai gan tam normaali vajadzeetu atteeloties, tikai tad, kad uzbrauc uz 2. liimenja menu izveeles.. Un ja nodublee JS, un nomaina "nav" uz "nav2", menu skriptaa pieshkjir 2. liim. id - nav2, tad arii nekas neiet :( Link to comment Share on other sites More sharing options...
Recommended Posts