T
tshad
David Dorward said:tshad said:Nope. You still use "/" here. Any time you use a slash within HTML
code[1], it should be a forward slash.But that still doesn't find the root directory (at least, I can't seem to
make it work).
It should find the root directory, of course if you are accessing it over
your local file system then the root is c:\ (or whatever drive it is). You
are usually best off installing a local webserver
<http://httpd.apache.org/> for testing if you want to use root relative
URIs.
I am running on my local machine at the moment with IIS on it. View source
gives me:
***************************************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<script language="javascript" src="/includes/ypSlideOutMenus.js"></script>
<script language="javascript">
var menus = [new ypSlideOutMenu("menu1", "down", 220, 112, 190, 300)]
for (var i = 0; i < menus.length; i++) {
menus.onactivate = new Function("document.getElementById('act" + i +
"').className='active';");
menus.ondeactivate = new Function("document.getElementById('act" + i
+ "').className='';");
}
ypSlideOutMenu.writeCSS();
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Home Page</title>
<link href="/css/staffing.css" rel="stylesheet" type="text/css">
</head>
<body>
***************************************************************************
Neither the script line finds the .js file nor the link line finding the
staffing.css.
The URL would be something like http://localhost/development/staff (where
the .aspx file is).
Development is the root (virtual directory) and under that is
css,includes,staff etc.
Tom