[ djovan01 @ 27.07.2009. 19:55 ] @
Opet ja sa pitanjem u vezi drop down menija koji nece nikako da funkcionise. Elem sve sam ponovo uradila kako je pisalo u tutorijalu i dosla do sledece greske. Code: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; FDM) Timestamp: Mon, 27 Jul 2009 18:54:54 UTC Message: Access is denied. Line: 15 Char: 19 Code: 0 URI: http://www.mrvadesign.890m.com...009/pro_dropdown_2/stuHover.js Ono sto sam zapazila da sve ovo lepo funkcionise kada porekenem stranicu lokalno ali na serveru ne radi. Da li imate pojma u cemu je problem Ovo je javascripta Code: stuHover = function() { var cssRule; var newSelector; for (var i = 0; i < document.styleSheets.length; i++) for (var x = 0; x < document.styleSheets[i].rules.length ; x++) { cssRule = document.styleSheets[i].rules[x]; if (cssRule.selectorText.indexOf("LI:hover") != -1) { newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover"); document.styleSheets[i].addRule(newSelector , cssRule.style.cssText); } } var getElm = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<getElm.length; i++) { getElm[i].onmouseover=function() { this.className+=" iehover"; } getElm[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" iehover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", stuHover); |