Quackhead was quite right with his post. I had given up on the server.MapPath thing and gone on to learning about requesting and variables but decided to have another go at it and I got it working.
I can now see exactly what my problem was and have a better understanding of MapPath, so I'll post it here in case some future users need to know.
Firstly I was using Javascript without setting it as my default language <%@language=jscript%> (Thanks Quackhead).
So, to make my initial example work I would need to have my page set out likt this
Code:
<%@language=jscript%>
<%
var logo
logo = Server.MapPath ("/mysite/images/logo.png")
var menu
menu = Server.MapPath ("/mysite/images/menu.png")
var menubg
menubg = Server.MapPath ("/mysite/images/menubg.png")
%>
<table background="<%=menubg%">
<tr>
<td><img src="<%=logo%>"><img src="<%=menu%>"></td>
</tr>
</table>
Notice how I called the variables from outside the script using <%=variablename%>
This above example is for Javascript, I'll show you how to do the VBscript version below
Code:
<%@language=VBscript%>
<%
dim logo
logo = Server.MapPath ("/mysite/images/logo.png")
dim menu
menu = Server.MapPath ("/mysite/images/menu.png")
dim menubg
menubg = Server.MapPath ("/mysite/images/menubg.png")
%>
<table background="<%=menubg%">
<tr>
<td><img src="<%=logo%>"><img src="<%=menu%>"></td>
</tr>
</table>
Notice how I used
DIM instead of
VAR
This is what I have learned... I will more than likely make a tutorial on my website
CUBE for this so check in often to see more defenition of the script and how it works.
Thanks, QuackHead and ReyN
Mike...