Where do I slow down a bouncing graphic in this code, pls?

F

fitwell

I sent an email message to friends and family with stationery I
created with a fantastic freeware add-on to a great freeware html
editor, Arachnophilia. At least, I find it so.

However, I've never scripted before. Between the asterisks below, is
the source code for the stationery but I couldn't figure how and what
to change to slow down the bounce. In the editorm the speed of the
animated flying bat gif fine. Once the message was sent, however, the
speed was perhaps as much as double. It was fine at the initial speed
but too fast and annoying in the final email message itself.

Thank you!
*******************************************************
<!doctype html public "-//w3c//dtd html 3.2//en">

<html>

<head>
<title>GroceryEmailToTío</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>

<body bgcolor="#ffc68c" text="#ffffff" link="#0000ff" vlink="#800080"
alink="#ff0000">

<img style="left: 0px; POSITION: absolute; TOP: 0px; Z-INDEX: 1;"
name="bounce" src="z- Hallowe'en - bat, flying.gif">

<script language="JavaScript">

function bounce1(){
window.tm=setInterval('bounceIt()',2);
}

function bounce2(){
clearInterval(window.tm);
}

var x=5;
var y=2;
var offsetx=5;
var offsety=5;

function bounceIt() {
var el = document.all.bounce;
x+=offsetx;
y+=offsety;
if
((x+el.offsetWidth>document.body.clientWidth+document.body.scrollLeft)
|| (x<=document.body.scrollLeft)) {
offsetx=-offsetx;
if (x<document.body.scrollLeft) x=document.body.scrollLeft;
if
(x+el.width>document.body.clientWidth+document.body.scrollLeft)

x=document.body.clientWidth-el.offsetWidth+document.body.scrollLeft;
};
if
((y+el.offsetHeight>document.body.clientHeight+document.body.scrollTop)
|| (y<=document.body.scrollTop)) {
offsety=-offsety;
if (y<document.body.scrollTop) y=document.body.scrollTop;
if
(y+el.offsetHeight>document.body.clientHeight+document.body.scrollTop)

y=document.body.clientHeight-el.offsetHeight+document.body.scrollTop;
};
el.style.posTop = y;
el.style.posLeft = x;
}

setTimeout("bounce1()",2500);
window.onunload=bounce2;
</script>
<!--VERMEER BOT=HTMLMarkup StartSpan -->

<img id="music" src="z- Hallowe'en 2003.10.30.mid" height="10"
width="10" style="Display: none">
<bgsound id="sound" src loop="1">
<script>
sound.src=music.src
</script>

<!--VERMEER BOT=HTMLMarkup EndSpan -->
<img src="C:\Program Files\sven\graphics\soundwarning.gif"
style="Display: none">
<BODY background="Stationery - Holiday, Hallowe'en - bats.jpg">
<STYLE>P.msoNormal {
FONT-WEIGHT: normal; FONT-SIZE: 10pt; MARGIN-LEFT: 175px;
COLOR: ffffff; FONT-FAMILY: "Verdana", "sans serif"
}
LI.msoNormal {
FONT-WEIGHT: normal; FONT-SIZE: 10pt; MARGIN-LEFT: 175px;
COLOR: ffffff; FONT-FAMILY: "Verdana", "sans serif"
}
BODY {
FONT-WEIGHT: normal; FONT-SIZE: 10pt; MARGIN-LEFT: 175px;
COLOR: ffffff; BACKGROUND-REPEAT: repeat-y; FONT-FAMILY: "Verdana",
"sans serif"
}
HR {
WIDTH: 100%; COLOR: ffffff; HEIGHT: 1px
}
</STYLE>




</body>

</html>
*******************************************************



It's a great piece of stationery that Arachnophilia allowed me to
create; feel free to use as a template if you like or whatever.
You'll just need 3 things, unless anyone is interested and I can post
to alt.binares.freeware, for example: a background file to replace my
"Stationery - Holiday, Hallowe'en - bats.jpg" one, a sound file to
replace my "z- Hallowe'en 2003.10.30.mid" and an animated GIF to
replace my "z- Hallowe'en - bat, flying.gif". Or choose your own, of
course, and deal with the filenames as you will.



Cheers!
 
H

Hywel Jenkins

I sent an email message to friends and family with stationery I
created with a fantastic freeware add-on to a great freeware html
editor, Arachnophilia. At least, I find it so.

I'm sure they were chuffed.
It was fine at the initial speed
but too fast and annoying in the final email message itself.

Hmm. I suspect the speed of the animation is nothing to do with how
annoying it is. I just noticed that it also has sound. Sheesh.

window.tm=setInterval('bounceIt()',2);

Change the '2' in the line above.

It's a great piece of stationery that Arachnophilia allowed me to
create; feel free to use as a template if you like or whatever.

How about "What not to do with EMail"? It won't work on other computers
because they won't have the MIDI file or the image at the paths you've
specified.
 
