white off-fontcolor in one cell doesn't show

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Felixh
Beginner
Beginner
Posts: 9
Joined: Sun Nov 30, 2003 10:42 pm
Contact:

white off-fontcolor in one cell doesn't show

Post by Felixh »

Hello!

I finally got your great menubar to work. However, the white text in the "Home-link-cell" does only show on mouseover. It is working fine in the german version of the page, but not in the swedish. There it is black on a black background instead and turns into white only on mouseover. How can I make the linktext visible at all times? My site is http://www.biofokus.com

Thank you very much

Greetings from Sweden /Felix
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Sorry, I don't even see a menu at that link. Just some pictures and some text links on the right.

Ruth
Felixh
Beginner
Beginner
Posts: 9
Joined: Sun Nov 30, 2003 10:42 pm
Contact:

Post by Felixh »

Hello Ruth!

Thanks for the reply. Interesting that you cannot see the bar. May I ask which browser you are using? I can see the bar in Iexplorer at any resolution but I haven't checked with other browsers yet......

Thanks!

/Felix
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm using IE5.0, the page seems to load fine but no menu. I tried it in Opera 6 and get an error

Code: Select all

http://www.biofokus.com/main.htm

Syntax error while loading (line 0)
<
--^
and the scroll window loads with the page html code instead of pictures and such. Opera 7 opens the page with the pictures but no menu. Netscape 6 gives a black screen and nothing else, Netscape 7 seems to open everything fine and I do see the menu. As to the question about the home just being black, in the menu_data file you have settings for the following

Code: Select all

pagecolor="black";
pagebgcolor="black";
I think these codes refer to the font color and the bgcolor of the menu item for whatever page you are on..I THINK, I'm not sure since I don't use it, but try removing that coding or change it's color and see what it does to that link....

Ruth
Felixh
Beginner
Beginner
Posts: 9
Joined: Sun Nov 30, 2003 10:42 pm
Contact:

Post by Felixh »

Thank you for checking, Ruth and everybody else!

I changed the parameters as you suggested and the menucolors are looking as they should in IE 6.0. ;) Great!

However, in my Opera 7, the page looks as it should but the menubar does not cross the iframe (which is a big problem). It probably disappears behind the Iframe. What can be done about it? Quite strange that you do not see the menubar at all in Opera 7.

As I am quite new on this subject, I unfortunately do not really understand your comment on the error you mentioned:

Code:
http://www.biofokus.com/main.htm

Syntax error while loading (line 0)
<
--^


Is that a html or javasripterror in main.htm? I do not find a line 0 in the html-code and cannot find the <--^ part of the code you wrote here. But I am maybe looking for the wrong thing?

I will furthermore download other browsers. I had no idea that homepages show so very differently in different browsers. :?

Thanks! /Felix
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I opened the page in my editor which has color coding to warn of errors in things. It is showing the error as someplace in the first script code on that main.htm page. The first coding

Code: Select all

<script language=javascript> shows the correct color but the closing </script> is not correct so the error is someplace in this first code -

<SCRIPT language=JavaScript>
<!--

	function rightClick(e) {
		if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
			return false;
		else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
			alert("Bilderna är upphovsrättskyddade. Kontakta BIOFOKUS");
			return false;
		}
		return true;
	}

	function MM_displayStatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}

//-->

document.onmousedown=rightClick;
	document.onmouseup=rightClick;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	window.onmousedown=rightClick;
	window.onmouseup=rightClick;
	// -->

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
I don't know anything about codes but maybe someone else can help you. You might post the question on the code in another post.

As to not seeing the menu, in my editor I messed with the size of the iframe, going down from 100% on the height of the iframe to 65% finally made the menu visible in all the browsers I listed before [thought it was always visible in netscape 7.0 Again, I have no idea about doing iframes, sorry. My resolution is set at 800x600.

Ruth
Post Reply