Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: A Ghost edited my html

  1. #1
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default A Ghost edited my html

    thanks
    Last edited by ikon; 11-11-2007 at 04:44 AM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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;">.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2005
    Posts
    110
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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/
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    81
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Seems like the tipBorderStyle is not defined in the scripting. might have something to do with that.

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Found it!

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

    Code:
    <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:

    Code:
    $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.

    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ah. Very weird, then.

    Validate, then the normal patterns will apply. Until then, it seems it'll just be strange.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •