Click to See Complete Forum and Search --> : Iframe and Java menu


yagi
February 6th, 2006, 03:12 PM
Hi,

Let me get this out of the way, I'm a complete n00b. So this may sound dumb to some but I cant figure this out. I work for a non for profit whos webmaster just left to a better paying job, smart guy. Anyway, since I had some html experience I was asked to edit the website and try to make some changes while they look for a new webmaster. The editing is easy, its the changes that are hard. Anyway, I added an Iframe to the main part of the site so the site doesnt have to refresh with every link and now Im trying to edit the java menu to send all the links to the iframe but I cant figure it out. Here is the code the last person left, I swear it looks like he bought a template from site but I dont know which so I cant ask them about this. Anyway you can see I put commingSoon.html in for right now just for testing purposes. And the Iframe I created in the main site is created as such.

<IFRAME name="Frame" src="main.html" width=475 height=1000 frameborder="0" scrolling="no">
</IFRAME>

Any help would be greatly appreciated.


<!-- // START MENU CODE

// NOTE: If you use a ' add a slash before it like this \'


StartMenu()


// MENU OPTIONS - you will find more options in the corporatestyle.css

MFL = 220; // MENU DISTANCE FROM EDGE
MFT = 186; // MENU DISTANCE FROM TOP
ALIGN = "left" // MENU LEFT OR RIGHT
TMH = 22; // TOP MENU HEIGHT
TMFS = "8"; // TOP MENU FONT SIZE
TMFW = "bold"; // TOP MENU FONT WEIGHT bold/normal
TMFF = " arial, verdana, helvetica, sans"; // TOP MENU FONT FACE
TMC = "FFFF00"; // TOP MENU OFF FONT COLOR
TMBC = "242440"; // TOP MENU OFF BACKGROUND COLOR
TMBI = "picts/menu.gif"; // TOP MENU OFF BACKGROUND IMAGE
TMHC = "000000"; // TOP MENU HOVER TEXT COLOR
TMHBC = "C0C0C0"; // TOP MENU HOVER BACKGROUND COLOR
TMHBI = "picts/menuon.gif"; // TOP MENU HOVER BACKGROUND IMAGE
MO = TMH-2; // Y MENU OVERLAP CHANGE NUMBER VALUE
SUBshift = 0; // SHIFT SUBMENU RIGHT



// START SUBMENU OPTIONS - you will find more options in the corporatestyle.css


SMH = 20; // SUB MENU HEIGHT
SMFS = "8"; // SUB MENU FONT SIZE
SMFW = "normal"; // SUB MENU FONT WEIGHT bold/normal
SMFF = "arial,MS Sans Serif,sans-serif"; // SUB MENU FONT FACE
SMC = "333333"; // SUB MENU OFF FONT COLOR
SMBC = "FFFFFF"; // SUB MENU OFF BACKGROUND COLOR
SMHC = "FFFFFF"; // SUB MENU HOVER TEXT COLOR
SMHBC = "999999"; // SUB MENU HOVER BACKGROUND COLOR


SubMenu()




// START MENU NUMBER 1 COPY AND PASTE A GROUP TO ADD A NEW TOP LEVEL SEE NOTE BELOW


Top_Width[0]=85; Sub_Menu_Width[0]=150;
m[0]='General Info';n[0]='index.html';st[0]="";s[0]=""
+l+"comingSoon2.html"+r+" What is ALS? "+c
+l+"comingSoon.html"+r+" Who was Lou Gehrig? "+c
+l+"comingSoon.html"+r+" How Can You Help? "+c
+l+"comingSoon.html"+r+" About Our Chapter "+c

Top_Width[1]=105; Sub_Menu_Width[1]=150;
m[1]='News & Research';n[1]='index.html';st[1]="";s[1]=""
+l+"comingSoon.html"+r+" Newsletters "+c
+l+"comingSoon.html"+r+" Chapter News "+c
+l+"comingSoon.html"+r+" ALSA National News "+c

Top_Width[2]=105; Sub_Menu_Width[2]=150;
m[2]='Upcoming Events';n[2]='index.html';st[2]="";s[2]=""
+l+"comingSoon.html"+r+" January "+c
+l+"comingSoon.html"+r+" February "+c
+l+"comingSoon.html"+r+" March "+c
+l+"comingSoon.html"+r+" April "+c
+l+"comingSoon.html"+r+" May "+c
+l+"comingSoon.html"+r+" June "+c
+l+"comingSoon.html"+r+" July "+c
+l+"comingSoon.html"+r+" August "+c
+l+"comingSoon.html"+r+" September "+c
+l+"comingSoon.html"+r+" October "+c
+l+"comingSoon.html"+r+" November "+c
+l+"comingSoon.html"+r+" December "+c

