evalopez
02-06-2003, 10:04 PM
Ok - I looked who knows how many times, and i'm stuck clueless.
how do I target the IFrame?
<SCRIPT Language="Javascript1.2">
<!--
/*
Static menu script II (By maXimus, maximus@nsimail.com, http://maximus.ravecore.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//configure below variable for menu width, position on page
var menuwidth=110
var offsetleft=8
var offsettop=10
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+of fsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset +offsettop));}
setTimeout("makeStatic()",0);
}
if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="ffffcc">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}
if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#666699" BORDERCOLORDARK="#6699ff" BORDERCOLORLIGHT="#003366"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL COLOR="FFFFFF"><b>Navigation:</b></FONT></TD></TR>')
var menui = new Array();
var menul = new Array();
//configure below for menu items. Extend list as desired
menui[0]="Home";
menui[1]="News";
menui[2]="Art Galleries";
menui[3]="Music Zone";
menui[4]="Boards";
menui[5]="Guestbook";
menui[6]="Links";
menui[7]="Contact";
menui[8]="About Sol";
menul[0]="main.htm";
menul[1]="news.htm";
menul[2]="galleries.htm";
menul[3]="musiczone.htm";
menul[4]="http://solmartin.hyperboards.com/";
menul[5]="guestbook.htm";
menul[6]="links.htm";
menul[7]="contact.htm";
menul[8]="about.htm";
for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="ffffcc" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="ffffcc"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'ffffcc\'" onmouseout="bgColor=\'ffffcc\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}
if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}
function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}
window.onload=menu3
//-->
</SCRIPT>
how do I target the IFrame?
<SCRIPT Language="Javascript1.2">
<!--
/*
Static menu script II (By maXimus, maximus@nsimail.com, http://maximus.ravecore.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//configure below variable for menu width, position on page
var menuwidth=110
var offsetleft=8
var offsettop=10
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+of fsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset +offsettop));}
setTimeout("makeStatic()",0);
}
if (ie4||ns6) {document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="ffffcc">')}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}
if (ie4||ns6||ns4)
document.write('<TR><TD BGCOLOR="#666699" BORDERCOLORDARK="#6699ff" BORDERCOLORLIGHT="#003366"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL COLOR="FFFFFF"><b>Navigation:</b></FONT></TD></TR>')
var menui = new Array();
var menul = new Array();
//configure below for menu items. Extend list as desired
menui[0]="Home";
menui[1]="News";
menui[2]="Art Galleries";
menui[3]="Music Zone";
menui[4]="Boards";
menui[5]="Guestbook";
menui[6]="Links";
menui[7]="Contact";
menui[8]="About Sol";
menul[0]="main.htm";
menul[1]="news.htm";
menul[2]="galleries.htm";
menul[3]="musiczone.htm";
menul[4]="http://solmartin.hyperboards.com/";
menul[5]="guestbook.htm";
menul[6]="links.htm";
menul[7]="contact.htm";
menul[8]="about.htm";
for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR="ffffcc" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="ffffcc"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'ffffcc\'" onmouseout="bgColor=\'ffffcc\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}
if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}
function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}
window.onload=menu3
//-->
</SCRIPT>