Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Blinking help box

    I never gave anything back to the forum, so I decided to give this. It's just something fun, no real purpose. It can be bent to fit other uses, being a help box thingy is just one way of using it. Basically, when you put your mouse over the box, the cursor blinks between the normal and the help cursor. Whatever, here it is:

    Code:
    <html>
    <head>
    <script type="text/javascript">
    <!--
    function start()
    {
    var time = new Date();
    var second = time.getSeconds();
    second%2 == 0?document.body.style.cursor="help":document.body.style.cursor="default";
    timer = setTimeout("start()",1000);
    }
    function stop()
    {
    clearTimeout(timer);
    document.body.style.cursor="default"
    }
    -->
    </script>
    </head>
    <body>
    <div style="width: 100px; height: 100px; border: 1px solid black;" onMouseover="start()" onMouseout="stop()">
    Help
    </div>
    </body>
    </html>
    edit: I finally managed to have it hosted. Here is a link:
    link
    Last edited by shlagish; 12-30-2003 at 07:03 PM.
    Shawn


 

Posting Permissions

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