![space.gif (824 bytes)]() |
Design
By Renee
Lesson Two Part Two
Please Note***These pages will be
graphic intense, they will take a while to fully download. Use your refresh button to
reload the page to check for updates on this page. ...Renee
The Script
Is it getting less scary?
You will find that many scripts have the same basics applied to them. Background images,
fonts, colors and sizes. The scripts that we are doing will become more involved as we go
along. But with each script you will learn just a little more. You will become familiar
with steps and know what to add where. I know what you're thinking, "yeah
right"! But it is true, everyone who uses scripts was at one time a beginner.
This script is a
left border scroll. This means you will have a "fixed" background, that does not
scroll. And a graphic on the left side that scrolls over the background. You will have a
choice of up or down. I prefer "up" so this lesson will have the scrolling
graphic scrolling up. Now if your ready, let's get started!!
FirstStepper's
Download Script Here
Please follow these directions step by step.
1. Click above for script.
2. It will open to a blank html page that will be showing a white background and
scrolling boxes that have a red x in them.

Next click view/source.
This will open up Notepad with the text version of the script.

We will need to save this to the firststeps scripts folder we created.
Click file/save as and open the path to your folder, and save the text file.

You can now close the windows. We are going to go to that same folder and re-open
that text file that we just saved. Go to start/program files/windows
explorer/c:/firststeps scripts/ and double click on the file you just saved to open it. It
will open in Notepad. We are going to make a copy of this text file to enter
our stationery in. Make it a rule to
Never
work on the original.
Now, right click anywhere inside the Notepad window and click on select all...
This will highlight all the text a dark blue. Now right click again in the window and
click copy...

This places a copy of the text file on your clipboard. Close the windows. Now click
the shortcut to Notepad that we created at the beginning. This will open up a clean file.
Right click anywhere inside the window and click paste.

You should now have a copy of the script.

