473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Can't run Mousetrail Clock on my Geocities Homepage

Hello,

I made a webpage ( @ Geocities Free Webpages ) that contains a
mousetrail clock script. I simply copied the script ( including all
html tags ) exactly as it was from a source webpage ( that contains
only the functioning mousetrail clock ) and pasted it onto mine. But
when I try to load the page I made, the clock won't show.

Could someone help explain why the clock won't show on my page? Is
there a special script for mousetrail clocks to run on free websites
like Geocities?

Appreciate any reply. Thanks!

Regards,

Gino Elloso - Philippines
Jul 20 '05 #1
9 2219
Hello,

I made a webpage ( @ Geocities Free Webpages ) that contains a
mousetrail clock script. I simply copied the script ( including all
html tags ) exactly as it was from a source webpage ( that contains
only the functioning mousetrail clock ) and pasted it onto mine. But
when I try to load the page I made, the clock won't show.

Could someone help explain why the clock won't show on my page? Is
there a special script for mousetrail clocks to run on free websites
like Geocities?


Don't think so...does the clock works if you open the file from your
computer?
So not the online, but the offline version...
Jul 20 '05 #2
Already did that ( offline version ) but same result. My page is here..

http://www.geocities.com/giovanni_elloso/clock1.html

Now the code is exactly as I copied from this site...

http://javascript.internet.com/clock...railclock.html

As you might notice, the clock in the source website works just fine but
mine doesn't.

Thanks for you reply.

Gino
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #3
Gino Elloso wrote on 27 Nov 2003:
My page is here..

http://www.geocities.com/giovanni_elloso/clock1.html
It works fine in Opera and IE.
Now the code is exactly as I copied from this site...

http://javascript.internet.com/clock...railclock.html


It works fine in Opera, but not IE.

Looking at the HTML from the GeoCities site, it's probably the
horrible, standards-violating rubbish their server inserts at the end
of the document. I assume that Opera functions properly by ignoring
everything after the closing </HTML> tag, whereas Internet Explorer
doesn't. There's nothing you can do about this, other than using
another host.

Now I have a question for you: why on Earth would you want to run a
pointless, annoying script like that? If I wanted to know the time,
I'd look at either my watch, the clock on my taskbar, or the clock on
the wall. By including that script, I (your visitor) have to download
8kB of rubbish that eats up memory and CPU cycles.

Mike
Why do people have a "just because I can" attitude with JavaScript?

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #4
Michael Winter <M.******@blueyonder.co.uk.invalid> wrote in message news:<Xn*******************************@193.38.113 .46>...
Gino Elloso wrote on 27 Nov 2003:
My page is here..

http://www.geocities.com/giovanni_elloso/clock1.html


It works fine in Opera and IE.
Now the code is exactly as I copied from this site...

http://javascript.internet.com/clock...railclock.html


It works fine in Opera, but not IE.

Looking at the HTML from the GeoCities site, it's probably the
horrible, standards-violating rubbish their server inserts at the end
of the document. I assume that Opera functions properly by ignoring
everything after the closing </HTML> tag, whereas Internet Explorer
doesn't. There's nothing you can do about this, other than using
another host.

Now I have a question for you: why on Earth would you want to run a
pointless, annoying script like that? If I wanted to know the time,
I'd look at either my watch, the clock on my taskbar, or the clock on
the wall. By including that script, I (your visitor) have to download
8kB of rubbish that eats up memory and CPU cycles.

Mike
Why do people have a "just because I can" attitude with JavaScript?


Oh dear, here we go. Did it occur to you that Gino might be a kid or a
Newbie? Goggled eyed & amazed at the (USEFUL and USELESS - FUN and
SERIOUS) stuff that JavaScript can do.

Instead of encouraging possible new "JavaScripters" into the fold thus
expanding and continuing the language, you think it's better to put
them down and put them off.

If we look at it your way, why bother with images, fonts, colours,
themes and layouts? They serve no purpose other than eye candy taking
up download time and hard drive space.
----------------------------------------------------

Hey Gino! I've checked your page. In Explorer 6, it throws up a
warning about an unterminated string constant at line 4 but the clock
works after wards!

Although it's rare, the "advertising/whatever" script Geocities
inserts into all its hosted pages might be causing a conflict???

