JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing Appearance and Default State

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsOutlookBar
Author Message
mathsci1



Joined: 11 Jun 2004
Posts: 6

PostPosted: Fri Jun 11, 2004 10:17 pm    Post subject: Changing Appearance and Default State Reply with quote

Hello,

I really like your menu! I am using it on a school website and am interested in changing the background colors of the panes from grey to something close to the school colors. I found the "coloroutlook" entry in the init.js file, but when I changed it, I got colored bands over the sub-menu items with a grey background. Looks like there must be a location to change the pane background color as well??

Second, I would like to change the default menu position to "all closed" on load. Is there a place to make this change?

Thanks

mathsci
Back to top
mathsci1



Joined: 11 Jun 2004
Posts: 6

PostPosted: Mon Jun 14, 2004 4:59 pm    Post subject: Reply with quote

Hello,

I how to fix the background color - just put into the outlook.html page the line

<body bgcolor= "#(color you want)" /body>

Still haven't figured out how to make the menu default to the closed position.

Any assistance would be appreciated

mathsci
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Tue Jun 15, 2004 6:01 am    Post subject: Reply with quote

Quote:
Still haven't figured out how to make the menu default to the closed position.

Sorry, but COOLjsOutlookBar does not support this - there always is some active panel.
Back to top
mathsci1



Joined: 11 Jun 2004
Posts: 6

PostPosted: Tue Jun 15, 2004 2:57 pm    Post subject: Reply with quote

Alex,

Thanks for the information.

Is it possible to select which panel is active? For instance, can I make the bottom menu panel active on page load, rather than the top panel? Being able to do this would resolve my issue as well.

Also, I still haven't figured out if the menu can be positioned anywhere but the top of the frame. Can this be changed?

Thanks for your help!

mathsci
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Tue Jun 15, 2004 3:37 pm    Post subject: Reply with quote

Quote:
Is it possible to select which panel is active? For instance, can I make the bottom menu panel active on page load, rather than the top panel? Being able to do this would resolve my issue as well.

Try the following:
Code:
<body onload="...previous code...;sho(1)">

Quote:
Also, I still haven't figured out if the menu can be positioned anywhere but the top of the frame. Can this be changed?

Sorry, not clear. AFAIK, it occupies whole frame...
Back to top
mathsci1



Joined: 11 Jun 2004
Posts: 6

PostPosted: Tue Jun 15, 2004 4:13 pm    Post subject: Reply with quote

Alex,

I haven't been able to get the code to work, due to my ignorance I am sure.

Where should this code be placed? In the frame with the menu?

The code for the menu frame is basically as you created it. I tried to place the code in the <body link="#000000" vlink="#000000" onload=winLoad() onResize="checkResize();"> areea without success.

Thank you for your patience with a novice...

mathsci

<html>
<head>
<base target="main">
<meta http-equiv="Content-Type" content="text/html">
<LINK REL="stylesheet" TYPE="text/css" href="style.css">
<script language="JavaScript1.2" src="init.js" type="text/javascript"></script>
<script language="JavaScript1.2" src="../js/outlook.js" type="text/javascript"></script>
<style fprolloverstyle>A:hover {font-weight: bold}
</style>
</script>
</head>
<body link="#000000" vlink="#000000" onload=winLoad() onResize="checkResize();">
&<p>&</p>
<p>&</p>
<TD>&</TD>
<TD>&</TD>
<TD>&</TD>
<TD>&</TD>
<p><font size="1">
<script language="JavaScript">

new COOLjsOutlookBar(OutlookBar);

</script>
</p>
</body>
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Tue Jun 15, 2004 9:24 pm    Post subject: Reply with quote

Oops, I've changed my mind... Go to outlook.js and find first instance of the following string: "sho(0)". Then change zero to the zero-based index of the panel you want to see initially.
Back to top
mathsci1



Joined: 11 Jun 2004
Posts: 6

PostPosted: Thu Jun 17, 2004 4:06 pm    Post subject: Reply with quote

Alex,

That did it!

Thank you for your help.

mathsci
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsOutlookBar All times are GMT
Page 1 of 1