NO IFRAMES
[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script language="JavaScript">
<!-- [/html]
Expand|Select|Wrap|Line Numbers
- var doAlerts=false;
- function checkSubmit()
- {
- var ban = document.realtime.ban.value;
- while(ban.indexOf(" ") == 0) {
- ban = ban.substring(1, ban.length)
- }
- while (ban.substring(ban.length-1) == " ") {
- ban = ban.substring(0, ban.length-1)
- }
- var le = ban.length;
- if(le == 0) {
- alert("Please type in an customer ID!");
- document.realtime.ban.focus();
- return;
- }
- document.realtime.ban.value = ban;
- document.realtime.submit();
- }
- function submitAction(method)
- {
- if(method == 'tn'){
- if (document.showRF.tn.value == null || document.showRF.tn.value == '' ){
- alert("Customer ID is required");
- return false;
- }
- document.showRF.sn.disabled = true;
- }else {
- if (document.showRF.sn.value == null || document.forms['showRFForm'].sn.value == '' ){
- alert("SerialNumber is required");
- return false;
- }
- document.showRF.tn.disabled = true;
- }
- document.showRF.elementId.value = '';
- document.showRF.method.value = method;
- document.showRF.action = 'http://lsbbt.sbc.com/lsbbt/showRFAction.do';
- document.showRF.target = 'lasso';
- document.showRF.submit();
- return false;
- }
- function goThere(n,loc)
- {
- n.location.href=loc;
- }
</script>
<title>Last Tool</title>
</head>
<style>[/html]
Expand|Select|Wrap|Line Numbers
- #sec1 {
- position: absolute;
- top:150px;
- left:1px;
- width:980px;
- height:550px;
- visibility:hidden;
- z-index: 100;
- }
- #sec2 {
- position: absolute;
- top:150px;
- left:1px;
- width:980px;
- height:550px;
- visibility:hidden;
- z-index: 200;
- }
</style>
<script>[/html]
Expand|Select|Wrap|Line Numbers
- //the next 3 lines are browser detection for user-agent DOMS
- ns4 = (document.layers) ? true:false //required for Functions to work
- ie4 = (document.all) ? true:false //required for Functions to work
- ng5 = (document.getElementById) ? true:false //required for Functions to work
- function hideSec() {
- if (ng5) document.getElementById('sec1').style.visibility = "hidden"
- else if (ns4) document.sec1.visibility = "hide"
- else if (ie4) sec1.style.visibility ="hidden"
- if (ng5) document.getElementById('sec2').style.visibility = "hidden"
- else if (ns4) document.sec2.visibility = "hide"
- else if (ie4) sec2.style.visibility ="hidden"
- }
- function showSec(n) {
- hideSec();
- if (ng5) document.getElementById('sec' + n).style.visibility = "visible";
- else if (ns4) document.layers["sec" + n].visibility = "show";
- else if (ie4) document.all["sec" + n].style.visibility = "visible";
- }
- function showAllSec(n) {
- if (ng5) document.getElementById('sec' + n).style.visibility = "visible";
- else if (ns4) document.layers["sec" + n].visibility = "show";
- else if (ie4) document.all["sec" + n].style.visibility = "visible";
- }
</script>
</head>
<body bgcolor="#ffffff">
<a href="#" onClick="showSec(1)">Show Layer 1</a>, Hide 2, 3, and 4 <br>
<a href="#" onClick="showSec(2)">Show Layer 2</a>, Hide 1, 3, and 4 <br>
<div id="sec1">First Div layer</div>
<div id="sec2">Second Div layer</div>
</body>
</html>
[/HTML]
then there are iframes...these are targeted currently at generic sites
[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script language="JavaScript">
<!--
var doAlerts=false;
function checkSubmit()
{
var ban = document.realtime.ban.value;
while(ban.indexOf(" ") == 0) {
ban = ban.substring(1, ban.length)
}
while (ban.substring(ban.length-1) == " ") {
ban = ban.substring(0, ban.length-1)
}
var le = ban.length;
if(le == 0) {
alert("Please type in an customer ID!");
document.realtime.ban.focus();
return;
}
document.realtime.ban.value = ban;
document.realtime.submit();
}
function submitAction(method)
{
if(method == 'tn'){
if (document.showRF.tn.value == null || document.showRF.tn.value == '' ){
alert("Customer ID is required");
return false;
}
document.showRF.sn.disabled = true;
}else {
if (document.showRF.sn.value == null || document.forms['showRFForm'].sn.value == '' ){
alert("SerialNumber is required");
return false;
}
document.showRF.tn.disabled = true;
}
document.showRF.elementId.value = '';
document.showRF.method.value = method;
document.showRF.action = 'http://lsbbt.sbc.com/lsbbt/showRFAction.do';
document.showRF.target = 'lasso';
document.showRF.submit();
return false;
}
function goThere(n,loc)
{
n.location.href=loc;
}
//-->
</script>
<title>Last Tool</title>
</head>
<style>
#sec1 {
position: absolute;
top:150px;
left:1px;
width:980px;
height:550px;
visibility:hidden;
z-index: 100;
}
#sec2 {
position: absolute;
top:150px;
left:1px;
width:980px;
height:550px;
visibility:hidden;
z-index: 200;
}
</style>
<script>
//the next 3 lines are browser detection for user-agent DOMS
ns4 = (document.layers) ? true:false //required for Functions to work
ie4 = (document.all) ? true:false //required for Functions to work
ng5 = (document.getElementById) ? true:false //required for Functions to work
function hideSec() {
if (ng5) document.getElementById('sec1').style.visibility = "hidden"
else if (ns4) document.sec1.visibility = "hide"
else if (ie4) sec1.style.visibility ="hidden"
if (ng5) document.getElementById('sec2').style.visibility = "hidden"
else if (ns4) document.sec2.visibility = "hide"
else if (ie4) sec2.style.visibility ="hidden"
}
function showSec(n) {
hideSec();
if (ng5) document.getElementById('sec' + n).style.visibility = "visible";
else if (ns4) document.layers["sec" + n].visibility = "show";
else if (ie4) document.all["sec" + n].style.visibility = "visible";
}
function showAllSec(n) {
if (ng5) document.getElementById('sec' + n).style.visibility = "visible";
else if (ns4) document.layers["sec" + n].visibility = "show";
else if (ie4) document.all["sec" + n].style.visibility = "visible";
}
</script>
</head>
<body bgcolor="#ffffff">
<a href="#" onClick="showSec(1)">Show Div Sec1</a>, Hide 2<br>
<a href="#" onClick="showSec(2)">Show Div Sec2</a>, Hide 1 4 <br>
<div id="sec1"><iframe src="http://www.yahoo.com" name="yahoo" width="100%" height=100%></div>
<div id="sec2"><iframe src="http://www.robertkay.net" name=""mine" width="100%" height=100%></div>
</body>
</html>
[/HTML]