PDA

View Full Version : HELP!! how do you target frames


Newbiejr.
09-26-2004, 05:31 PM
how do you target the links "home.html, join.html etc." into another frame. i got this from a .js file


Menu1=new Array("Home","home.html","",0,20,120);

Menu2=new Array("About Us","","",3);
Menu2_1=new Array("Goals","goals.html","",0,20,120);
Menu2_2=new Array("How to Join?","join.html","",0);
Menu2_3=new Array("Members","navigation.html#","",3);
Menu2_3_1=new Array("Class Officers","officers.html","",0,20,120);
Menu2_3_2=new Array("Senior Members","smembers.html","",0);
Menu2_3_3=new Array("Newest Members","nmembers.html","",0);

Mr J
09-26-2004, 06:50 PM
Can you post some more of the code

Newbiejr.
09-26-2004, 08:11 PM
Here's all of it
var NoOffFirstLineMenus=5; // Number of first level items
var LowBgColor='white'; // Background color when mouse is not over
var LowSubBgColor='white'; // Background color when mouse is not over on subs
var HighBgColor='#D71A01'; // Background color when mouse is over
var HighSubBgColor='#D71A01'; // Background color when mouse is over on subs
var FontLowColor='black'; // Font color when mouse is not over
var FontSubLowColor='black'; // Font color subs when mouse is not over
var FontHighColor='#FFFFC6'; // Font color when mouse is over
var FontSubHighColor='#FFFFC6'; // Font color subs when mouse is over
var BorderColor='black'; // Border color
var BorderSubColor='black'; // Border color for subs
var BorderWidth=1; // Border width
var BorderBtwnElmnts=1; // Border between elements 1 or 0
var FontFamily="verdana,arial,times" // Font family menu items
var FontSize=9; // Font size menu items
var FontBold=1; // Bold menu items 1 or 0
var FontItalic=0; // Italic menu items 1 or 0
var MenuTextCentered='center'; // Item text position 'left', 'center' or 'right'
var MenuCentered='center'; // Menu horizontal position 'left', 'center' or 'right'
var MenuVerticalCentered='static'; // Menu vertical position 'top', 'middle','bottom' or static
var ChildOverlap=.2; // horizontal overlap child/ parent
var ChildVerticalOverlap=.2; // vertical overlap child/ parent
var StartTop=1; // Menu offset x coordinate
var StartLeft=1; // Menu offset y coordinate
var VerCorrect=1; // Multiple frames y correction
var HorCorrect=1; // Multiple frames x correction
var LeftPaddng=3; // Left padding
var TopPaddng=2; // Top padding
var FirstLineHorizontal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
var MenuFramesVertical=1; // Frames in cols or rows 1 or 0
var DissapearDelay=1000; // delay before menu folds in
var TakeOverBgColor=1; // Menu frame takes over background color subitem frame
var FirstLineFrame='navig'; // Frame where first level appears
var SecLineFrame='space'; // Frame where sub levels appear
var DocTargetFrame='space'; // Frame where target documents appear
var TargetLoc=''; // span id for relative positioning
var HideTop=0; // Hide first level when loading new document 1 or 0
var MenuWrap=1; // enables/ disables menu wrap 1 or 0
var RightToLeft=1; // enables/ disables right to left unfold 1 or 0
var UnfoldsOnClick=0; // Level 1 unfolds onclick/ onmouseover
var WebMasterCheck=0; // menu tree checking on or off 1 or 0
var ShowArrow=1; // Uses arrow gifs when 1
var KeepHilite=1; // Keep selected path highlighted
var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10]; // Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
// MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
// For rollover images set "Text to show" to: "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array("Home","home.html","",0,20,120);

Menu2=new Array("About Us","","",3);
Menu2_1=new Array("Goals","goals.html","",0,20,120);
Menu2_2=new Array("How to Join?","join.html","",0);
Menu2_3=new Array("Members","navigation.html#","",3);
Menu2_3_1=new Array("Class Officers","officers.html","",0,20,120);
Menu2_3_2=new Array("Senior Members","smembers.html","",0);
Menu2_3_3=new Array("Newest Members","nmembers.html","",0);

Menu3=new Array("Events","","",4);
Menu3_1=new Array("Upcoming Events","upevents.html","",0,20,160);
Menu3_2=new Array("Past Successes","past.html","",0);
Menu3_3=new Array("Calendar","calendar.html","",0);
Menu3_4=new Array("Urgent Announcements","urgent.html","",0);

Menu4=new Array("Pictures","","",3);
Menu4_1=new Array("Members","membphotos.html","",0,20,140);
Menu4_2=new Array("Projects","projphoto.html","",2);
Menu4_2_1=new Array("...","navigation.html","",0,20,110);
Menu4_2_2=new Array("...","navigation.html#","",0);
Menu4_3=new Array("School Decorations","schooldec.html","",0);


Menu5=new Array("Contact Us","","",3);
Menu5_1=new Array("E-mail","mailto:randoajfljsdlalkla@yaho233o.com","",0,20,120);
Menu5_2=new Array("Forums","randomforum.html","",0);
Menu5_3=new Array("Webmaster","mailto:stuff@ajsdflasdjl.com","",0);

Newbiejr.
09-26-2004, 08:14 PM
here's the page where it holds the framse

<html>
<Title>Chinese Student Association </title>
<head></head>


<frameset rows="30%,20%,70%" framespacing="0" noscroll="1">
<FRAME SRC="logo.html" FRAMEBORDER="NO" FRAME SCROLLING="no">
<FRAME SRC="navigation.html" FRAMEBORDER="NO" FRAME SCROLLING="no">
<FRAME SRC="home.html" FRAMEBORDER="NO" FRAME SCROLLING="yes">
</FRAMESET>

</HTML>

Newbiejr.
09-26-2004, 08:14 PM
here's navigation.html

<html>
<title>navigation</title>
<head>
</head>
<body>
<script type='text/javascript' src='nwrmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
</body>
</html>

Newbiejr.
09-26-2004, 08:18 PM
http://www.freewebs.com/langleycsa/menu_com.js

just download that too

Mr J
09-26-2004, 08:31 PM
I would say it might have something to do with these lines

var FirstLineFrame='navig'; // Frame where first level appears
var SecLineFrame='space'; // Frame where sub levels appear
var DocTargetFrame='space'; // Frame where target documents appear

Is there a url to where this script is actually in use?

Newbiejr.
09-26-2004, 08:39 PM
www.freewebs.com/LangleyCSA/das.html i think