Log in

View Full Version : A Ghost edited my html



ikon
11-01-2007, 11:24 PM
thanks

djr33
11-01-2007, 11:43 PM
Lots and lots of javascript on the page; I'm guessing it's generated from that. I don't see it in the source of the page.

The code is quite a mess. I'm not sure what you're coding this in, but the indents and line breaks aren't clear, and there are some things in it that are nonstandard, like the <center> tag, which should be <div align="center">, or even <div style="align:center;">.

ikon
11-01-2007, 11:53 PM
thanks. do you have firefox? if so (and this is how i found it) go to the webpage and highlight the ">" that shows up, then right-click and press view selection source. this will display the &gt; that is causing the character to show, but i cant figure out how to get it out. if you know id love to know

ps..as for the coding jumble, thats not my professional area so as long as the site displays correctly in the browser im happy with it . if i were selling html how-to books through the site then we'd have something to worry about :)

Twey
11-02-2007, 12:44 AM
Hm... I'd better not buy food from you, it might be out of date. After all, you're not selling food preservation howto books :)

I and probably everyone else here can't be bothered to parse that jumble -- if you sort it out we'll happily have a look. http://validator.w3.org/

Rohan72
11-02-2007, 12:50 AM
Seems like the tipBorderStyle is not defined in the scripting. might have something to do with that.

BLiZZaRD
11-02-2007, 05:04 AM
Found it!

find the <td> section for the Arrow crab... looks like this:



<tr bgcolor="#d8eda8"><td><div style="text-align: center;">
<font style="font-weight: bold;" size="2"><a href="http://reefscavengers.com/arrowcrab.html" onclick="NewWindow(this.href,'name','515','750','no');return false" onmouseover="doTooltip(event,7)" onmouseout="hideTip()"><font face="tahoma">Arrow Crab</font></a></font></div></td><td><font face="tahoma" size="2"></font><center><font face="tahoma" size="2">2-4 inches</font></center></td><td><font face="tahoma" size="2"></font><center><font face="tahoma" size="2">$6.99</font></font></center></td>><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"><td><font face="tahoma" size="2"></font><center><font face="tahoma" size="1">


Then look at the closing td tag after the "$6.99" to see the extra ">" in there:



$6.99</font></font></center></td>><form target="paypal"


(or you could open up the page in notepad and ctrl+f for ">>" to go right to it.)

IF this is NOT it (should be though) then my guess is you have some php parsing there and there is an extra > in the php code.

:D

djr33
11-02-2007, 08:16 AM
PHP would show up in the source; that may be it, or it's dynamically generated by Javascript. The reason that makes sense is that view selection source shows the current state of the page, as changed by scripting, and view source shows the original. Also, that might NOT be it (though it's wrong), because the view selection source shows &gt;, not > directly.

jscheuer1
11-02-2007, 08:41 AM
99.99% chance it is what BLiZZaRD says. It's there as an entity at the top of the page in the generated source, but not in the markup. In the view source, it is in the markup, right where BLiZZ says that it is.

Twey
11-02-2007, 10:24 AM
That's peculiar. Fx DOM inspector says it's inside the <center> but outside the <table>. Some error-correction going on there I guess (another reason to validate your page before bringing it to us).

It's very clearly not Javascript-based, because if one turns off Javascript it still appears.

djr33
11-02-2007, 10:43 AM
Ah. Very weird, then.

Validate, then the normal patterns will apply. Until then, it seems it'll just be strange.

jscheuer1
11-02-2007, 12:34 PM
I played around with the page in IE 7, and with its developer's extension or whatever its called, it placed the source of the problem exactly where BLiZZaRD did. It showed it as a text node of a <> tag located in the table at the precise point where it is.

Definitely error correction on the part of FF when showing it outside of the table in the generated code view.

ikon
11-02-2007, 01:58 PM
blizzard was right, thanks!!!

BLiZZaRD
11-02-2007, 05:46 PM
Now you just need to go validate your page so that ALL browsers and visitors can see it the way you meant for it to be seen ;)