F

fitwell

I'm sure they were chuffed.

What does "chuffed" mean, pls?
Hmm. I suspect the speed of the animation is nothing to do with how
annoying it is. I just noticed that it also has sound. Sheesh.

Bet you're glad I didn't send it to you, then.

A special email every once in a while to celebrate holidays like
Hallowe'en, Xmas, Easter, etc. is a nice thing to get for many people.
We recv boring, really annoying emails all the time that are business-
and/or work-related. Nice for a change to recv something fun. I revd
3 responses back from it; one friend in particular thanked me for
making her day.
Change the '2' in the line above.

I'll have to test to see whether incrementing or decreasing is what is
needed.
How about "What not to do with EMail"? It won't work on other computers
because they won't have the MIDI file or the image at the paths you've
specified.

So you either request the files of me, as I pointed out, or rename.
Seems simple enough to me. Or just ignore. When one makes an offer,
doesn't mean that people are obligated, after all.

Thank you.
 
R

Richard

fitwell said:
I sent an email message to friends and family with stationery I
created with a fantastic freeware add-on to a great freeware html
editor, Arachnophilia. At least, I find it so.
However, I've never scripted before. Between the asterisks below, is
the source code for the stationery but I couldn't figure how and what
to change to slow down the bounce. In the editorm the speed of the
animated flying bat gif fine. Once the message was sent, however, the
speed was perhaps as much as double. It was fine at the initial speed
but too fast and annoying in the final email message itself.
Thank you!
*******************************************************
<!doctype html public "-//w3c//dtd html 3.2//en">

<head>
<title>GroceryEmailToTío</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>
<body bgcolor="#ffc68c" text="#ffffff" link="#0000ff" vlink="#800080"
alink="#ff0000">
<img style="left: 0px; POSITION: absolute; TOP: 0px; Z-INDEX: 1;"
name="bounce" src="z- Hallowe'en - bat, flying.gif">
<script language="JavaScript">
function bounce1(){
window.tm=setInterval('bounceIt()',2);
}

Change the "2" in the line above.
The higher the number the slower the "bounce".
I tested it with a value of "800" and it crawled.
Want to have more fun with it?
Change the x values in the lines below this.
var x=50
var offsetx=50.
This causes a "zig zag" pattern.

<bragging rights>
I originally wrote this program in BASIC circa 1980.
While using a Radio Shack store computer.
A Tandy rep saw what I was doing one day, then took the idea and ran with
it.
That same program, byte for byte, appeared in their monthly magazine with
but one minor change.
If only we had the power of seeing into the future, I would not have been so
careless.
</bragging rights>

Pay no attention to a reply from a person using the handle "informant".
 
H

Hywel Jenkins

"Pleased" - it's an English colloquialism.
What does "chuffed" mean, pls?


Bet you're glad I didn't send it to you, then.

Would have made it through if you had.
A special email every once in a while to celebrate holidays like
Hallowe'en, Xmas, Easter, etc. is a nice thing to get for many people.
We recv boring, really annoying emails all the time that are business-
and/or work-related. Nice for a change to recv something fun. I revd
3 responses back from it; one friend in particular thanked me for
making her day.


I'll have to test to see whether incrementing or decreasing is what is
needed.


So you either request the files of me, as I pointed out, or rename.
Seems simple enough to me.

So you email people, then they have to get in touch with you so that
they can see your email? Yes - that makes sense. If you create the
stationery correctly it will send the files with the email. You'd have
been better off emailing a link to a web page.
Or just ignore.

Is that really a sentence?
When one makes an offer,
doesn't mean that people are obligated, after all.

You didn't make an offer.
 
I

informant

Andy Dingley said:
Circa 1980, _everyone_ learning BASIC wrote that program.

But Bullis is sure he was the first and had it stolen by Radio Shack who
gave his coding away to all the others. The date has changed over time with
Bullis claiming early to mid 70's at various times. Here is the first claim
by his very first sockpuppet, the one that hung out in the kiddy pr0n
groups:

Path: rQ!SnNA!Supernews73!supernews.com!Supernews69!not-for-mail
From: "sandman" <[email protected]>
Newsgroups: 24hoursupport.helpdesk
Subject: Re: Voyager and newbies haven
Date: Sat, 12 Dec 1998 20:31:47 -0500
Organization: Posted via RemarQ, http://www.remarQ.com - Discussions start
here!
Lines: 41
Message-ID: <[email protected]>
References: <[email protected]>
NNTP-Posting-Host: 208.254.137.88
X-Trace: 913512714 TWNY2XU9G8958D0FEC usenet57.supernews.com
X-Complaints-To: (e-mail address removed)
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Xref: rQ 24hoursupport.helpdesk:14478

Both of you are wise ass know it alls.
If someone says somethng you don't agree with, they get their ass chewed out
for it.

What the heck does DOS stand for anyway? Dumb Old SHit?

