RPi
05-16-2003, 10:10 AM
I have the following problem:
Ik have a page with a 'next' and 'previous' button. In that page there's a inline frame with a simple page that displays one photo. When you click the 'next' or 'previous' button, the 'nextphoto', resp. 'previousphoto' function of the page in the frame is called. These functions are pretty straightforward:
<script language="JavaScript">
var n;
n=1;
function nextphoto(){
if(n < 14){
n += 1;}
else{
n = 1;}
document.images["photo"].src="photo" + n + ".jpg";
}
function previousphoto(){
if(n > 1){
n -= 1;}
else{
n = 14;}
document.images["photo"].src="photo" + n + ".jpg";
}
</script>
Under every browser I tested it with, this works just fine, but a friend of mine has an macintosh with ie 5, and when he browses through the photo's, very ofton just an empty picture frame appears. On the moment he drags the picture, the picture appears. Is there something i could do about it? Any help would really be appreciated.
Ik have a page with a 'next' and 'previous' button. In that page there's a inline frame with a simple page that displays one photo. When you click the 'next' or 'previous' button, the 'nextphoto', resp. 'previousphoto' function of the page in the frame is called. These functions are pretty straightforward:
<script language="JavaScript">
var n;
n=1;
function nextphoto(){
if(n < 14){
n += 1;}
else{
n = 1;}
document.images["photo"].src="photo" + n + ".jpg";
}
function previousphoto(){
if(n > 1){
n -= 1;}
else{
n = 14;}
document.images["photo"].src="photo" + n + ".jpg";
}
</script>
Under every browser I tested it with, this works just fine, but a friend of mine has an macintosh with ie 5, and when he browses through the photo's, very ofton just an empty picture frame appears. On the moment he drags the picture, the picture appears. Is there something i could do about it? Any help would really be appreciated.