...

View Full Version : Errors with my script can anyone tell me if there is any



snakewithatilda
12-16-2002, 07:38 PM
and what are they. As well as what to do to fix them.


<span style="position: absolute; left: 7; top: 294">
<table width="59">
<tr>
<td width="59%">
<table height="100%" width="59%" border="0" cellspacing="0" cellpadding="0" align="center"

bordercolor="black" background="j.jpg">
<tr>

<td>
<basefont size="1" face="tahoma">
<img src="a22.jpg"> <img src="s2.jpg"><br>
- <a href="http://www.blizzard.com/broodwar/"
target="http://www.blizzard.com/broodwar/">Official Site</a><br>
- <a href="strategies5.html" target="ifr">Strategies</a><br>
- <a href="bug5.html" target="ifr">Bugs</a><br>
- <a href="back2.html" target="ifr">Backstabbers List</a><br>
- <a href="chal5" target="ifr">Make a Challenge</a><br>
- <a href="tourn5.html" target="ifr">Tournaments</a><br>
</table>

<span style="position: absolute; left: 823; top: -4">
<table width="59" height="100">
<basefont size="1">
<tr>
<td width="59">
<table width="59%" border="0" cellspacing="0" cellpadding="0" bordercolor="blue">
<tr>


<td width="59" height=100>
<table width="59%" border="0" cellspacing="2" cellpadding="0" bordercolor="blue">
<tr>

<td background="j.jpg">
<basefont size="1" face="tahoma">

<img src="wiii.jpg"><br>
- <a href="http://www.blizzard.com/war3/" target="http://www.blizzard.com/war3/" >Official
Site</a><br>
- <a href="strategies6.html" target="ifr">Strategies</a><br>
- <a href="bug6.html" target="ifr">Bugs</a><br>
- <a href="back3.html" target="ifr">Backstabbers List</a><br>
- <a href="chal6.html" target="ifr">Make a Challenge</a><br>
- <a href="tourn6.html" target="ifr">Tournaments</a><br>
- <a href="" target="ifr">link here</a><br>
- <a href="" target="ifr">link here</a><br>

</font>

</span>


<span style="position: absolute; left: -654; top: 4">
<table width=80% height=21%>
<align=left><font size=3>
<br><br><br><br>
<iframe id="external" name="ifr" style="width:100%;height:500px" src="info.html"></iframe>
</td>
<!-- Start theGuestbook.com Code -->
<P ALIGN=CENTER><FONT FACE="Times New Roman" SIZE=4>
<B>[</B> <A HREF="http://www.TheGuestBook.com/egbook/455165.gbook"

target="http://www.TheGuestBook.com/egbook/455165.gbook">
Sign my Guestbook</A><B>] - [</B><A
HREF="http://www.TheGuestBook.com/vgbook/455165.gbook"

target="http://www.TheGuestBook.com/vgbook/455165.gbook">Read my Guestbook</A>
<B>]</B><BR></FONT><FONT FACE="ARIAL" SIZE=1>
[Guestbook by <A TARGET="_top"
HREF="http://www.TheGuestBook.com">TheGuestBook.com</A>]
</span>
</tr>
</table>
</td>
<span style="position : absolute left: -593 top: 21">
<table width=50% height 21%><center>
<td background=0><a href="Http://www.Digits.com"

onMouseOut="offImg('Http://www.Digits.com')" onMouseOver="ovrImg('Http://www.Digits.com')"

onClick="actImg('Http://www.Digits.com')"><img src="wc_01.gif" name="Http://www.Digits.com"

alt="Http://www.Digits.com" border=0 width=116 height=37></a></td>
<IMG SRC="http://counter.digits.com/wc/-d/4/HolyDragonKnight" ALIGN=middle
WIDTH=60 HEIGHT=20 BORDER=0 HSPACE=4 VSPACE=2>

</span>
</tr>
</table>
</td>
</span>
</html>

</body>

cg9com
12-16-2002, 08:12 PM
there are a few depricated tags in there, you could take the page to http://validator.w3.org/ and check for errors there, but you must first assign your page a document type declaration.
and btw, the html is not a script, its a markup language.
the only "scripts" are the mouseover functions. ect.

snakewithatilda
12-17-2002, 12:09 AM
Originally posted by cg9com
there are a few depricated tags in there, you could take the page to http://validator.w3.org/ and check for errors there, but you must first assign your page a document type declaration.
and btw, the html is not a script, its a markup language.
the only "scripts" are the mouseover functions. ect.

I am not sure what you mean page ocument type declaration. Im guesing by putting in the meta for it? And I dont know what to type in for that.

cg9com
12-17-2002, 06:51 PM
actually i should say doctype declaration

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

the key is the first word in caps DOCTYPE
html is the root element
public is the type of dtd
then you need the identifier, thats in red
finally the url of the dtd in blue

note that its not a comment tag, and its an empty tag.
it goes above your <html> tag
it basically identifies your markup with a standard
that way you can also use the w3 validator (http://validator.w3.org/) to check your page against the standard you specify
it also tells the browser which type of language your using:
http://www.w3schools.com/tags/tag_doctype.asp

ronaldb66
12-18-2002, 10:52 AM
Snakewithatilda,

it seems the code snippet you pasted earlieron is incomplete; do you have that page somewhere online, and if so, could you supply a link to it so people can see it in a browser and go over the complete code? That would make error spotting a whole lot easier.

snakewithatilda
12-18-2002, 05:24 PM
Originally posted by ronaldb66
Snakewithatilda,

it seems the code snippet you pasted earlieron is incomplete; do you have that page somewhere online, and if so, could you supply a link to it so people can see it in a browser and go over the complete code? That would make error spotting a whole lot easier.
Check my homepage Http://www.angelfire.com/ma4/theholydragons

ronaldb66
12-19-2002, 10:30 AM
Yeah, fine, and which page did the code come from?
Meanwhile, take care of closing all container elements with end tags, even if they're optional (there's no such thing as an optional end tag in XHTML), and check if you nest container elements in the proper way:

<foo><bar>...</foo></bar> : wrong!

<foo><bar>...</bar></foo> : right!

This little jumble of end tags at the bottom of your code snippet is a perfect example of wrong nesting, and there may be more:

</span>
</tr>
</table>
</td>
</span>
</html>

</body>

Furthermore, for your own sake as well as others who are asked to look at your code: try clean it up and make it legible, make the structure of the page leap out, either by indenting or at least by grouping lines and separating groups with blank lines, etc.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum