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