PS: Never let anyone tell you what to do with YOUR web pages.
Jul 20 '05 #5
madeupname wrote on 28 Nov 2003:
Oh dear, here we go. Did it occur to you that Gino might be a
kid or a Newbie? Goggled eyed & amazed at the (USEFUL and
USELESS - FUN and SERIOUS) stuff that JavaScript can do.
No it didn't, and my comments are valid even if Gino is. That might
seem callous, but a script like that teaches nothing but bad
practice. By encouraging new users to avoid such scripts, you are
doing them a favour by not exposing them to such terrible scripting.
You can't learn from that script: it's badly formatted, uncommented,
and browser dependent.
Instead of encouraging possible new "JavaScripters" into the
fold thus expanding and continuing the language, you think it's
better to put them down and put them off.
No, I think it's better to steer them away from bad practice
techniques and annoying their users.
If we look at it your way, why bother with images, fonts,
colours, themes and layouts? They serve no purpose other than
eye candy taking up download time and hard drive space.
Don't talk to me about inappropriate comments, then spout rubbish
like that. It's been proven that visual elements in presentations
help convey ideas and aid understanding. They add interest and help
attract users. Nothing but plain text in monochrome will bore them
and drive them away. However, a clock that follows the cursor doesn't
aid understanding or convey ideas. It does add interest, but only
until the user gets bored of it and prays for some way to disable it
(which I doubt the author will give them the option to do).

So, how about a comprimise. Gino, if you really do want this script
to appear on your page, by all means include it, but please add the
code below to your page. It will allow the user to disable and re-
enable the script at will.

Add this to the top of the clock script:

var delayTimer = null;

....then find in the Delay() function the setTimeout(...) line, and
change it to:

delayTimer = setTimeout('Delay()',20);

Those lines allow my code to reference the timer that updates the
clock and disable it.

Then place this code below with the script

<SCRIPT type="text/javascript">
function disableClock( isDisabled ) {
if (isDisabled) {
// If the timeout has been set, disable it
if (delayTimer) window.clearTimeout( delayTimer );
// ...then hide the clock
hideClock( true );
} else {
// Call the function that performs the clock updates
Delay();
// ...then show the clock
hideClock( false );
}
}

function hideClock( isShown ) {
var i, showValue;

if (ns) {
showValue = isShown ? show : hide;
for (i=0; i < n; i++) {
document.layers['nsFace'+i].visibility = showValue;
}
for (i=0; i < H.length; i++) {
document.layers['nsHours'+i].visibility = showValue;
}
for (i=0; i < M.length; i++) {
document.layers['nsMinutes'+i].visibility = showValue;
}
for (i=0; i < S.length; i++) {
document.layers['nsSeconds'+i].visibility = showValue;
}
for (i=0; i < D.length; i++) {
document.layers['nsDate'+i].visibility = showValue;
}
} else if (ie) {
showValue = isShown ? 'none' : 'inline';
for (i=0; i < n; i++) {
ieFace[i].style.display = showValue;
}
for (i=0; i < H.length; i++) {
ieHours[i].style.display = showValue;
}
for (i=0; i < M.length; i++) {
ieMinutes[i].style.display = showValue;
}
for (i=0; i < S.length; i++) {
ieSeconds[i].style.display = showValue;
}
for (i=0; i < D.length; i++) {
ieDate[i].style.display = showValue;
}
}
}
</SCRIPT>

That disables (or re-enables) the clock updates, then hides the clock
elements.

Then place this in your document. As it is, the checkbox will sit to
the right of your page with the rest of your content unaffected by
it.

<DIV style="float: right">
<INPUT type="checkbox" id="disable-clock" value="disable"
onclick="disableClock(this.checked)">
<LABEL for="disable-clock">Disable mouse trail clock</LABEL>
</DIV>

Hey Gino! I've checked your page.
So did I. Odd that you didn't comment on that...
In Explorer 6, it throws up a warning about an unterminated string
constant at line 4 but the clock works after wards!
Strange. When I tested it, IE 6 reported an invalid argument on line
124 (a Math.sin() call), though it's valid.
Although it's rare, the "advertising/whatever" script Geocities
inserts into all its hosted pages might be causing a conflict???
That's what I thought, too. When testing my code addition above,
removing the rubbish that GeoCities adds allows the script to run
again.
PS: Never let anyone tell you what to do with YOUR web pages.


No, don't. But if it's good advice and you don't take it, don't
expect many happy visitors.

Be aware that adding any other scripts (or something to the onload
intrinsic event) will cause serious incompatibility problems. This
script needs a complete overhaul...

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #6
Thanks a lot for your replies. Well I guess I changed my mind about
the script co'z it seems there's nothing I can do to make it function
well on my page. I wanted it there in the first place, well co'z I
just found it really nice..just that. :-)

I guess I'll have leave all those kind of stuff to "expert kids" ( I
am old enough to have kids b.d.w. and yet the kid in me still shows up
from time to time but not as good as it used to be..:-) ).

