Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Where do I slow down a bouncing graphic in this code, pls?

Reply
Thread Tools

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

 
 
fitwell
Guest
Posts: n/a
 
      11-01-2003
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+docum ent.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.bod y.scrollLeft)

x=document.body.clientWidth-el.offsetWidth+document.body.scrollLeft;
};
if
((y+el.offsetHeight>document.body.clientHeight+doc ument.body.scrollTop)
|| (y<=document.body.scrollTop)) {
offsety=-offsety;
if (y<document.body.scrollTop) y=document.body.scrollTop;
if
(y+el.offsetHeight>document.body.clientHeight+docu ment.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!

 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      11-01-2003
In article <(E-Mail Removed)>,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> 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.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
 
Reply With Quote
 
 
 
 
fitwell
Guest
Posts: n/a
 
      11-01-2003
On Sat, 1 Nov 2003 12:04:25 -0000, Hywel Jenkins
<(E-Mail Removed)> wrote:

>In article <(E-Mail Removed)>,
>(E-Mail Removed) says...
>> 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.


What does "chuffed" mean, pls?

>> 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.


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.

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

>
>Change the '2' in the line above.


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

>> 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.


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.

 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      11-01-2003
fitwell wrote:

> 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);
> }


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".



 
Reply With Quote
 
Hywel Jenkins
Guest
Posts: n/a
 
      11-01-2003
In article <(E-Mail Removed)>,
(E-Mail Removed) says...
> On Sat, 1 Nov 2003 12:04:25 -0000, Hywel Jenkins
> <(E-Mail Removed)> wrote:
>
> >In article <(E-Mail Removed)>,
> >(E-Mail Removed) says...
> >> 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.


"Pleased" - it's an English colloquialism.

>
> What does "chuffed" mean, pls?
>
> >> 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.

>
> 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.
>
> >> window.tm=setInterval('bounceIt()',2);

> >
> >Change the '2' in the line above.

>
> I'll have to test to see whether incrementing or decreasing is what is
> needed.
>
> >> 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.

>
> 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.



--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      11-01-2003
On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <(E-Mail Removed)>
wrote:

><bragging rights>
>I originally wrote this program in BASIC circa 1980.


Circa 1980, _everyone_ learning BASIC wrote that program.

--
Die Gotterspammerung - Junkmail of the Gods
 
Reply With Quote
 
informant
Guest
Posts: n/a
 
      11-02-2003

"Andy Dingley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <(E-Mail Removed)>
> wrote:
>
> ><bragging rights>
> >I originally wrote this program in BASIC circa 1980.

>
> 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" <(E-Mail Removed)>
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: <74v5ea$4d7$(E-Mail Removed)>
References: <74un6b$8k1$(E-Mail Removed)>
NNTP-Posting-Host: 208.254.137.88
X-Trace: 913512714 TWNY2XU9G8958D0FEC usenet57.supernews.com
X-Complaints-To: (E-Mail 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 ****?

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.


 
Reply With Quote
 
fitwell
Guest
Posts: n/a
 
      11-02-2003
On Sat, 1 Nov 2003 19:05:14 -0000, Hywel Jenkins
<(E-Mail Removed)> wrote:

>In article <(E-Mail Removed)>,
>(E-Mail Removed) says...
>> On Sat, 1 Nov 2003 12:04:25 -0000, Hywel Jenkins
>> <(E-Mail Removed)> wrote:
>>
>> >In article <(E-Mail Removed)>,
>> >(E-Mail Removed) says...
>> >> 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.

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


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.

>> When one makes an offer,
>> doesn't mean that people are obligated, after all.

>
>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!

 
Reply With Quote
 
fitwell
Guest
Posts: n/a
 
      11-02-2003
On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <(E-Mail Removed)>
wrote:

> fitwell wrote:
>
> > 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. D

 
Reply With Quote
 
informant
Guest
Posts: n/a
 
      11-02-2003

"fitwell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <(E-Mail Removed)>
> wrote:
>
> > fitwell wrote:
> >
> > > 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.

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

>
> Thanks <g>! I like ngs where the environement can be kind. 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:
<(E-Mail Removed)> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: slow slow slow! Expert lino fitter Computer Support 5 12-12-2008 04:00 PM
Re: slow slow slow! Beauregard T. Shagnasty Computer Support 2 12-10-2008 09:03 PM
Re: slow slow slow! Expert lino fitter Computer Support 0 12-10-2008 02:33 PM
Help! Bouncing e-Mails Are Bouncing Back kaoz.indehouse@gmail.com Computer Support 17 01-27-2007 02:41 PM
Is it possible to mouseover a GRAPHIC . . . that launches another (freestanding) GRAPHIC (ie. when flash is _not_ available)? 50 SOMETHING GAL HTML 3 12-10-2006 01:10 AM



Advertisments