[ Main Page ] [ Links ] [ Newsgroup Questions ] [ Tutorials ] [ Submit Info. ] [ Downloads ]


Using & Editing with EM Editor

Okay, now that we have looked at the basics of fonts and margins, we move on to the images and sound files.

You can see that right above the next red highlight is a message from the script creator. When the person made this script, he added tips for us to know where and what we were suppose to be doing. So, in this script you can add an extra image, but it will not scroll. The first thing I would do is to use a temp image and see what it looks like. That might give me an idea if I would want to use this or not. If you choose not to use it, then just leave it as is and it won't change anything. The reason it won't hurt is it isn't pointing at anything. What do I mean by that?

Well, look down at the next red part. See how it says

src ="file://C:\program files\common files\microsoft shared\stationery\IMAGE.gif"

This is telling the script where to find the image to use in the stationery. The "src" means - SOURCE. Now compare this with the optional non-scrolling image we just talked about. It says -

background = "file://"

That one is not pointing at anything. Now if I said

background = "file://C:\IMAGE.gif -- the script would go to the C drive and look for the image named "IMAGE.gif"..

This one

src ="file://C:\program files\common files\microsoft shared\stationery\IMAGE.gif"

is looking in the C drive, then the program files, then common files, then microsoft shared then your stationery folder and then it will look for that image called IMAGE.gif

Some stationery you don't have to tell it exactly where to find it. But if you try to do this then ONE rule MUST be followed -- the script and the image MUST be in the same folder. For those types of scripts you can just say

src = "IMAGE.gif"

and it will work. If you do that and open the stationery and it doesn't work then, you will have to put in the full path to it. When I say path - that means starting at your C drive. It will always start with C drive. So if you are working off a folder called MyStationery that is on your desktop - the path would be

scr = "file://C:\windows\desktop\MyStationery\IMAGE.gif"

 

Sometimes I will chose not to use a music file, but I will forget to delete out the temporary path that the stationery creator has put in there for my reference. The first time I will go to send it, I get an error message that says "one or more images cannot be found, would you still like to send.". I automatically say "NO" and go fix it by deleting out the whole line

<BGSOUND .........>

I know if I delete the <> and everything between it, I will get it all and not screw up anything. The reason I get this message is that the stationery creator put in a path that points to my stationery folder and is trying to get at a sound file that is called
MIDI_FILE.mid
and the stationery cannot find it. If you go to send a stationery and you get this message, then you should go back and look at your code and make sure that you don't have any typos or missed an image somewhere.

 

I hope this makes sense. It is hard to describe how to do this. I didn't realize how complicate it could sound. Don't worry, it gets very easy to do. You won't even think about it after a while. It just becomes second nature.

 

Okay, I need to think about how I am going to continue on in the easiest way, why don't you take a break too. I will meet you back here and we will go on to adding our own images and sound file to the script.

 

Using & Editing with EM Editor - Next Page