Jump to content

Search the Community

Showing results for tags 'node.childNodes.length'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Calendars

  • Community Calendar

Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Need XML advise

    I am preparing a Blogger website at proweblabs-ajans.blogspot.com. I put some codes to the template, but I got some errors below: XML, line 3302, column 599 when fixing get error: Element type "node.childNodes.length" must be followed by either attribute specifications, ">" or "/>" codes are below: (function($){$.fn.highlight=function(pat){function innerHighlight(node,pat){var skip=0;if(node.nodeType==3){var pos=node.data.toUpperCase().indexOf(pat);if(pos>=0){var spannode=document.createElement("span");spannode.className="highlight";var middlebit=node.splitText(pos);var endbit=middlebit.splitText(pat.length);var middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);skip=1}}else{if(node.nodeType==1&&node.childNodes&&!/(script|style)/i.test(node.tagName)){for(var i=0;i<node.childNodes.length;++i){i+=innerHighlight(node.childNodes[i],pat)}}}return skip}return this.length&&pat&&pat.length?this.each(function(){innerHighlight(this,pat.toUpperCase())}):this};$.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()}})(jQuery);(function(a){a(document).ready(function(){var c=a("#text-finder"),e=c.children().first(),f=e.next(),d=a(".post-body"),g=a("html, body");e.on("keyup",function(){d.removeHighlight().highlight(this.value);g.scrollTop(d.find("span.highlight").first().offset().top-50)});f.on("click",function(){d.removeHighlight();e.val("").trigger("focus");g.scrollTop(0);return false});var b=readCookie("font_size");if(b!=""&&b!=null){a(".post-body").css("font-size",b+"px")}a(".zoom-text").click(function(){var j=a(".post-body").css("font-size");j=j.replace("px","");var h=a(this).attr("class");var i=Number(j);if(h.indexOf("zoom-in-text")!=-1){i++}else{i-=1}createCookie("font_size",i);a(".post-body").css("font-size",i+"px");return false})})})(jQuery); how can I fix it? Thanks.
×