Click to See Complete Forum and Search --> : Navigation gifs not appearing on page load


iudoe
04-16-2003, 03:13 PM
http://wave.prohosting.com/iudoe/index.htm

The name gif to the left loads ok but the nav. gifs to the right of the page do not for some reason until you click on one of them. I'm pretty sure this is not a directory issue as why should the name gif appear whilst the others do not when they all reside in the same directory?

Here is the code for the top frame page.

<html>
<head>
<title>nav</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//-->
</script>
</head>

<body text="#000000" background="Assets/images/navback.gif" bgcolor="#999966" topmargin="5" onLoad="MM_preloadImages('Assets/images/resume.gif','Assets/images/benefit.gif','Assets/images/contact.gif','Assets/images/bio.gif','Assets/images/bio_f2.gif','Assets/images/benefit_f2.gif','Assets/images/resume_f2.gif','Assets/images/contact_f2.gif')">
<table width="515" border="0" cellpadding="0" cellspacing="0" align="center" height="0" name="nav">
<tr>
<td width="222" height="22" valign="baseline"> <a href="index.htm" target="_top"><img name="name" src="Assets/images/name.gif" width="190" height="39" border="0"></a>
<!-- fwtable fwsrc="name.png" fwbase="name" fwstyle="Dreamweaver" fwdocid = "726587668" fwnested="0" -->
</td>
<td width="238" height="22">
<table border="0" cellpadding="0" cellspacing="0" width="233">
<!-- fwtable fwsrc="navigation.png" fwbase="navigation.gif" fwstyle="Dreamweaver" fwdocid = "410399224" fwnested="0" -->
<tr>
<td><img src="Assets/images/spacer.gif" width="163" height="1" border="0"></td>
<td><img src="Assets/images/spacer.gif" width="70" height="1" border="0"></td>
<td><img src="Assets/images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td><a href="bio.htm" target="mainFrame" onClick="MM_swapImage('bio','','Assets/images/bio_f2.gif','resume','','Assets/images/resume.gif','benefit','','Assets/images/benefit.gif','contact','','Assets/images/contact.gif',1)" ><img name="bio" src="fireworks/images/bio.gif" width="163" height="19" border="0" align="top"></a></td>
<td><a href="resume.htm" target="mainFrame" onClick="MM_swapImage('bio','','Assets/images/bio.gif','resume','','Assets/images/resume_f2.gif','benefit','','Assets/images/benefit.gif','contact','','Assets/images/contact.gif',1)" ><img name="resume" src="fireworks/images/resume.gif" width="70" height="19" border="0" align="top"></a></td>
<td><img src="fireworks/images/spacer.gif" width="1" height="19" border="0"></td>
</tr>
<tr>
<td><a href="benefits.htm" target="mainFrame" onClick="MM_swapImage('bio','','Assets/images/bio.gif','resume','','Assets/images/resume.gif','benefit','','Assets/images/benefit_f2.gif','contact','','Assets/images/contact.gif',1)" ><img name="benefit" src="fireworks/images/benefit.gif" width="163" height="20" border="0" align="top"></a></td>
<td><a href="contact.htm" onClick="MM_swapImage('bio','','Assets/images/bio.gif','resume','','Assets/images/resume.gif','benefit','','Assets/images/benefit.gif','contact','','Assets/images/contact_f2.gif',1)" target="mainFrame" ><img name="contact" src="fireworks/images/contact.gif" width="70" height="20" border="0" align="top"></a></td>
<td><img src="fireworks/images/spacer.gif" width="1" height="20" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

AdamGundry
04-16-2003, 03:19 PM
They show up normally for me - I'm using IE 6. What browser are you having problems with?

Adam

DrDaMour
04-16-2003, 03:25 PM
he meust have fixed some punctuation, because it didn't work before but it works now

iudoe
04-16-2003, 03:26 PM
Originally posted by AdamGundry
They show up normally for me - I'm using IE 6. What browser are you having problems with?

Adam

it seems to be ok now after i studied the code and discovered that some files were in a folder that i had (for some reason) decided wasn't necessary to upload.

What's the weather like in Cornwall these days - not from Truro are you?