Jump to content
TNG Community

var elementcw ???


klooster

Recommended Posts

I am running TNG for 2 years no problem. When I was experimenting with another backgroundcolor, I noticed below the bottom of the TNG pages the next text (did not notice is before, because of the black background and black text it did not show):

var elementcw; if( document.getElementById('info1') ) elementcw = document.getElementById('info1').clientWidth; else elementcw = document.getElementById('info1').clientWidth; if( !elementcw ) { elementcw = 100; elementcwadj = 92; if( document.getElementById('info1') ) document.getElementById('info1').width = elementcw; } else elementcwadj = elementcw - 8; document.getElementById('media1').width = elementcwadj; document.getElementById('notes1').width = elementcwadj;

TNG runs perfectly, no problem there. Anyone any idea where this comes from and how to fix it ???

Link to comment
Share on other sites

Looks like there is a problem with this line:

<!-- CREATION DATE: 02-03-2004 PhP version Cees Kloosterman

You need to close the comment. Otherwise, it is reading the next line (<script language="JavaScript" type="text/javascript">) as a comment instead of starting your script. Therefore the script is being displayed as text instead of acting as a javascript.

Steve

Link to comment
Share on other sites

Looks like there is a problem with this line:

<!-- CREATION DATE: 02-03-2004 PhP version Cees Kloosterman

You need to close the comment. Otherwise, it is reading the next line (<script language="JavaScript" type="text/javascript">) as a comment instead of starting your script. Therefore the script is being displayed as text instead of acting as a javascript.

Steve

Thanks Steve!

Closed the comment and the text was gone.

Never thought of that !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...