Thanks guys, the "~/" does not work (neither does a "/" at the start. Even though any documentation I read says that they both should take you to the root of the site and go down into the Images folder from there. Unsure why this is.
The <%=Page.ResolveURL("~/Images/Image1.jpg")%>
Works OK for standard HTML <IMG> tags, but I cant seem to get it to work in following codesnippets that I also have in my Photoshop /GoLive generated HTML.
function preloadImages() {
if (document.images) {
b_disclosure_o = newImage('/images/b_disclosure-o.jpg');
b_applicants_o = newImage('/images/b_applicants-o.jpg');
b_problems_o = newImage('/Images/b_problems-o.jpg');
b_performance_o = newImage('/images/b_performance-o.jpg');
preloadFlag = true;
}
or
onmouseover="changeImages('b_applicants', 'images/b_applicants-o.jpg'); return true;"
Where the "changeImages(...)" is a Javascript function, again generated by Photoshop/GoLive.
So, to re-cap.
1. Does the <%=Page.ResolveURL("~/Images/Image1.jpg")%> work for Javascript image URI's
2. Should the "~/Images/Image1.jpg" or "/Images/Image1.jpg" work for standard HTML, ASP.NET controls and Javascript.
3. Am I going to have to re-build all the Photoshop generated stuff my own CSS (And will this still work)
The whole problem seems to stem from the fact that I am using a Master Page and have some pages at the root and some "Protected" pages in sub-folders and as such, cannot use a relative URI in the Master Page.
Looking forward to your thoughts again
regards
Mike