OK!! Now we are getting to the easy parts!! Yes, Really!
We are going to start entering our stationery in the script. Just follow the
directions. Remember this, there is
NO
room for error in scripts. Even a dot in the wrong
place will create a script error window. You must become familiar with the script and
where you are making the changes. Go step by step and change where I have instructed you
to do.
Ready?... of course you are!!! You are almost done!
The Script
You will note this script has more to it. That's because there is more added, a
background, and a separate graphic. The more items, or directions, the longer and more
detailed the script will be. Practice at double-checking everything to be sure of your
entries into the script.
<HTML><HEAD>
<STYLE>BODY {
This is telling your computer to "tile" or
repeat the background. No changes here.
BACKGROUND-REPEAT: repeat;
This section tells you what color is the first loaded
into the computers viewer. It is actually the color behind your stationery. I put mine at
the main color I chose for my background. Most computers will show this color before the
actual stationery.
BACKGROUND-COLOR: #FFFFFF;
This is the color you want your font to be seen on
your stationery. This is where you enter the HTML code we made a note of in making our
stationery
COLOR: #000000;
The font family describes the font you want to use and
see in your stationery. But know this, if the receiver does not have the same font in
their fonts folder, they will only see their "default" font on your stationery.
FONT-FAMILY: "Comic Sans MS";
Font size is determined by what font you choose, some
fonts at 14pt are really small, and some are a normal reading size. Determine this by the
font you are choosing. If you change the font size here, since 14pt is "normal"
there is sometimes a place down in the script you will need to change to match or it will
not change. Its not like that in this script, but I will point it out to you in a script
it is in.
FONT-SIZE: 14pt;
This determines where we want our text to start
writing, usually put it at the width of your graphic. Some scripts you cannot change due
to the script itself. But here is a tip, make your graphic in the script about 10px wider
than it really is.. It will move the text over and not be right up against the graphic
border. It does not work in some, but for the most part it will work.
***Tip:
If your margin is right up against the graphic, down below in the image
width and height, add 10 pixels to the width of your graphic. It will fool
the script!!
MARGIN-LEFT: 250px;
This determines the margin on the right side. Keeps it
from being up on the wall.
MARGIN-RIGHT: 10px
}
</STYLE>
</HEAD>
Your background image is what will cover the whole
background.
The bgcolor is what is behind your stationery.
<BODY background="c:\program files\common files\microsoft
shared\stationery\BACKGROUND IMAGE HERE.JPG"
bgColor=#FFFFFF>
Your Image that will be scrolling over the background goes
here. You will also need to put in the Height and Width of
your Image. Tip* put your image
in the script that it is 10px wider than it actually is. In some scripts this will keep
your font from starting right up against the image.
<IMG id=bkg src="c:\program files\common files\microsoft shared\stationery\YOUR IMAGE HERE.JPG"
style="DISPLAY: none; HEIGHT: 300px; LEFT: -800px;
WIDTH: 260px">
Have your midi in your stationery folder and making sure
the titles are exact enter your midi here.
<BGSOUND balance=0 loop=99 src="c:\program files\common files\microsoft
shared\stationery\YOUR MIDI HERE.MID"
style="DISPLAY: none" volume=0>
<SCRIPT language=VBScript>
REM Edgar V. Poirier
REM [email protected]
REM Thanks to Tar'Hom for the idea ; )
REM April 07, 1999
Dim w, wW, wH, wx, pW, pH, myTimer, x, y, xD, yD, Res
Dim picX, picY, bxW, bxH, numPics, scrollDirection, scrollType
Set w=document.body
REM ************* MAKE CHANGES HERE *************
REM Select scroll direction by entering one of the following choices below:
REM Up = U
REM Down = D
Choose your scroll direction here.. U
for up D
for
down
scrollDirection="U"
REM Select Scroll Type Below
REM Choices:
REM Left = L
REM Right = R
This describes the side the scroll is on... do nothing
here...
scrollType = "L"
REM *********************************************
REM Initialize
sub setUp()
REM Get window dimensions
wW=w.clientWidth
wH=w.offsetHeight
REM Set the scroll Width and Height
bW=pW
bH=wH
if w.scrollHeight>wH then bH=w.scrollHeight
bT=0
bL=0
REM Adjust image position and direction depending on choices above.
bW=pW
if scrollType="R" then
bL=wW-bW
if pw<wW then w.style.marginRight=bW
else
if pw<wW then w.style.marginLeft=bW
end if
if w.scrollHeight>wH then bH=INT(wH+(w.scrollHeight-wH))
REM Set the visible limits
box.style.height=bH
box.style.width=bW
box.style.left=bL
box.style.top=bT
x=0
y=0
xD=-1
yD=-1
REM Calculate start position of the background and direction.
if scrollDirection="U" then
y=0
else
yD=-yD
y=-pH
end if
REM Start the scroll.
SF
end sub
REM universal scrolling routine.
sub SF()
ClearTimeOut(myTimer)
y=y+yD
if yD>0 and y>=0 then y=-pH
if yD<0 and y<-pH then y=0
REM Position the background image.
backgroundposition.style.top = y
REM repeat (larger numbers give slower scroll below)
myTimer=SetTimeOut("SF",64)
end sub
REM Everything starts here
sub Window_OnLoad()
REM Get users screen resolution
wx=window.screen.width
REM and adjust font size to match.
Res=INT(wx/128)
The default font size is 14, if you have any other
number up in the font-size at the beginning of the script, change this number to match.
w.style.fontSize = 14+Res
REM Get dimensions of background image.
pW=bkg.style.posWidth
pH=bkg.style.posHeight
REM Calculate the size of the background
REM Number of images across
picX=1
REM Number of images down
picY=INT(((wx*.75)/pH)*5)
if picY<2 then picY=2
REM Width of background
bxW=picX*pW
REM Height of background
bxH=picY*pH
backgroundposition.style.width=bxW
backgroundposition.style.height=bxH
REM Calculate required number of images
numPics=picX*picY
REM "Tile" the background (NOTE: Image is not positioned.)
for i=1 to numPics
data=""
data="<IMG src='" & bkg.src & "'>"
backgroundposition.insertAdjacentHTML "beforeEnd", data
next
REM Lets get started.
setUp
end sub
REM This runs if the window size is changed.
sub Window_OnResize()
setUp
end sub
</SCRIPT>
<!-- This is the "fake" background made up of a SPAN inside a DIV - DO NOT
CHANGE OR MOVE THE FOLLOWING -->
<DIV id=box style="FILTER: BlendTrans(Duration=0); HEIGHT: 600px; LEFT: 0px;
POSITION: absolute; TOP: 0px; WIDTH: 800px; Z-INDEX: -1">
<SPAN id=backgroundposition style="HEIGHT: 4000px; POSITION: absolute; WIDTH:
3000px"></SPAN></DIV>
<DIV></DIV></BODY>
The higher the number the slower your ticker script will
scroll. ((I like mine at 450))
<script language="JavaScript">
<!--
ScrollSpeed = 275; // milliseconds between scrolls
ScrollChars = 4; // chars scrolled per time period
Enter your ticker script message here. Can be the name of
your stationery, have a nice day, your name, anything you would like others to see. Keep
your message inbetween the quotation marks, do not put any other quotation marks in the
ticker script. Leave some space between the first set of quotation marks and your message
so that it is not up against the wall of your computer.
function SetupTicker() {
// add space to the left of the message
msg = "
. . . . Your Message Here . . . .
";
RunTicker();}
function RunTicker() {
window.setTimeout('RunTicker()',ScrollSpeed);
window.status = msg;
msg = msg.substring(ScrollChars) + msg.substring(0,ScrollChars);}
SetupTicker();
<!-- end -->
</script>
<!--VERMEER BOT=HTMLMarkup EndSpan -->
</HTML>
Well you are almost there!
Screen Captures are the same as lesson one. This part of your
scripting does not change.
After you have entered in all your information, your Notepad text will need to be
saved. The same script has to be saved two ways.
#1. Click file/Save As
When the Save As window pops up, put a name in for your
stationery
The bottom window has as Text document, that is correct
so save it to your stationery folder.