Top_Width[3]=145; Sub_Menu_Width[3]=150;
m[3]='Patient & Family Services';n[3]='index.html';st[3]="";s[3]=""
+l+"comingSoon.html"+r+" P&F Services "+c
+l+"comingSoon.html"+r+" Healthcare Resources "+c
+l+"comingSoon.html"+r+" Clinics "+c

Top_Width[4]=105; Sub_Menu_Width[4]=150;
m[4]='Resource Groups';n[4]='index.html';st[4]="";s[4]=""
+l+"comingSoon.html"+r+" Bereavement "+c
+l+"comingSoon.html"+r+" Care Givers "+c
+l+"comingSoon.html"+r+" Harrisburg "+c
+l+"comingSoon.html"+r+" Lehigh Valley "+c
+l+"comingSoon.html"+r+" North Central PA "+c
+l+"comingSoon.html"+r+" Trenton "+c
+l+"comingSoon.html"+r+" South Jersey "+c

Top_Width[5]=60; Sub_Menu_Width[5]=150;
m[5]='Pictures';n[5]='index.html';st[5]="";s[5]=""
+l+"comingSoon.html"+r+" Coming Soon "+c

Top_Width[6]=45; Sub_Menu_Width[6]=150;
m[6]='Links';n[6]='index.html';st[6]="";s[6]=""
+l+"http://philadelphia.phillies.mlb.com"+r+" Phillies "+c
+l+"comingSoon.html"+r+" Curt's Pitch for ALS "+c
+l+"http://users.aol.com/artistwi/contact.htm"+r+" The Artist Within "+c
+l+"http://www.alsa.org"+r+" ALSA National Website "+c
+l+"comingSoon.html"+r+" Walk to D' Feet ALS "+c

// IF YOU ADD ANOTHER TOP LEVEL MENU YOU MUST ADD TO THE BOTTOM OF THIS LIST

ADJ[0]=MFL;
ADJ[1]=(Top_Width[0])+MFL;
ADJ[2]=(Top_Width[0]+Top_Width[1])+MFL;
ADJ[3]=(Top_Width[0]+Top_Width[1]+Top_Width[2])+MFL;
ADJ[4]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3])+MFL;
ADJ[5]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4])+MFL;
ADJ[6]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5])+MFL;






// ----------------------------------------------------------------
// YOU DO NOT NEED TO EDIT BELOW THIS LINE
// ----------------------------------------------------------------





MENU=m.length

for (i=0; i < MENU; i++){


// START WRITING TOP LEVEL MENUS


document.write("<div style='position:absolute;"+ALIGN+":"+ADJ[i]+";top:"+MFT+";width:"+Top_Width[i]+"' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>")

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Netscape") {
document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' href='"+n[i]+"'>"+m[i]+"</a></div>")
}
else {

document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' onmouseover=\"this.style.backgroundColor='#"+TMHBC+"';this.style.color='"+TMHC+"';this.style.backgroundImage='URL("+TMHBI+")'\" onmouseout=\"this.style.backgroundColor='#"+TMBC+"';this.style.color='"+TMC+"';this.style.backgroundImage='URL("+TMBI+")'\" href='"+n[i]+"'>"+m[i]+"</a></div>")

}

}


for (i=0; i < MENU; i++){

// START WRITING SUB MENUS


document.write("<div id='SUB"+i+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift)+";top:"+(MFT+MO)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>"+s[i]+"</div>")


}

function StartMenu()
{

var D6=window,Y7=document;
function DETECT()
{
this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=Y7.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6||this.ie7;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(Y7.layers && !this.dom)?1:0;this.BWD=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);return this
}
BWD=new DETECT();z=0;b=0;
spn="";
if(BWD.opera5||BWD.ns6)
{
b=2
};
if(BWD.ie)
{
spn=" width: 100%"
}else{
z=6
}

}



function SubMenu()
{

document.write("<TABLE cellpadding='0' cellspacing='0' border='0' width='100%' BGCOLOR='#'+TMBC+''><tr><td>");
document.write("<img src='picts/spacer.gif' width='100%' height='"+TMH+"'><br>");
document.write("</td></tr></table>");

document.write("<div width='100%' style='height:"+TMH+";position:absolute;top:"+MFT+";width:100%;background-image: url("+TMBI+"); background-color:#"+TMBC+";z-level:-2'></div>")

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Netscape") {
l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' href='";
}
else {
l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"';this.style.color='"+SMHC+"'\" onmouseout=\"this.style.backgroundColor='#"+SMBC+"';this.style.color='"+SMC+"'\" href='";
}
r="'>";
c="</a>";


