-1) { var s = strcode.indexOf("", e); // Add to scripts array scripts.push(strcode.substring(s_e + 1, e)); // Strip from strcode strcode = strcode.substring(0, s) + strcode.substring(e_e + 1); } // Loop through every script collected and eval it for (var i = 0; i < scripts.length; i++) { try { eval(scripts[i]); } catch (ex) { // do what you want here when a script fails } } } function ajaxFunction(id, url) { if (url == null) return; var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { //Get the response from the server and extract the section that comes in the body section of the second html page avoid inserting the header part of the second page in your first page's element var bodyText = xmlHttp.responseText.replace(/BODY/g, "body"); var respText = bodyText.split('
')[0]; //if(elem.innerHTML=="") elem.innerHTML = "")[0]; //parseScript(elem.innerHTML); } } var elem = document.getElementById(id); if (!elem) { //alert('The element with the passed ID doesn\'t exists in your page'); return; } xmlHttp.open("GET", url, true); xmlHttp.send(null); } function hyouji(ss) { document.getElementById(ss).style.display = "block" } function kakusu(tt) { document.getElementById(tt).style.display = "none" } -->
![]()
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|