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

Discussion in 'HTML' started by fitwell, Nov 1, 2003.

  1. fitwell

    fitwell Guest

    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!
    fitwell, Nov 1, 2003
    #1
    1. Advertising

  2. In article <>,
    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
    Hywel Jenkins, Nov 1, 2003
    #2
    1. Advertising

  3. fitwell

    fitwell Guest

    On Sat, 1 Nov 2003 12:04:25 -0000, Hywel Jenkins
    <> wrote:

    >In article <>,
    > 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.
    fitwell, Nov 1, 2003
    #3
  4. fitwell

    Richard Guest

    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".
    Richard, Nov 1, 2003
    #4
  5. In article <>,
    says...
    > On Sat, 1 Nov 2003 12:04:25 -0000, Hywel Jenkins
    > <> wrote:
    >
    > >In article <>,
    > > 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
    Hywel Jenkins, Nov 1, 2003
    #5
  6. fitwell

    Andy Dingley Guest

    On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <>
    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
    Andy Dingley, Nov 1, 2003
    #6
  7. fitwell

    informant Guest

    "Andy Dingley" <> wrote in message
    news:...
    > On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <>
    > 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" <>
    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$>
    References: <74un6b$8k1$>
    NNTP-Posting-Host: 208.254.137.88
    X-Trace: 913512714 TWNY2XU9G8958D0FEC usenet57.supernews.com
    X-Complaints-To:
    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.
    informant, Nov 2, 2003
    #7
  8. fitwell

    fitwell Guest

    On Sat, 1 Nov 2003 19:05:14 -0000, Hywel Jenkins
    <> wrote:

    >In article <>,
    > says...
    >> On Sat, 1 Nov 2003 12:04:25 -0000, Hywel Jenkins
    >> <> wrote:
    >>
    >> >In article <>,
    >> > 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!
    fitwell, Nov 2, 2003
    #8
  9. fitwell

    fitwell Guest

    On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <>
    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. :eek:D
    fitwell, Nov 2, 2003
    #9
  10. fitwell

    informant Guest

    "fitwell" <> wrote in message
    news:...
    > On Sat, 1 Nov 2003 11:32:38 -0600, "Richard" <>
    > 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. :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:
    <> 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.
    informant, Nov 2, 2003
    #10
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sheila Dunphy
    Replies:
    2
    Views:
    723
    Sheila Dunphy
    Oct 19, 2004
  2. 50 SOMETHING GAL
    Replies:
    3
    Views:
    390
  3. Manish Hatwalne

    Bouncing mails & Java Mail API

    Manish Hatwalne, Dec 18, 2007, in forum: Java
    Replies:
    8
    Views:
    2,986
    Andrew Thompson
    Dec 19, 2007
  4. David Thielen

    Need to keep bouncing IIS

    David Thielen, Apr 30, 2009, in forum: ASP .Net
    Replies:
    2
    Views:
    571
    George
    May 1, 2009
  5. Benny Alexander

    Form 2 Email Bouncing!

    Benny Alexander, Aug 27, 2003, in forum: ASP General
    Replies:
    0
    Views:
    93
    Benny Alexander
    Aug 27, 2003
Loading...

Share This Page