m=new Array();n=new Array();s=new Array();Sub_Menu_Width=new Array();su=new Array();st=new Array();Top_Width=new Array();ADJ=new Array()

}


function lib_obj(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=BWD.dom? document.getElementById(obj):BWD.ie4?document.all[obj]:BWD.ns4?eval(nest+"document.layers." +obj):0;this.css=BWD.dom||BWD.ie4?this.evnt.style:this.evnt;this.ref=BWD.dom||BWD.ie4?document:this.css.document;this.x=parseInt(this.css.top)||this.css.pixeltop||this.evnt.offsettop||0;this.y=parseInt(this.css.left)||this.css.pixelleft||this.evnt.offsetleft||0;return this}
function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}
lib_obj.prototype.ShowMenu = function(){this.css.visibility="visible"}
lib_obj.prototype.HideMenu = function(){this.css.visibility="hidden"}
function libinit(){page=new lib_doc_size();o=new Array();for (i=0; i < MENU; i++){o[i]=new lib_obj('SUB'+i);o[i].HideMenu()}}
libinit()


// END MENU CODE -->

PeejAvery
February 6th, 2006, 03:28 PM
Please go back and add code tags. At the bottom of this CodeGuru page on the left is a link that says VB Code. Please add them for easier reading.

Okay. I copied the code and made some modifications. Every time you see target=IFRAMENAME replace IFRAMENAME with the name of the IFRAME that you created. Just search and replace.

<IFRAME name="Frame" src="main.html" width=475 height=1000 frameborder="0" scrolling="no">
</IFRAME>

Any help would be greatly appreciated.


<!-- // START MENU CODE

// NOTE: If you use a ' add a slash before it like this \'


StartMenu()


// MENU OPTIONS - you will find more options in the corporatestyle.css

MFL = 220; // MENU DISTANCE FROM EDGE
MFT = 186; // MENU DISTANCE FROM TOP
ALIGN = "left" // MENU LEFT OR RIGHT
TMH = 22; // TOP MENU HEIGHT
TMFS = "8"; // TOP MENU FONT SIZE
TMFW = "bold"; // TOP MENU FONT WEIGHT bold/normal
TMFF = " arial, verdana, helvetica, sans"; // TOP MENU FONT FACE
TMC = "FFFF00"; // TOP MENU OFF FONT COLOR
TMBC = "242440"; // TOP MENU OFF BACKGROUND COLOR
TMBI = "picts/menu.gif"; // TOP MENU OFF BACKGROUND IMAGE
TMHC = "000000"; // TOP MENU HOVER TEXT COLOR
TMHBC = "C0C0C0"; // TOP MENU HOVER BACKGROUND COLOR
TMHBI = "picts/menuon.gif"; // TOP MENU HOVER BACKGROUND IMAGE
MO = TMH-2; // Y MENU OVERLAP CHANGE NUMBER VALUE
SUBshift = 0; // SHIFT SUBMENU RIGHT



// START SUBMENU OPTIONS - you will find more options in the corporatestyle.css


SMH = 20; // SUB MENU HEIGHT
SMFS = "8"; // SUB MENU FONT SIZE
SMFW = "normal"; // SUB MENU FONT WEIGHT bold/normal
SMFF = "arial,MS Sans Serif,sans-serif"; // SUB MENU FONT FACE
SMC = "333333"; // SUB MENU OFF FONT COLOR
SMBC = "FFFFFF"; // SUB MENU OFF BACKGROUND COLOR
SMHC = "FFFFFF"; // SUB MENU HOVER TEXT COLOR
SMHBC = "999999"; // SUB MENU HOVER BACKGROUND COLOR


SubMenu()




// START MENU NUMBER 1 COPY AND PASTE A GROUP TO ADD A NEW TOP LEVEL SEE NOTE BELOW


Top_Width[0]=85; Sub_Menu_Width[0]=150;
m[0]='General Info';n[0]='index.html';st[0]="";s[0]=""
+l+"comingSoon2.html"+r+" What is ALS? "+c
+l+"comingSoon.html"+r+" Who was Lou Gehrig? "+c
+l+"comingSoon.html"+r+" How Can You Help? "+c
+l+"comingSoon.html"+r+" About Our Chapter "+c

Top_Width[1]=105; Sub_Menu_Width[1]=150;
m[1]='News & Research';n[1]='index.html';st[1]="";s[1]=""
+l+"comingSoon.html"+r+" Newsletters "+c
+l+"comingSoon.html"+r+" Chapter News "+c
+l+"comingSoon.html"+r+" ALSA National News "+c

