PDA

View Full Version : script issue - help please


biggest_apple
05-31-2003, 04:01 AM
hi,

Finishing off a site for a local youth club. I'm a bit of a newbie when it comes to most things, so sorry if this sounds like a stupid question.

Haviong a problem with the position of a tab over a javascript table I've created. When the window is maximised it's in the perfect place, but when it isn't it slides just off where it should be.

You can see what I'm talking about by visitng here:
click (http://colliersfootball.com/index2.html)

You can find the table by searching for: <NEXT MATCH TABLE>

Any help would be greatly appreciated.

Cheers :thumbsup:

sage45
05-31-2003, 05:01 PM
Try putting the next match table into a nested table with Next Match and Last Match...

-sage-

MotherNatrsSon
05-31-2003, 05:09 PM
The tables seem to be "tagged" differently....

<!-- TOP 5 table -->
<table width="216" border="0" cellspacing="0" cellpadding="0">

<NEXT MATCH TABLE>

<p>
<table cellpadding="0" cellspacing="0" border="0" align="left">

I am just a beginner but I think if you make the "new match" tag look like the "tpt five" table it might help.

<!-- NEXT MATCH TABLE -->
<table width="216" border="0" cellspacing="0" cellpadding="0">

I could be way off but that is what I would do first.

MNS

biggest_apple
05-31-2003, 05:24 PM
thanks for the suggestion but that didn't do it.

Any other thoughts out there?

MotherNatrsSon
05-31-2003, 06:10 PM
Next I would try takng the align="canter" part out of these tags

<td class="WHITE" width="110">COLLIERS</td>
<td class="WHITE" align="center" width="15">-</td>
</tr>
<tr style="background-color: #2183BA">
<td class="WHITE" width="110">Molesey Tournament</td>
<td class="WHITE" align="center" width="15">-</td>

</tr>
</table>

MNS

biggest_apple
05-31-2003, 06:25 PM
Nope - doesn't do a thing :(

MotherNatrsSon
05-31-2003, 07:05 PM
I put your code into BBEdit and used doc type 4.01 Transitional and these are the errors it gives...maybe something in one of those????

Line 3: Optional open tag for element “<HTML>” not specified.

Line 3: Optional open tag for element “<HEAD>” not specified.

Line 3: Close tag for element “</head>” specified, but open tag was implied(omitted).

Line 7: Document type doesn't permit attribute “topmargin” within element “<body>”.

Line 7: Document type doesn't permit attribute “leftmargin” within element “<body>”.

Line 7: Document type doesn't permit attribute “marginwidth” within element “<body>”.

Line 7: Document type doesn't permit attribute “marginheight” within element “<body>”.

Line 7: Element “<body>” implicitly closed here.

Line 7: Value of attribute “bgcolor” for element “<body>” is invalid; Value isn't hex color spec or predefined color.

Line 7: Element “<script>” requires that the attribute “type” be specified.

Line 25: Document type does not permit element “<style>” in content of element “<body>”.

Line 25: Document type doesn't permit attribute “id” within element “<style>”.

Line 84: Document type does not permit element “<meta>” in content of element “<body>”.

Line 85: Document type does not permit element “<link>” in content of element “<body>”.

Line 86: Close element “</head>” found but element wasn't open.

Line 87: Element “<body>” implicitly closed here.

Line 87: Document type doesn't permit attribute “topmargin” within element “<body>”.

Line 87: Document type doesn't permit attribute “leftmargin” within element “<body>”.

Line 87: Document type doesn't permit attribute “marginwidth” within element “<body>”.

Line 87: Document type doesn't permit attribute “marginheight” within element “<body>”.

Line 89: Value of attribute “codebase” for element “<object>” is invalid; URL path needs encoding (“/pub/shockwave/cabs/flash/swflash.cab#version%3D6,0,29,0”).

Line 92: Unknown or malformed element: “<embed>”.

Line 92: Unknown or malformed close element: “</embed>”.

Line 92: Value of attribute “codebase” for element “<object>” is invalid; URL path needs encoding (“/pub/shockwave/cabs/flash/swflash.cab#version%3D6,0,29,0”).

Line 96: Unknown or malformed element: “<embed>”.

Line 96: Unknown or malformed close element: “</embed>”.

Line 104: Element “<img>” requires that the attribute “alt” be specified.

Line 117: Unknown or malformed element: “<position>”.

Line 125: Unknown or malformed element: “<position>”.

Line 132: Unknown or malformed element: “<position>”.

Line 139: Unknown or malformed element: “<position>”.

Line 146: Unknown or malformed element: “<position>”.

Line 158: Element “<img>” requires that the attribute “alt” be specified.

Line 163: Element “<script>” requires that the attribute “type” be specified.

Line 171: Unknown or malformed element: “<next>”.

Line 173: Element “<p>” implicitly closed here.

Line 174: Element “<p>” implicitly closed here.

Line 177: Element “<img>” requires that the attribute “alt” be specified.

Line 179: Element “<img>” requires that the attribute “alt” be specified.

Line 183: Close element “</div>” found but element wasn't open.

Line 206: Unknown or malformed element: “<next>”.

Line 211: Document type does not permit element “<table>” in content of element “<table>”.

Line 211: Document type doesn't permit attribute “color” within element “<table>”.

Line 213: Element “<img>” requires that the attribute “alt” be specified.

Line 185: Close tag for element “</table>” omitted but document type doesn't permit it.

Line 219: Unknown or malformed element: “<last>”.

Line 250: Element “<img>” requires that the attribute “alt” be specified.

Line 271: Unencoded entity found; “&” needs to be encoded as “&amp;”.

Line 283: Element “<img>” requires that the attribute “alt” be specified.

Line 286: Element “<img>” requires that the attribute “alt” be specified.

Line 299: Element “<img>” requires that the attribute “alt” be specified.

Line 299: Element “<img>” requires that the attribute “alt” be specified.

Line 299: Element “<img>” requires that the attribute “alt” be specified.

Line 303: Element “<img>” requires that the attribute “alt” be specified.

Line 316: Element “<p>” implicitly closed here.

Line 316: Value of attribute “src” for element “<img>” is invalid; URL path needs encoding (“img/%2Baaa.gif”).

Line 316: Element “<img>” requires that the attribute “alt” be specified.

Line 326: Element “<p>” implicitly closed here.

Line 3: Close tag for element “</html>” specified, but open tag was implied(omitted).

Any of these errors you "know" are correct do not change but it may be a starting place...I would definitely remove all the <p> tags you have opened because your code says:

............. avoid <p></p>'s there is a margin's problem in IE Mac and Mozilla -->

If that is not the correct doctype let me know. My apologies but I'm out of suggestions..:(

MNS

giz
05-31-2003, 09:39 PM
You can check that code again for yourself, by running it through http://validator.w3.org/detailed.html

Fix a few errors then recheck the code using that tool. Repeat until all fixed. Post again if you don't understand anything.


Here is a link to that error list (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.colliersfootball.com%2Findex2.html&charset=iso-8859-1+%28Western+Europe%29&doctype=HTML+4.01+Transitional&ss=1&outline=1&sp=1&verbose=1) again.