0 Members and 1 Guest are viewing this topic.
function getAjaxObject(){ xmlhttp=new XMLHttpRequest(); //Decent Browsers if (!xmlhttp || xmlhttp == undefined || xmlhttp == null) xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); //IE7+ if (!xmlhttp || xmlhttp == undefined || xmlhttp == null) xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); //IE6- return xmlhttp;} function loadPage(url){ xmlhttp = getAjaxObject(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementsByTagName("html")[0].innerHTML=xmlhttp.responseText; processTags(); } } xmlhttp.open("GET",url,true); xmlhttp.send();}function processTags(){ var atags=document.getElementsByTagName("a"); for (x in atags) { atags[x].onclick="loadPage('"+atags[x].href+"');"; atags[x].href="#"; //This also causes it to scroll to the top of the page. }}processTags();
javascript:head=document.getElementsByTagName('head')[0];script=document.createElement('script');script.type='text/javascript';script.src='http://netham45.org/fastload.js?t=6';head.appendChild(script);void(0);
It doesn't work for me. Plus, I don't think it makes stuff faster. You still have to load the page.