We still have to Save As a HTML file so our computers
can read the script. So click SAVE/AS AGAIN
but this time
open the drop down window, and make ALL FILES as the save as type.
Then using your cursor take the .txt file extension off of the
end of your stationery name and type in .html (make sure the dot is there) and
click
save again.

You should now have two files for your stationery, one is
stationery name.txt
and the other is stationery name.html
Leave your html notepad open.. we are now going to look at the stationery.
Are you getting a little more familiar with the steps?
OK... now open your Outlook Express, click Message/click New message using/click
select stationery.
In the stationery view window move the scroll bar till you see your stationery. You
will only see the html version. Click on it, and click ok.
Now your stationery should have opened up in the New Message Window.
**You will notice that your image is not all the way to
the left in the new message window. Just click in the window and start typing, The image
will move down as you type. Because the image "tile's" or repeats, only one
image is needed of both the background and scrolling image. The script embeds the
graphics, and the scrolling image is "floating" until you view the stationery in the preview tab.

Click on the preview tab to see the scroll and ticker and hear the music.

Is everything working? Do you see the scroll? Is your ticker displaying your message?
Do you hear your midi playing?
If you did NOT get an error window CONGRATULATIONS!!!! YOU DID
IT!!!
Now click back to the edit tab and test your font, is the color dark enough? Is it
too close to the graphic or too far away? Is it large enough or too large? Do you want to
change anything? If you do, close the stationery, maximize the notepad html and make the
changes, click save (since it is still active and open you can make changes) and open your
stationery again to view the changes.
If you made changes you must save as both html and txt again
If you are quite happy with everything then send the stationery to yourself to verify its
working correctly. If it is, and you have saved both your html and txt, then close your
Notepad you are done with lesson two!
If in the future you want to make changes in this stationery, open
up the txt file, make your changes, save as both .txt and html again.
I know the "saving as" to both is overwhelming, in a few more lessons it
will become so very easy for you and it will just fall into place.
Click Here To View Finished Example
This will take a moment to load, as I have placed it as a txt version, This way you can
click on View/Source so that you can see the actual stationery changes that I made. You
can see the names and sizes and colors. Use your "back" button to return to this
page.

Please Sign my Guest
Book!
I Would Love To Know You Were Here!
Please Click Here To Vote For My site!
Proud Member Of

All Backgrounds And Images Created In

Site Designed And Maintained With
Backgrounds
and Site Design
Created By
Design By Renee
RD
Copyright 1999-2000-2001 Renee Davis

Welcome
Home Lesson
Index Lesson
One
Lesson One-Part Two Lesson Two
Lesson Two-Part Two Lesson
Three Lesson Three Part-Two
Lesson Four
Lesson Four-Part Two
Lesson
Five Lesson
Five Part-Two Lesson Six
Lesson Six Part-Two
Lesson Seven Lesson
Seven Part-Two Lesson Eight Lesson
Eight Part-Two
Lesson Nine Lesson Nine Part-Two
Lesson Ten Lesson
Ten Part-Two
PSP View
Links
|