lupael
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Themes and Templates
In reply to: Footer goes emptyProblem solved some how.
Forum: Themes and Templates
In reply to: Error on webpage might cause it to work correctlyHello,
Thanks for your reply. Please have a look on my another topic, i need your help http://ww.wp.xz.cn/support/topic/footer-goes-empty and Im not so much expert in coding by the way my current JavaScript code is<!--//--><![CDATA[//><!-- sfHover = function() { if (!document.getElementsByTagName) return false; var sfEls = document.getElementById("menu").getElementsByTagName("li"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); //--><!]]>So it should be (According to your suggestion):
<!--//--><![CDATA[//><!-- sfHover = function() { if (!document.getElementsByTagName) return false; var sfEls = document.getElementById("menu").getElementsByTagName<li>; for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); //--><!]]>I’m right?
Viewing 2 replies - 1 through 2 (of 2 total)