At least it works with IE 6 but I'm sure a whole lot of other internet
users still use earlier version of IE. And there's nothing I can do
about that Pop up advertisement of Geocities ( unless of course I'm
ready to pay them monthly to get rid of it-the advertisement-but I'm
not! )

Any way, thanks again guys!

Gino

mr***********@yahoo.co.uk (madeupname) wrote in message news:<75**************************@posting.google. com>...
Michael Winter <M.******@blueyonder.co.uk.invalid> wrote in message news:<Xn*******************************@193.38.113 .46>...
Gino Elloso wrote on 27 Nov 2003:
My page is here..

http://www.geocities.com/giovanni_elloso/clock1.html


It works fine in Opera and IE.
Now the code is exactly as I copied from this site...

http://javascript.internet.com/clock...railclock.html


It works fine in Opera, but not IE.

Looking at the HTML from the GeoCities site, it's probably the
horrible, standards-violating rubbish their server inserts at the end
of the document. I assume that Opera functions properly by ignoring
everything after the closing </HTML> tag, whereas Internet Explorer
doesn't. There's nothing you can do about this, other than using
another host.

Now I have a question for you: why on Earth would you want to run a
pointless, annoying script like that? If I wanted to know the time,
I'd look at either my watch, the clock on my taskbar, or the clock on
the wall. By including that script, I (your visitor) have to download
8kB of rubbish that eats up memory and CPU cycles.

Mike
Why do people have a "just because I can" attitude with JavaScript?


Oh dear, here we go. Did it occur to you that Gino might be a kid or a
Newbie? Goggled eyed & amazed at the (USEFUL and USELESS - FUN and
SERIOUS) stuff that JavaScript can do.

Instead of encouraging possible new "JavaScripters" into the fold thus
expanding and continuing the language, you think it's better to put
them down and put them off.

If we look at it your way, why bother with images, fonts, colours,
themes and layouts? They serve no purpose other than eye candy taking
up download time and hard drive space.
----------------------------------------------------

Hey Gino! I've checked your page. In Explorer 6, it throws up a
warning about an unterminated string constant at line 4 but the clock
works after wards!

Although it's rare, the "advertising/whatever" script Geocities
inserts into all its hosted pages might be causing a conflict???

PS: Never let anyone tell you what to do with YOUR web pages.

Jul 20 '05 #7
If you think it was nice Gino you DO IT! To hell with the Thought police. One thing you may notice in this group Gino it is full of those that THINK they know what is right for EVERYONE.

--
George Hester
__________________________________
"Gino Elloso - Philippines" <gi*************@yahoo.com> wrote in message news:58**************************@posting.google.c om...
Thanks a lot for your replies. Well I guess I changed my mind about
the script co'z it seems there's nothing I can do to make it function
well on my page. I wanted it there in the first place, well co'z I
just found it really nice..just that. :-)

I guess I'll have leave all those kind of stuff to "expert kids" ( I
am old enough to have kids b.d.w. and yet the kid in me still shows up
from time to time but not as good as it used to be..:-) ).

At least it works with IE 6 but I'm sure a whole lot of other internet
users still use earlier version of IE. And there's nothing I can do
about that Pop up advertisement of Geocities ( unless of course I'm
ready to pay them monthly to get rid of it-the advertisement-but I'm
not! )

Any way, thanks again guys!

Gino

mr***********@yahoo.co.uk (madeupname) wrote in message news:<75**************************@posting.google. com>...
Michael Winter <M.******@blueyonder.co.uk.invalid> wrote in message news:<Xn*******************************@193.38.113 .46>...
Gino Elloso wrote on 27 Nov 2003:

> My page is here..
>
> http://www.geocities.com/giovanni_elloso/clock1.html

It works fine in Opera and IE.

> Now the code is exactly as I copied from this site...
>
> http://javascript.internet.com/clock...railclock.html

It works fine in Opera, but not IE.

Looking at the HTML from the GeoCities site, it's probably the
horrible, standards-violating rubbish their server inserts at the end
of the document. I assume that Opera functions properly by ignoring
everything after the closing </HTML> tag, whereas Internet Explorer
doesn't. There's nothing you can do about this, other than using
another host.

Now I have a question for you: why on Earth would you want to run a
pointless, annoying script like that? If I wanted to know the time,
I'd look at either my watch, the clock on my taskbar, or the clock on
the wall. By including that script, I (your visitor) have to download
8kB of rubbish that eats up memory and CPU cycles.

Mike


Why do people have a "just because I can" attitude with JavaScript?


