JavaScript Page Details: Доля страницы <!-- ONE STEP TO INSTALL SHARE A PAGE: 1. Copy the coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the BODY of your HTML document --> <BODY> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin string = "" + location.search; string = string.substring(1,string.length); person1 = string.indexOf("person1"); // unique person1 string person2 = string.indexOf("person2"); // unique person2 string person3 = string.indexOf("person3"); // unique person3 string text = "<center><table border=1 cellpadding=3 cellspacing=3>\n"; text += "<tr><td colspan=2 align=center><b>Contact Us!</b></td></tr>\n"; text += "<tr><td"; text += (person1>-1 ? " bgcolor=yellow>" : ">"); // highlights cell if location has ?person1 text += "Person 1: </td>\n"; text += "<td align=center"; text += (person1>-1 ? " bgcolor=yellow>" : ">"); // highlights cell if location has ?person1 text += "<a href='mailto:person1@site.com'><b>person1@site.com</b></a></td>\n"; text += "</tr>"; text += "<tr><td"; text += (person2>-1 ? " bgcolor=yellow>" : ">"); // highlights cell if location has ?person2 text += "Person 2: </td>\n"; text += "<td align=center"; text += (person2>-1 ? " bgcolor=yellow>" : ">"); // highlights cell if location has ?person2 text += "<a href='mailto:person2@site.com'><b>person2@site.com</b></a></td>\n"; text += "</tr>"; text += "<tr><td"; text += (person3>-1 ? " bgcolor=yellow>" : ">"); // highlights cell if location has ?person3 text += "Person 3: </td>\n"; text += "<td align=center"; text += (person3>-1 ? " bgcolor=yellow>" : ">"); // highlights cell if location has ?person3 text += "<a href='mailto:person3@site.com'><b>person3@site.com</b></a></td>\n"; text += "</tr>"; text += "</table></center>"; document.write(text); // End --> </script> <!-- Script Size: 1.94 KB -->