Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-24-2003, 09:00 PM   PM User | #1
shlagish
Senior Coder

 
Join Date: Apr 2003
Location: Canada
Posts: 1,063
Thanks: 2
Thanked 0 Times in 0 Posts
shlagish is an unknown quantity at this point
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
__________________
Shawn

Last edited by shlagish; 12-30-2003 at 07:03 PM..
shlagish is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:41 AM.


Advertisement
Log in to turn off these ads.