Oh dear, here we go. Did it occur to you that Gino might be a kid or a
Newbie? Goggled eyed & amazed at the (USEFUL and USELESS - FUN and
SERIOUS) stuff that JavaScript can do.

Instead of encouraging possible new "JavaScripters" into the fold thus
expanding and continuing the language, you think it's better to put
them down and put them off.

If we look at it your way, why bother with images, fonts, colours,
themes and layouts? They serve no purpose other than eye candy taking
up download time and hard drive space.


----------------------------------------------------

Hey Gino! I've checked your page. In Explorer 6, it throws up a
warning about an unterminated string constant at line 4 but the clock
works after wards!

Although it's rare, the "advertising/whatever" script Geocities
inserts into all its hosted pages might be causing a conflict???

PS: Never let anyone tell you what to do with YOUR web pages.


Jul 20 '05 #8
George Hester wrote on 30 Nov 2003:
If you think it was nice Gino you DO IT! To hell with the
Thought police. One thing you may notice in this group Gino it
is full of those that THINK they know what is right for
EVERYONE.


If you care to read his response, you'll find that it didn't work. If
you care to read my post, you can see that I asked a question. If
there's a reason for such a script, fine. No-one can argue with that.
But the "just because I can" attitude isn't sufficient. As someone
said to me in the style sheet newsgroup recently, people go to a site
to read the content, not admire the presentation. Aesthetics should
be considered, but they aren't, and shouldn't be, everything.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #9
gi*************@yahoo.com (Gino Elloso - Philippines) wrote in message news:<58**************************@posting.google. com>...
Thanks a lot for your replies. Well I guess I changed my mind about
the script co'z it seems there's nothing I can do to make it function
well on my page. I wanted it there in the first place, well co'z I
just found it really nice..just that. :-)

I guess I'll have leave all those kind of stuff to "expert kids" ( I
am old enough to have kids b.d.w. and yet the kid in me still shows up
from time to time but not as good as it used to be..:-) ).

At least it works with IE 6 but I'm sure a whole lot of other internet
users still use earlier version of IE. And there's nothing I can do
about that Pop up advertisement of Geocities ( unless of course I'm
ready to pay them monthly to get rid of it-the advertisement-but I'm
not! )

Any way, thanks again guys!

Gino


Gino!
We'll have no quitters here. There's a new version of that clock thing
on
http://www.btinternet.com/~kurt.grigg/javascript
Right at the bottom, there's a link for "Silly clock 3 (updated)". See
if it's any better on Geocities. It's got an off-on button for the
more highly strung of us!

What is the company that connects you to the internet? You 'should'
have some free web space with them. Most people just click off any
Geocities hosted pages any way. The pop-ups are as bad as those you
get on porn sites...so I've heard...cough.
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Harriman | last post by:
Hi, I need to be able to measure a time interval in milliseconds on a windows machine. I have tried using time.clock() but it appears to measure time in seconds...Is there a way to measure time...
10
by: VictorG | last post by:
Hello, I am new to JS and am trying to add some HTML into a JS function. So that when called the script as well as the HTML will be invoked. Is there some type of embed mechanism, sort of the...
8
by: peterbe | last post by:
What's the difference between time.clock() and time.time() (and please don't say clock() is the CPU clock and time() is the actual time because that doesn't help me at all :) I'm trying to...
0
by: Peger, Daniel H. | last post by:
Hi, I'm having a slight problem with the precision of the standard c++ clock function as it is defined in time.h . On my system the shortest meassurable time period is 0.01 seconds, but for my...
5
by: Pushkar Pradhan | last post by:
I've decided to use clock() to time my routines, my code is like this: clk1 = clock(); while (n != 1000000) { mm_2r2c_2r2c_bc(&a, &b, &c); n++; } clk2 = clock(); t2 = time(NULL);...
33
by: Pushkar Pradhan | last post by:
I'm using clock() to time parts of my code e.g. clk1 = clock(); /* code */ clk2 = clock(); /* calculate time in secs */ ...... clk1 = clock(); /* code */ clk2 = clock();
30
by: Matt | last post by:
Does clock_t clock() measure real time or process time? Unless I have missed something, Stroustrup's treatment in TC++PL (section D.4.4.1) is none too clear on that question. Is clock()...
12
by: mast2as | last post by:
Hi everyone I am working on some code that uses colors. Until recently this code used colors represented a tree floats (RGB format) but recently changed so colors are now defined as spectrum....
5
by: yinglcs | last post by:
Hi, I am following this python example trying to time how long does an operation takes, like this: My question is why the content of the file (dataFile) is just '0.0'? I have tried "print...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.