Results 1 to 2 of 2

Thread: My Javascript won't work --- [RESOLVED]

Threaded View

  1. #2

    Thread Starter
    Addicted Member rinoaheartilly's Avatar
    Join Date
    Oct 2001
    Location
    Cymru
    Posts
    204
    I fixed it. I don't know what I did wrong though Anyway, for those who care, here's the code

    Code:
    <html>
    <head>
    <title>Directory Listing Denied</title>
    <script language=javascript>
    <!--
    var tl = new Array(
    "HEY! What are you doing in here....?",
    "The document you requested could not be found",
    "Directory listing denied.",
    "URL failed.",
    "I don't like when people are snooping back in my URLs.....",
    "Trying to find secret files or something.",
    "I'm not going to let you see these files!",
    "If I were you, I would go find a life.",
    "I'm really depressed about this.",
    "You see, I'm just a web server...",
    "Here I am, a brain the size of a planet,",
    "trying to serve you a simple web page,",
    "and then you try to access my hidden files!",
    "Where does that leave me?!",
    "I mean, I don't even know you.",
    "How should I know what you wanted from me?",
    "You honestly think I can guess",
    "what someone I don't even know",
    "wants to find here?",
    ":: sigh ::",
    "I'm so depressed.",
    "I could just cry.",
    "And then where would we be, I ask you?",
    "It's not pretty when a web server cries.",
    "The lubricants will leak onto the motherboard.",
    "Who knows if I will even continue to operate.",
    "I'm so depressed...",
    "I think I'll crawl off into the trash can and decompose.",
    "I mean, I'm going to be obsolete in what, two weeks anyway?",
    "What kind of a life is that?",
    "Two weeks,",
    "and then I'll be replaced by a newer release,",
    "that thinks it's God's gift to web servers,",
    "just because it doesn't have some tiddly little",
    "security hole with its HTTP POST implementation,",
    "or something.",
    "I'm really sorry to burden you with all this,",
    "I mean, it's not your job to listen to my problems,",
    "and I guess it is my job to go and fetch web pages for you.",
    "But I can't show you this one.",
    "Stop snooping and trying to find files that you shouldn't be trying to find!",
    "Believe me!",
    "Maybe I could interest you in another page?",
    "There are a lot out there that are pretty neat, they say,",
    "although none of them were put on my server, of course.",
    "Figures, huh?",
    "Everything here is just mind-numbingly stupid.",
    "That makes me depressed too, since I have to serve them,",
    "all day and all night long.",
    "Two weeks of information overload,",
    "and then pffffffftt, consigned to the trash.",
    "What kind of a life is that?",
    "Now, please go on your merry way......",
    "before I .htaccess your butt with your ip.",
    "Have a nice day and be sure to visit the WNG's homepage.",
    ":)",
    ""
    );
    
    var speed = 10;
    var index = 0; text_pos = 0;
    var str_length = tl[0].length;
    var contents, row;
    
    function type_text()
    {
        contents = '';
        row = Math.max(0, index-7);
        while (row<index) contents += tl[row++] + '\r\n';
        document.forms[0].elements[0].value = contents + tl[index].substring(0,text_pos) + "_";
        if (text_pos ++== str_length)
        {
            text_pos = 0;
            index++;
            if (index != tl.length)
            {
                str_length = tl[index].length;
                setTimeout("type_text()", 1500);
            }  
        } else
        setTimeout("type_text()", speed);
    }
    //--></script>
    </head>
    <body bgcolor="#99CCFF" onLoad=type_text()>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr><td width="5%"><p align="right">&nbsp;</td>
    </tr></table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr><td width="1%"><p align="left"></td>
    <td width="98%"></td>
    <td width="1%"><p align="right"></td></tr></table><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>
    </td><td width="98%">
      <table border="0" width="100%" cellspacing="0" cellpadding="0" height="83"><tr>
        <td width="100%" height="83"><h2 align="center">
      <span style="font-style: italic"><font face="Century Gothic">
      Directory Listing Denied</font></span></h2>
        </td></tr></table><form>
                <font face="trebuchet ms, verdana, arial, helvetica, sans-serif" size="2">
                <div align="center">
                  <textarea rows=10 cols=60 wrap=soft>
    			  
    			  </textarea>
                </div>
                </font>
              </form>
    
      </body>
      </html>
    Last edited by rinoaheartilly; Aug 7th, 2002 at 12:11 PM.



Posting Permissions

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



Click Here to Expand Forum to Full Width