It stands for Disk Operating System.
Windows can't run without it.
Nor can a ton of other secondary level operating systems.

I've been messing around with computers ever since they came out in the home
market thanks to Radio Shack.
You know how they get the stuff to bounce around on the screen?
I wrote the original program for it jackass.
But dumbass me didn't know nothin' about copyright back then.
Or how it applied to computers.
What happened with it was this, a salesman from Tandy was in the store one
day while I was working on the program and he saw me playing around with it.
The next month that same damn program, with a few minor changes, was in the
monthly magazine they put out.
I've been kickin' my ass ever since that.
I've learned how to program in DOS, Basic, QBasic, Cobol, Fortran, Visual
Basic and some C++. Now I'm slowly learning HTML.
Most of what I know about computers has come from experience. The best
teacher there is.
Like you, I have learned quite a few things here myself.
I sure as hell don't respond to something I know nothing about just to
respond. Like you do sometimes.
You may have been in this ng longer than I have, but that still don't make
you king of the hill.


I may not respond to your comments because I feel it's totally useless to
even try.

Next time I respond to a question, either add something constructive to it
or keep your big mouth shut.
 
F

fitwell

"Pleased" - it's an English colloquialism.

Thanks! It helps to know what something means.

[snip]
So you email people, then they have to get in touch with you so that
they can see your email? Yes - that makes sense. If you create the

You lost me there. I meant here in this ng re the template. Sorry if
I wasn't clear.
stationery correctly it will send the files with the email. You'd have
been better off emailing a link to a web page.

No. The email went intact with sound and 2 graphics, just like
stationery normally does.
You didn't make an offer.

Yes. That if anyone wanted the components, I could post to
alt.binaries.freeware. But never mind. Hallowe'en is over anyway so
anyone could just add their own graphics and sound and it becomes
whatever they want.

Cheers!
 
F

fitwell

fitwell said:
I sent an email message to friends and family with stationery I
created with a fantastic freeware add-on to a great freeware html
editor, Arachnophilia. At least, I find it so.
[snip]
function bounce1(){
window.tm=setInterval('bounceIt()',2);
}

Change the "2" in the line above.
The higher the number the slower the "bounce".
I tested it with a value of "800" and it crawled.

Oh, thank you! Appreciate very much getting a definitive answer.
This msg is getting saved into my html tips folder!
Want to have more fun with it?
Change the x values in the lines below this.
var x=50
var offsetx=50.
This causes a "zig zag" pattern.
Kewl!

<bragging rights>
lol

I originally wrote this program in BASIC circa 1980.
While using a Radio Shack store computer.
A Tandy rep saw what I was doing one day, then took the idea and ran with
it.
That same program, byte for byte, appeared in their monthly magazine with
but one minor change.
If only we had the power of seeing into the future, I would not have been so
careless.
</bragging rights>

Oh, shoot! I'd _hate_ that to ever happen to anyone. That's too bad.
But at least you know who wrote the original, that's some consolation.
Pay no attention to a reply from a person using the handle "informant".

Thanks <g>! I like ngs where the environement can be kind. :eek:D
 
I

informant

fitwell said:
fitwell said:
I sent an email message to friends and family with stationery I
created with a fantastic freeware add-on to a great freeware html
editor, Arachnophilia. At least, I find it so.
[snip]
function bounce1(){
window.tm=setInterval('bounceIt()',2);
}

Change the "2" in the line above.
The higher the number the slower the "bounce".
I tested it with a value of "800" and it crawled.

Oh, thank you! Appreciate very much getting a definitive answer.
This msg is getting saved into my html tips folder!
Want to have more fun with it?
Change the x values in the lines below this.
var x=50
var offsetx=50.
This causes a "zig zag" pattern.
Kewl!

<bragging rights>
lol

I originally wrote this program in BASIC circa 1980.
While using a Radio Shack store computer.
A Tandy rep saw what I was doing one day, then took the idea and ran with
it.
That same program, byte for byte, appeared in their monthly magazine with
but one minor change.
If only we had the power of seeing into the future, I would not have been so
careless.
</bragging rights>

Oh, shoot! I'd _hate_ that to ever happen to anyone. That's too bad.
But at least you know who wrote the original, that's some consolation.

Yeah, too bad that it's a figment of Bullis' imagination. He's also claimed
to be able to program in nearly all computer languages, be a pilot, a radio
engineer, run a business, and yet he sits in a trailer, an unemplyed
trucker.
Thanks <g>! I like ngs where the environement can be kind. :eek:D

Don't you recognize that this is "Richard" Bullis from the
24hoursupport.helpdesk group? Of course he wants you to ignore me.

--
Richard the St00pid Bullis stated in Message-ID:
<[email protected]> You claim I am a pedophile simply for the
fact I state I enjoy looking at naked kids. Show me the law, any state or
federal law, in which this is a criminal act. Some state laws may say that
posession may be illegal, but not the actual viewing of.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top