T
Trevor Lawrence
Posted on microsoft.private.mvp.frontpage with no response
----- Original Message -----
From: "Trevor Lawrence" <Trevor L.@Canberra>
Newsgroups: microsoft.private.mvp.frontpage
Sent: Friday, October 26, 2007 5:24 PM
Subject: JAlbum Does anyone know why this is so?
Trevor Lawrence
Canberra
Microsoft MVP - FrontPage
MVP Web Site http://trevorl.mvps.org
----- Original Message -----
From: "Trevor Lawrence" <Trevor L.@Canberra>
Newsgroups: microsoft.private.mvp.frontpage
Sent: Friday, October 26, 2007 5:24 PM
Subject: JAlbum Does anyone know why this is so?
This is the code that JAlbum generates in an Album - example
http://trevorl.mvps.org/ratec/AEC buses/album/index.html
<script type="text/javascript">
/* <![CDATA[ */
function keypress(e) {
if(!e) var e = window.event;
if(e.keyCode) keyCode = e.keyCode;
else if(e.which) keyCode = e.which;
switch(keyCode) {
case 8: window.location="../"; return false; break;
case 63273: case 36: window.location="index.html"; return false; break;
case 63275: case 35: window.location="index.html"; return false; break;
case 13: window.location="slides/01 AEC Regal 1927
interior.html?show_param=3"; break;
}
return true;
}
function keypresslistener() {
if(document.all) document.onkeydown = keypress;
else if(document.layers || document.getElementById) document.onkeypress =
keypress;
}
up0 = new Image(31,31); up0.src = "res/up.gif";
up1 = new Image(31,31); up1.src = "res/up1.gif";
next0 = new Image(31,31);next0.src = "res/next.gif";
next1 = new Image(31,31);next1.src = "res/next1.gif";
prev0 = new Image(31,31);prev0.src = "res/prev.gif";
prev1 = new Image(31,31);prev1.src = "res/prev1.gif";
/* ]]> */
</script>
<link rel="stylesheet" type="text/css" href="res/styles.css" />
<style type="text/css">
body { background-image: url(res/bg.gif); background-repeat: repeat-x; }
</style>
</head>
<body id="body" onload="keypresslistener();">
<div style="width:99%; margin-left:auto; margin-right:auto;
text-align:center;">
<table style="height:54px;" align="center" cellspacing="0" cellpadding="0"
border="0">
<tr><td>
<!-- Header of index pages -->
<table style="width:722px;" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="width:31px;">
<a href="../" target="_parent">
<img style="border: none;" src="res/up.gif"
onmouseover="this.src=up1.src" onmouseout="this.src=up0.src" width="31"
height="31" title="Up one level" id="up" alt="" /></a></td>
ETC
When the button up1.src is clicked, it redirects to index.html on the next
level up - as it should.
But this same code DOES NOT work on my local disk copy. (By doesn't work,
I
mean nothing happens at all)
Why is it so?
Isn't the reference the same whether on the web or local, i.e to
index.html
on the next level up?
That is,
On the web http://trevorl.mvps.org/ratec/AEC buses/index.html
On local disk: C:\Documents and Settings\Administrator\My Documents\My
Webs\mvpweb\ratec\AEC Buses\index.html
--
Trevor Lawrence
Canberra
Microsoft MVP - FrontPage
MVP Web Site http://trevorl.mvps.org