|
#1
|
|||
|
|||
|
|
|
#2
|
||||
|
||||
|
The background color is set here on the page:
Code:
<script language="JavaScript">
//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr. (script@esolutiononline.com)
//Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002
//Visit http://www.dynamicdrive.com for this script
var keepstatic=1 //specify whether menu should stay static 0=non static (works only in IE4+)
Code:
<html>
<head>
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#3
|
|||
|
|||
|
I can find no stylings on the menucontect.js. However I have found identical coding on the actual index.html page. I also have not found any sytle sheets reference in this cod. I am just dense? I looked for ccs in a search of the code. When I try to change the roll over text color on the index page instead of moving to a shade of red (#9A0150), I get blue. As when I treied to change the font to green ("#003300"). But so far I've only tried this on the index.html not in the menu.js. This is what is on the index page, identical to what is on the menu.js. Do all pages have to change in order to see results?
Code:
<STYLE>all.clsMenuItemNS {
Z-INDEX: 100; FONT: bold 11px arial; CURSOR: hand; COLOR: <"#003300">; TEXT-DECORATION: none
}
.clsMenuItemIE {
Z-INDEX: 100; FONT: bold 11px arial; CURSOR: hand; COLOR: <"#003300">; TEXT-DECORATION: none
}
#MainTable A:hover {
COLOR: RED; TEXT-DECORATION: underline
}
</STYLE>
<SCRIPT language=JavaScript>
//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr. (script@esolutiononline.com)
//Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002
//Visit http://www.dynamicdrive.com for this script
var keepstatic=0 //specify whether menu should stay static 0=non static (works only in IE4+)
var menucolor="#f7F9CD"//specify menu color
var submenuwidth=285 //specify sub menus' color
</SCRIPT>
<style fprolloverstyle>A:hover {color: RED}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function openWindow(url) {
popupWin = window.open(url, 'remote', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,width=660,height=480,left=50,top=50')
}
// End -->
</script>
<base target="_self">
<meta name="Microsoft Theme" content="spaef 1111">
</HEAD>
<BODY topMargin=0 marginheight="0" marginwidth="0" leftmargin="0" backgroundcolor="#B9b9C1">
<script language="JavaScript" src="../../SPAEF/menu.js"></script>
<script language="JavaScript" src="../../SPAEF/menucontext.js"></script>
<SCRIPT language=JavaScript>
showToolbar();
</SCRIPT>
<SCRIPT language=JavaScript>
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</SCRIPT>
Last edited by jscheuer1; 02-28-2008 at 03:44 AM. Reason: add code tags for code section |
|
#4
|
||||
|
||||
|
Style is a common and standard optional feature of all web pages. It may be inline to an element, ex:
HTML Code:
<span style="color:red;">Hi There!</span> There is no style in the menucontext.js file. All I said was that it establishes id selectors for each menu group. These may be styled in the stylesheet in the head of a page or in the external stylesheet linked to the head of the page. I was hoping that you were already familiar with these fairly basic concepts, but it is OK that you are not, many people are not, more people in fact than are familiar with them. To change the text color to that shade of green and the hover to that shade of red: Code:
<style type="text/css">
all.clsMenuItemNS, .clsMenuItemIE {
text-decoration: none;
font: bold 12px Arial;
color:
Code:
all.clsMenuItemNS, .clsMenuItemIE {
text-decoration: none;
font: bold 12px Arial;
color: #003300;
cursor: hand;
z-index:100;
}
#MainTable A:hover {
color: #9A0150;
}
Code:
<link rel="stylesheet" href="mymenu.css" type="text/css">
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#5
|
|||
|
|||
|
I appreciate the assistance. It's true I am pretty much a greenhorn in the coding of web pages.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|