Results 1 to 7 of 7

Thread: Scripts

  1. #1
    Join Date
    Dec 2004
    Location
    India
    Posts
    211

    Default Scripts

    I THINK THERE SHOULD BE A SECTION FOR SCRIPTS.

  2. #2
    Join Date
    Jan 2005
    Posts
    8

    Default heres a little script

    Heres a little script that tells you how long it takes for your webpage to load,


    <?php

    // Insert this block of code at the very top of your page:

    $time = microtime();
    $time = explode(" ", $time);
    $time = $time[1] + $time[0];
    $start = $time;

    ?>

    then

    <?php

    }


    // Place this part at the very end of your page

    $time = microtime();
    $time = explode(" ", $time);
    $time = $time[1] + $time[0];
    $finish = $time;
    $totaltime = ($finish - $start);
    printf ("This page took %f seconds to load.", $totaltime);

    ?>

  3. #3

    Default

    it's very cool , i have install in my website , it's working very fast :D

  4. #4
    Join Date
    Jan 2005
    Location
    Antwerp, Belgium, Europe, The World
    Posts
    82

    Default

    this javascript blocks the right mouse button :D

    <script language="JavaScript1.1">
    <!-- Begin
    function right(e) {
    if (navigator.appName == 'Netscape' &&
    (e.which == 3 || e.which == 2))
    return false;
    else if (navigator.appName == 'Microsoft Internet Explorer' &&
    (event.button == 2 || event.button == 3)) {
    alert("Sorry, de rechtermuisknop is geblokkeerd!");
    return false;
    }
    return true;
    }

    document.onmousedown=right;
    document.onmouseup=right;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (document.layers) window.captureEvents(Event.MOUSEUP);
    window.onmousedown=right;
    window.onmouseup=right;
    // End -->
    </script>

  5. #5
    Join Date
    Aug 2004
    Location
    USA
    Posts
    996

    Default

    www.funky-chickens.com is a great source of Java and HTMl coding. I've used some of their codes. Just need to know how to use and install them :D.

    You need no knowledge of PHP or CGI and perl.. (Most codes go anywhere you want them and where you want to put them.)

    I also look up at www.javahut.com (don't know if that still works)

    www.Javascript.com
    http://javakit.com (Don't know if I spelt it right.)Good luck...

  6. #6
    Join Date
    Dec 2004
    Posts
    117

    Default

    I learned my HTML from funky chickens. haha. Great site, I used it 5 years ago.

    Another good site is javafile.com and hotscripts.com Im not sure if they are right since I haven't used them in a while.

  7. #7
    Join Date
    Jan 2005
    Location
    Antwerp, Belgium, Europe, The World
    Posts
    82

    Default

    Another really good script site is www.resourceindex.com

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
  •