Top_Width[2]=105; Sub_Menu_Width[2]=150;
m[2]='Upcoming Events';n[2]='index.html';st[2]="";s[2]=""
+l+"comingSoon.html"+r+" January "+c
+l+"comingSoon.html"+r+" February "+c
+l+"comingSoon.html"+r+" March "+c
+l+"comingSoon.html"+r+" April "+c
+l+"comingSoon.html"+r+" May "+c
+l+"comingSoon.html"+r+" June "+c
+l+"comingSoon.html"+r+" July "+c
+l+"comingSoon.html"+r+" August "+c
+l+"comingSoon.html"+r+" September "+c
+l+"comingSoon.html"+r+" October "+c
+l+"comingSoon.html"+r+" November "+c
+l+"comingSoon.html"+r+" December "+c

Top_Width[3]=145; Sub_Menu_Width[3]=150;
m[3]='Patient & Family Services';n[3]='index.html';st[3]="";s[3]=""
+l+"comingSoon.html"+r+" P&F Services "+c
+l+"comingSoon.html"+r+" Healthcare Resources "+c
+l+"comingSoon.html"+r+" Clinics "+c

Top_Width[4]=105; Sub_Menu_Width[4]=150;
m[4]='Resource Groups';n[4]='index.html';st[4]="";s[4]=""
+l+"comingSoon.html"+r+" Bereavement "+c
+l+"comingSoon.html"+r+" Care Givers "+c
+l+"comingSoon.html"+r+" Harrisburg "+c
+l+"comingSoon.html"+r+" Lehigh Valley "+c
+l+"comingSoon.html"+r+" North Central PA "+c
+l+"comingSoon.html"+r+" Trenton "+c
+l+"comingSoon.html"+r+" South Jersey "+c

Top_Width[5]=60; Sub_Menu_Width[5]=150;
m[5]='Pictures';n[5]='index.html';st[5]="";s[5]=""
+l+"comingSoon.html"+r+" Coming Soon "+c

Top_Width[6]=45; Sub_Menu_Width[6]=150;
m[6]='Links';n[6]='index.html';st[6]="";s[6]=""
+l+"http://philadelphia.phillies.mlb.com"+r+" Phillies "+c
+l+"comingSoon.html"+r+" Curt's Pitch for ALS "+c
+l+"http://users.aol.com/artistwi/contact.htm"+r+" The Artist Within "+c
+l+"http://www.alsa.org"+r+" ALSA National Website "+c
+l+"comingSoon.html"+r+" Walk to D' Feet ALS "+c

// IF YOU ADD ANOTHER TOP LEVEL MENU YOU MUST ADD TO THE BOTTOM OF THIS LIST

ADJ[0]=MFL;
ADJ[1]=(Top_Width[0])+MFL;
ADJ[2]=(Top_Width[0]+Top_Width[1])+MFL;
ADJ[3]=(Top_Width[0]+Top_Width[1]+Top_Width[2])+MFL;
ADJ[4]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3])+MFL;
ADJ[5]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4])+MFL;
ADJ[6]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5])+MFL;






// ----------------------------------------------------------------
// YOU DO NOT NEED TO EDIT BELOW THIS LINE
// ----------------------------------------------------------------





MENU=m.length

for (i=0; i < MENU; i++){


// START WRITING TOP LEVEL MENUS


document.write("<div style='position:absolute;"+ALIGN+":"+ADJ[i]+";top:"+MFT+";width:"+Top_Width[i]+"' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>")

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Netscape") {
document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' target=IFRAMENAME href='"+n[i]+"'>"+m[i]+"</a></div>")
}
else {

document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' onmouseover=\"this.style.backgroundColor='#"+TMHBC+"';this.style.color='"+TMHC+"';this.style.backgroundImage='URL("+TMHBI+")'\" onmouseout=\"this.style.backgroundColor='#"+TMBC+"';this.style.color='"+TMC+"';this.style.backgroundImage='URL("+TMBI+")'\" target=IFRAMENAME href='"+n[i]+"'>"+m[i]+"</a></div>")

}

}


for (i=0; i < MENU; i++){

// START WRITING SUB MENUS


document.write("<div id='SUB"+i+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift)+";top:"+(MFT+MO)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>"+s[i]+"</div>")


}

