Results 1 to 6 of 6

Thread: PHP Torch

  1. #1
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default PHP Torch

    I got bored, and made a PHP Torch:

    PHP Code:
    <div align="center"><?php
    if(isset($_GET['on'])){
    echo 
    '<body bgcolor="#FFFF00" text="#000000" link="#000000" vlink="#000000" alink="#000000">
    <a href="?off">Turn Torch Off</a>
    <br><br>
    <a href="javascript:window.close();">Close Torch</a>'
    ;
    }elseif(isset(
    $_GET['off'])){
    echo 
    '<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
    <a href="?on">Turn Torch On</a>
    <br><br>
    <a href="javascript:window.close();">Close Torch</a>'
    ;
    }else{
    ?>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function fullScreen(theURL) {
    window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
    }
    //  End -->
    </script>
    <a href="javascript:void(0);" onClick="fullScreen('torch.php?off');">Open 
      Torch</a> 
      <?php

    }
    ?>
    </div>

  2. #2
    Join Date
    May 2005
    Location
    Cornwall
    Posts
    3,590
    Tokens
    2,900
    Habbo
    Feyod

    Latest Awards:

    Default

    ;O cool!

    be better if it was an image of a torch with a button that you can turn it on / off. ^_^

    demo: http://stevena.co.uk/torch.php
    Occasionally visit and have a nose.

  3. #3
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default

    Hehe, thanks for the demo, it was only like a 5 min job.

    If i get really really bored i might make a torch image lol

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    o.0 urmmm is it just me or is that both entirly pointless and wasteful?
    u could achive the same thing in about 3 lines of javascript? which would requre any server side proccesing or anything as well as being fast o.0

  5. #5
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default

    Quote Originally Posted by 01101101entor View Post
    o.0 urmmm is it just me or is that both entirly pointless and wasteful?
    u could achive the same thing in about 3 lines of javascript? which would requre any server side proccesing or anything as well as being fast o.0
    It is indeed pointless and wasteful

  6. #6
    Join Date
    Dec 2005
    Location
    XX
    Posts
    2,308
    Tokens
    2,015

    Latest Awards:

    Default

    It wasnt a torch lmao it was just background changing colors
    Last edited by DMB-Hosting; 24-08-2006 at 07:47 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
  •