Javascript question....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 421Fill
    So Fucking Banned
    • Nov 2001
    • 20659

    #1

    Javascript question....

    Is there a way to disable javascript on one's page temporarily... ie. I've got banner exchange code on multiple pages, and the exchanges will be down for a few days... is there a tag I can add to all my pages that will disable it without removing it?

    Thanks in advance.

    Turbo
  • kenny
    Confirmed User
    • Mar 2002
    • 7245

    #2
    [script]
    function stoperror(){
    return true
    }
    window.onerror=stoperror
    [/script]

    That will stop a error that all I can do for you
    7

    Comment

    • kenny
      Confirmed User
      • Mar 2002
      • 7245

      #3
      If you take out a bracket or something to fuck up the banner code and slap the no error script on your pages it would be like a javascript disable, someone else probably has a better way
      7

      Comment

      • dodo
        Confirmed User
        • Jan 2002
        • 162

        #4
        Try...

        <script>
        // use the '//' to comment out a line or

        /*

        to comment out a block

        */


        </script>

        FREE TRAFFIC TRADING on any host. Also try our 200% traffic back program.Click here
        We host the scripts for you so you trade on our bandwidth.

        Comment

        • dodo
          Confirmed User
          • Jan 2002
          • 162

          #5
          sorry about that... board commented out my code.

          do this....

          2 forward slashes or to comment out(make the browser ignore) a line or use a forward slash and star and then a star and forward slash to comment out a block.

          the code works for javascript too


          [script]
          PHP Code:
          // to comment out a line
          
          /*
          your code that will be ignored
          more code
          */ 
          
          [/script]
          Last edited by dodo; 05-30-2002, 01:59 PM.
          FREE TRAFFIC TRADING on any host. Also try our 200% traffic back program.Click here
          We host the scripts for you so you trade on our bandwidth.

          Comment

          • 421Fill
            So Fucking Banned
            • Nov 2001
            • 20659

            #6
            Originally posted by dodo
            Try...

            <script>
            // use the '//' to comment out a line or

            /*

            to comment out a block

            */


            </script>


            You wouldn't happen to be sqee, would you?

            thanks Kenny trying that one right now... this was actually for my mom, so she'll let me know if it worked.

            Comment

            • kenny
              Confirmed User
              • Mar 2002
              • 7245

              #7
              Originally posted by dodo
              Try...

              <script>
              // use the '//' to comment out a line or

              /*

              to comment out a block

              */


              </script>

              You need to edit your post and put in the no error script
              7

              Comment

              Working...