Forums
This topic is locked
Problem putting images onto site
Posted 13 Apr 2007 10:47:19
1
has voted
13 Apr 2007 10:47:19 Birgitta Kaikkonen posted:
Can anyone tell me what happened? I designed and uploaded a whole site onto the server. Now if (for example) I wish to update a photo it won't work? Also it won't allow me to create new links anymore, to anything! I've included a bit of code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<!-- saved from url=(0013)about:internet -->
<TITLE>Birgitta Kaikkosen kotisivut - Tervetuloa</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Keywords" content="photo album,gallery,photo gallery,digital,photo,gallery,online">
<link href="Galleria/res/styles.css" rel="stylesheet">
<script language="JavaScript1.2" type="text/javascript">
<!--
<!-- Keyboard controls -->
var firstSlide="slides/Finnair.html?show_param=3";
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="../index.html"; 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: if(firstSlide!=null) window.location=firstSlide; return false; 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";
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_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;
}
function MM_findObj(n, d) { //v4.01
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 && d.getElementById) x=d.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_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
body { background-image: url(Galleria/res/bg.gif); background-repeat: repeat-x; }
</style>
</HEAD>
<BODY bgcolor="#330000" text="#CC9966" link="#993333" ID="index" onload="keypresslistener();MM_preloadImages('buttons/images/kuvaus_01-over.gif','buttons/images/hobby_01-over.gif','buttons/images/yhteys_01-over.gif','buttons/images/profiili_01-over.gif')">
<CENTER>
<TABLE style="height:54px;" cellspacing="0" cellpadding="0" border="0">
<TR>
<TD valign="middle"> <table style="width:512px;" cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="width:31px"> </td>
<td style="width:20px;"><img src="Galleria/res/hdr_left.gif" border="0" alt=""></td>
<td align="left" valign="middle" style="background:url(../res/hdr_mid.gif);" class="title" nowrap="nowrap">
<div align="center"><font size="5">Birgitta Kaikkosen kotisivut</font></div></td>
<td style="width:20px;"><img src="Galleria/res/hdr_right.gif" border="0" alt=""></td>
</tr>
</table></TD>
</TR></TABLE>
<BR>
<TABLE style="width:512px;" class="infotable" cellspacing="0" cellpadding="2">
</TABLE>
<table width="22%" border="0">
<tr>
<td width="39%" align="left" valign="top" bordercolor="#FFFFFF"><div align="center"><font size="1"></font></div></td>
</tr>
</table>
<table width="70%" border="0">
<tr align="center">
<td width="25%"><a href="kukaon.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('profiili','','buttons/images/profiili_01-over.gif',1)"><img src="buttons/images/profiili_01.gif" name="profiili" width="172" height="63" border="0"></a></td>
<td width="24%"><a href="kuvaus.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('kuvaus','','buttons/images/kuvaus_01-over.gif',1)"><img src="buttons/images/kuvaus_01.gif" name="kuvaus" width="172" height="63" border="0"></a></td>
<td width="24%"><a href="hobby.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('hobby','','buttons/images/hobby_01-over.gif',1)"><img src="buttons/images/hobby_01.gif" name="hobby" width="172" height="63" border="0"></a></td>
<td width="27%"><a href="javascript: void(0)" onClick="MM_openBrWindow('yhteys.htm','Yhteystiedot','')" onMouseOver="MM_swapImage('yhteys','','buttons/images/yhteys_01-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="buttons/images/yhteys_01.gif" name="yhteys" width="172" height="63" border="0"></a></td>
</tr>
</table>
<BR>
<table width="74%" height="361" border="0">
<tr>
<td width="38%" height="357" align="center"><img src="Kuvat/bellaoma.jpg" alt="kuva: Davide Pavone" width="216" height="287"></td>
<td width="41%" valign="top" bordercolor="663300"><p> </p>
<p align="left">Viimeisin päivitys 12.4.2007</p>
<p align="left">"Tervetuloa uusille kotisivuilleni!"</p>
<p align="left">- Birgitta -</p>
<p> </p>
</td>
<td width="21%" align="left" valign="top" bordercolor="663300" bgcolor="#CC9966">
<p align="center"><font color="#663300"><strong>Kuulumisia:</strong></font></p>
<p><font color="#663300" size="2"><strong><a href="www.elisanet.fi/bhk/Muuttuvat/index.html">Sirkus
Finlandian ensi-illan kuvasatoa--></a></strong></font></p>
<p><font color="#663300" size="2"><strong>Tein debyytin kouluratsastusareenoille:
Huljat ja minä kävimme ratsastamassa C1-kouluradan Tuliharja Cup- kisoissa
Kylmälässä. Tuloksena 58,5%</strong></font></p>
<p><font color="#663300" size="2"><strong><a href="javascript: void(0)" onClick="MM_openBrWindow('oldnews.htm','','')">Old
news --></a></strong></font></p>
</td>
</tr>
</table>
</CENTER>
</BODY>
</HTML>
Now this works, but if I for example change 1 photo, it doesn't load properly.
best regards
kittgirl23
Replies
Replied 15 Apr 2007 14:47:56
15 Apr 2007 14:47:56 Kenneth Halley replied:
You have an awful lot of js in there. Is it this thats not working (not having those files or the urls to them I can't tell)- when you change an image in there unless you keep the file name and path the same you will need to update your js to find it. This looks like a js driven menu to me.
If its the big picture <img src="Kuvat/bellaoma.jpg" alt="kuva: Davide Pavone" width="216" height="287"> As far as I can see you should be able to take this out and replace it with any other (of the same size)- try initially using a new photo with the same filename, it might be your not putting it where you think you are in the page.
BTW- no idea who David Pavone is but he seems to be popular in Finland- I googled him and all the sites it found were over there! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
K
-----------------------------------
www.halleynet.co.uk
If its the big picture <img src="Kuvat/bellaoma.jpg" alt="kuva: Davide Pavone" width="216" height="287"> As far as I can see you should be able to take this out and replace it with any other (of the same size)- try initially using a new photo with the same filename, it might be your not putting it where you think you are in the page.
BTW- no idea who David Pavone is but he seems to be popular in Finland- I googled him and all the sites it found were over there! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
K
-----------------------------------
www.halleynet.co.uk