p021497
asked on
Simple simple simple
How can I do the following:
<body background="PATH_TO_ROOT_D IR/images/ background .jpg">
You see, at my web site, I have one directory under the main directory called "images." In it, I want to store all the pictures and graphics for the site. I would like to be able to access the graphics in the directory from any other directory within the site. The problem is, I don't know how. Is there anyway to do this?
It seems simple, but I don't know.......
I also have a second question (probably even simpler). How can I change the body of a mail message given something like this:
<FORM>
<INPUT TYPE="BUTTON" VALUE="Send" onClick="location.href= 'mailto:theletterp@hotmail .net?Subje ct= Just a few comments...'">
</FORM>
This too seems simple, but I don't know. If you want more points, I suppose I can supply them 8-)
<body background="PATH_TO_ROOT_D
You see, at my web site, I have one directory under the main directory called "images." In it, I want to store all the pictures and graphics for the site. I would like to be able to access the graphics in the directory from any other directory within the site. The problem is, I don't know how. Is there anyway to do this?
It seems simple, but I don't know.......
I also have a second question (probably even simpler). How can I change the body of a mail message given something like this:
<FORM>
<INPUT TYPE="BUTTON" VALUE="Send" onClick="location.href= 'mailto:theletterp@hotmail
</FORM>
This too seems simple, but I don't know. If you want more points, I suppose I can supply them 8-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It would be easier to use "/yourdir/images" all the time. Then you don't have to think about where this file is and where that file should be placed etc.
Martin
Martin
ASKER
Thank you chrisbolt, you have solved my problems. It works great now.
Martin, I am storing only one copy of some images on the server (to conserve space). Your idea is easier to do, but it takes up more room. I would rather not do that. Thanks anyway though.
Martin, I am storing only one copy of some images on the server (to conserve space). Your idea is easier to do, but it takes up more room. I would rather not do that. Thanks anyway though.
Also, martin, it is better not to use /yourdir/images if you move to a different server or you keep a copy of your pages on your own computer for offline viewing/editing.
ASKER