Script Error On My Forum - Arrrrghhhh!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmishPatel
    Member
    • May 2002
    • 64

    Script Error On My Forum - Arrrrghhhh!

    My site is http://www.weforums.com and ever since I changed skin to default and put different ad coding up, I keep getting the following error:

    A Runtime Error has occured. Do you wish to Debug?
    Line: 988
    Error: Unterminated string constant

    The only way I know how to fix it is removing the ads completly but that's not even an option right now.. I vist numerous forums with a lot of ads on them and get no script errors there so I'm really confused - any help appreciated.!
  • Dennis Olson
    Senior Member
    • Oct 2002
    • 2789

    #2
    You have an error in your ad HTML code.

    Comment

    • AmishPatel
      Member
      • May 2002
      • 64

      #3
      I guessed that but I cant find which ad it is or why it's doing it

      Comment

      • Dennis Olson
        Senior Member
        • Oct 2002
        • 2789

        #4
        Error: Unterminated string constant

        You have something that says (for example):

        myString="abcdefg

        but don't have a closing quote on the end. That's the error.

        Comment

        • AmishPatel
          Member
          • May 2002
          • 64

          #5
          Originally posted by Dennis Olson
          Error: Unterminated string constant

          You have something that says (for example):

          myString="abcdefg

          but don't have a closing quote on the end. That's the error.
          Any way you know which ad it is? I think it's the code below causing it:
          <script language="JavaScript1.1"

          src
          ="http://network.realmedia.com/RealMedia/ads/adstream_jx.ads/weforums/160x600/ron/spt/ss/a@x10">

          </script>

          <script language="JavaScript">

          <!--

          if (parseFloat(navigator.appVersion) == 0) { document.write('<IFRAME

          WIDTH=160 HEIGHT=600 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0

          FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000"

          SRC="http://network.realmedia.com/RealMedia/ads/adstream_sx.ads/weforums/160x600/ron/spt/ss/a@x10"></iframe>');

          }

          // -->

          </script>

          <noscript><a

          href=
          "http://network.realmedia.com/RealMedia/ads/click_nx.ads/weforums/160x600/ron/spt/ss/a@x10?x"><img

          src=
          "http://network.realmedia.com/RealMedia/ads/adstream_nx.ads/weforums/160x600/ron/spt/ss/a@x10" width="160" height="600"></a>

          </noscript>

          <!--- end of weforums_160x600_(160x600_skyscraper)_247RealMediaAdTag

          --->

          Comment

          • Dennis Olson
            Senior Member
            • Oct 2002
            • 2789

            #6
            First, here's a great reference page for you:



            From what I can determine via a brief review of your code, you are not specifying the ".js" file to run in your "SRC=" portion of the Javascript tag.

            Comment

            Related Topics

            Collapse

            Working...