Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41
  1. #21
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    I can't find the AJAX one, so I'll write another.

    Save as disp.php:
    PHP Code:
    <?php

    header
    ("Cache-Control: no-cache, must-revalidate");

    session_start();
    if(!isset(
    $_SESSION['alert'])) {
      
    $_SESSION['alert'] = 'no_message';
    }

     
    $handle fopen('message.txt''r'); 
     
    $message fread($handlefilesize('message.txt'));
     
    fclose($handle); 

    if(
    $message != $_SESSION['alert']) {
      print 
    '<script type="text/JavaScript">alert(\''.$message.'\');</script>';
      
    $_SESSION['alert'] = $message;
    }

    ?>
    Put the JavaScript and Iframe on the page where you want the alert to appear:
    HTML Code:
    <html>
    <head>
    <script>
    function update() {
    document.getElementById('display_alert').src = 'disp.php';
    setTimeout('update()', 10000);
    }
    </script>
    </head>
    <body onLoad="update();">
    <iframe id="display_alert" style="display: none" src="disp.php"></iframe>
    </body>
    </html>
    (Tweak the time etc).

    Then when you want to send out a message, just change the text inside a file named message.txt. If you want a panel to edit the message, then just say and I'll make one.

  2. #22
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,580
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    Quote Originally Posted by Nets
    I can't find the AJAX one, so I'll write another.

    Save as disp.php:
    PHP Code:
    <?php
     
    header
    ("Cache-Control: no-cache, must-revalidate");
     
    session_start();
    if(!isset(
    $_SESSION['alert'])) {
    $_SESSION['alert'] = 'no_message';
    }
     
    $handle fopen('message.txt''r'); 
    $message fread($handlefilesize('message.txt'));
    fclose($handle); 
     
    if(
    $message != $_SESSION['alert']) {
    print 
    '<script type="text/JavaScript">alert(\''.$message.'\');</script>';
    $_SESSION['alert'] = $message;
    }
     
    ?>
    Put the JavaScript and Iframe on the page where you want the alert to appear:
    HTML Code:
    <html>
    <head>
    <script>
    function update() {
    document.getElementById('display_alert').src = 'disp.php';
    setTimeout('update()', 10000);
    }
    </script>
    </head>
    <body onLoad="update();">
    <iframe id="display_alert" style="display: none" src="disp.php"></iframe>
    </body>
    </html>
    (Tweak the time etc).

    Then when you want to send out a message, just change the text inside a file named message.txt. If you want a panel to edit the message, then just say and I'll make one.
    lol nets i just payed 1T for something similer to that

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

    Latest Awards:

    Default

    nets no he didnt he scammed


  4. #24
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,580
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    Quote Originally Posted by DMB-Hosting
    nets no he didnt he scammed
    what i dont understand is why u tell me a room to put the throne in then u say i scammed you like wth

  5. #25
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    **I haven't tested that script I posted, so I suggest you test it yourself. Also, it may use lots of bandwidth, unless adjusted.

  6. #26
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,932
    Tokens
    0

    Latest Awards:

    Default

    is there much point in you two just arguing threw a whole 2 pages?

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

    Latest Awards:

    Default

    Lol i could argue for longer - i dont give up


  8. #28
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,580
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    no 1st i wasted 1T on something he didnt even get
    2.i could have got for free

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

    Latest Awards:

    Default

    and 3. no2 was a lie


  10. #30
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    DMB-Hosting stop reselling my script

Page 3 of 5 FirstFirst 12345 LastLast

Posting Permissions

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