function StartMenu()
{

var D6=window,Y7=document;
function DETECT()
{
this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=Y7.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6||this.ie7;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;this.ns4=(Y7.layers && !this.dom)?1:0;this.BWD=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);return this
}
BWD=new DETECT();z=0;b=0;
spn="";
if(BWD.opera5||BWD.ns6)
{
b=2
};
if(BWD.ie)
{
spn=" width: 100%"
}else{
z=6
}

}



function SubMenu()
{

document.write("<TABLE cellpadding='0' cellspacing='0' border='0' width='100%' BGCOLOR='#'+TMBC+''><tr><td>");
document.write("<img src='picts/spacer.gif' width='100%' height='"+TMH+"'><br>");
document.write("</td></tr></table>");

document.write("<div width='100%' style='height:"+TMH+";position:absolute;top:"+MFT+";width:100%;background-image: url("+TMBI+"); background-color:#"+TMBC+";z-level:-2'></div>")

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Netscape") {
l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' target=IFRAMENAME href='";
}
else {
l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"';this.style.color='"+SMHC+"'\" onmouseout=\"this.style.backgroundColor='#"+SMBC+"';this.style.color='"+SMC+"'\" target=IFRAMENAME href='";
}
r="'>";
c="</a>";


m=new Array();n=new Array();s=new Array();Sub_Menu_Width=new Array();su=new Array();st=new Array();Top_Width=new Array();ADJ=new Array()

}


function lib_obj(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=BWD.dom? document.getElementById(obj):BWD.ie4?document.all[obj]:BWD.ns4?eval(nest+"document.layers." +obj):0;this.css=BWD.dom||BWD.ie4?this.evnt.style:this.evnt;this.ref=BWD.dom||BWD.ie4?document:this.css.document;this.x=parseInt(this.css.top)||this.css.pixeltop||this.evnt.offsettop||0;this.y=parseInt(this.css.left)||this.css.pixelleft||this.evnt.offsetleft||0;return this}
function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}
lib_obj.prototype.ShowMenu = function(){this.css.visibility="visible"}
lib_obj.prototype.HideMenu = function(){this.css.visibility="hidden"}
function libinit(){page=new lib_doc_size();o=new Array();for (i=0; i < MENU; i++){o[i]=new lib_obj('SUB'+i);o[i].HideMenu()}}
libinit()


// END MENU CODE -->

yagi
February 6th, 2006, 03:37 PM
Now all of a sudden the whole menu wont appear. I tried putting quotes around the name of the frame and no quotes and it still wont appear.

yagi
February 6th, 2006, 03:46 PM
Nevermind, I got it, I copied something wrong. Like I said, I'm a n00b, thank you sooooo much for your help.

PeejAvery
February 6th, 2006, 03:47 PM
Now all of a sudden the whole menu wont appear. I tried putting quotes around the name of the frame and no quotes and it still wont appear.
You don't want any quotes. Leave quotes out of it. Simply replace IFRAMENAME with the name of your IFRAME. No quotes.

yagi
February 6th, 2006, 04:24 PM
I got it to work, thanks a lot. You've been so much help that I hate to ask, but with the code how it is, is there a way to get only one of those sub menus not to display in the Iframe? Such as this part?

Top_Width[6]=45; Sub_Menu_Width[6]=150;
m[6]='Links';n[6]='index.html';st[6]="";s[6]=""
+l+"http://philadelphia.phillies.mlb.com"+r+" Phillies "+c
+l+"comingSoon.html"+r+" Curt's Pitch for ALS "+c
+l+"http://users.aol.com/artistwi/contact.htm"+r+" The Artist Within "+c
+l+"http://www.alsa.org"+r+" ALSA National Website "+c
+l+"comingSoon.html"+r+" Walk to D' Feet ALS "+c

Cause as you can see a lot of those sites are links to others and I wouldnt want those displayed in a small Iframe.

PeejAvery
February 6th, 2006, 05:29 PM
Don't worry about it. I come here to help.

...is there a way to get only one of those sub menus not to display in the Iframe?
Yes, but it is going to take a lot of work on your part. You will have to use JavaScript to declare a variable and depending on that variables value it will load in the IFRAME. For example...if the variable is true, then it will load in the IFRAME, if it is false, then it will load in a new window. This will have to be an onclick or onmousedown event calling a JavaScript function.

Basically, if you are willing to commit to making this change, first backup your code and then let me know.

PeejAvery
February 6th, 2006, 05:57 PM
Haha. That rating you gave me is funny. I do my best but I am not that good. Thanks.

yagi
February 7th, 2006, 09:08 AM
No, you really are that good. And like I said above, Im a n00b so I dont know how much work I could really put into it if it is a lot. Im afraid it might bea bit out of my grasp at this point.