Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:38:59+00:00 2026-06-08T19:38:59+00:00

Can i turn this into an external script? <center> Users online: <blink> <sup> <form>

  • 0

Can i turn this into an external script?

<center>
Users online:

<blink>
<sup>
<form>
<TABLE style="background-color:white" border="2"> 
<TD><div id="text"></div></TD>
</TABLE>
</form>
</sup>
</blink>
</center>
<script type="text/javascript">
Function.prototype.allowSleep = function(n) {
  var i, f;
  if (!/^[$\w]+$/.test(n)) return;
  i = 0;
  f = this.toString().replace(/sleep\((.*?)\);/g , function(f,t) {i++; return n+".f"+i+" = function() {"+n+".func"+i+"();};\nsleep("+t+","+n+".f"+i+");\n"+(i==1?"":"}\n")+n+".func" + i +" = function() {";});
  eval(n+'='+f+'\n}');
}
sleep = function(t,f) {
  if (f === undefined) return;
  setTimeout(f,t);
}

afunc = function() {
  document.getElementById('text').innerHTML = '1';
  sleep(2000);
  document.getElementById('text').innerHTML = '2';
  sleep(2030);
  document.getElementById('text').innerHTML = '3';

}
afunc.allowSleep('afunc'); // comment
afunc();
</script>

I save as .js but i get an error on line 2…

What are .js and how do i make them? xD

I just want to be able to hide my code basically

would i have to click a button to show this or will it appear on the page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:39:00+00:00Added an answer on June 8, 2026 at 7:39 pm

    You can not save html in .js file, just put following part in your. js and include it:

    <script type="text/javascript">
    Function.prototype.allowSleep = function(n) {
      var i, f;
      if (!/^[$\w]+$/.test(n)) return;
      i = 0;
      f = this.toString().replace(/sleep\((.*?)\);/g , function(f,t) {i++; return n+".f"+i+" = function() {"+n+".func"+i+"();};\nsleep("+t+","+n+".f"+i+");\n"+(i==1?"":"}\n")+n+".func" + i +" = function() {";});
      eval(n+'='+f+'\n}');
    }
    sleep = function(t,f) {
      if (f === undefined) return;
      setTimeout(f,t);
    }
    
    afunc = function() {
      document.getElementById('text').innerHTML = '1';
      sleep(2000);
      document.getElementById('text').innerHTML = '2';
      sleep(2030);
      document.getElementById('text').innerHTML = '3';
    
    }
    afunc.allowSleep('afunc'); // comment
    afunc();
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like a daemonizer that can turn an arbitrary, generic script or command into
How can I turn this into an array? I need a board to show
Without using code, how can I turn this into a Template? I have about
Say I have a current running process known, how can I turn this into
how can I turn this code into a function with the same output? declare
How can I turn this behavoir off? It happens when you enter a close
So I know I can turn warnings into errors using -Werror=... but I want
I have a CGContext, which I can turn into an NSGraphicsContext. I have an
how can one turn off the error messages of a bash script? I want
How can I, given two different CGPoints , turn them into an CGRect ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.