so, im working on an online shopping site. the problem is , i have already made an html site, but i have to run it on xampp localhost, what i do is, since i already made an html file, i just copy it to new php file and save it, when i run it on local host there is an error on line something, i think its because of the code for the image. it dont even display anything on it.
here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Musicboxx.com</title>
<style type="text/css">
<!--
.style1 {
font-family: forte;
font-size: 18px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
color: #000000;
text-decoration: none;
}
a:hover {
color: #CC33FF;
text-decoration: underline;
}
a:active {
color: #009966;
text-decoration: none;
}
body {
background-image: url(../images/nya.png);
background-repeat: no-repeat;
}
-->
</style>
<script type="text/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.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_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>
<body onload="MM_preloadImages('../buttons/rhome.png','../buttons/rmp3.png','../buttons/rlyrics.png','../buttons/rshop.png')">
<table width="900" height="" border="0" align="center">
<tr>
<td height="100" align="left"><img src="../images/logo1.png" width="161" height="120" align="baseline" /><img src="../images/mbox2.png" width="617" height="97" /></td>
</tr>
<tr>
<td height="20" align="center"><img src="../images/div.png" width="889" height="15" /></td>
</tr>
<tr>
<td height="70" align="center"><table border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td><a href="1st.html" target="content" onclick="MM_nbGroup('down','group1','Home','../buttons/rhome.png',1)" onmouseover="MM_nbGroup('over','Home','../buttons/rhome.png','',1)" onmouseout="MM_nbGroup('out')"><img src="../buttons/home.png" alt="" name="Home" width="200" height="70" hspace="2" vspace="1" border="0" id="Home" onload="" /></a></td>
<td><a href="mp3.html" target="content" onclick="MM_nbGroup('down','group1','Mp3','../buttons/rmp3.png',1)" onmouseover="MM_nbGroup('over','Mp3','../buttons/rmp3.png','',1)" onmouseout="MM_nbGroup('out')"><img src="../buttons/mp3.png" alt="" name="Mp3" width="200" height="70" hspace="2" vspace="1" border="0" id="Mp3" onload="" /></a></td>
<td><a href="lyrics.html" target="content" onclick="MM_nbGroup('down','group1','Lyrics','../buttons/rlyrics.png',1)" onmouseover="MM_nbGroup('over','Lyrics','../buttons/rlyrics.png','',1)" onmouseout="MM_nbGroup('out')"><img src="../buttons/lyrics.png" alt="" name="Lyrics" width="200" height="70" hspace="2" vspace="1" border="0" id="Lyrics" onload="" /></a></td>
<td><a href="shop.html" target="content" onclick="MM_nbGroup('down','group1','Shop','../buttons/rshop.png',1)" onmouseover="MM_nbGroup('over','Shop','../buttons/rshop.png','',1)" onmouseout="MM_nbGroup('out')"><img src="../buttons/Shop.png" alt="" name="Shop" width="200" height="70" hspace="2" vspace="1" border="0" id="Shop" onload="" /></a></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="680" ><iframe bg-color="" name=content target=content height="700" width="900" src="1st.html" ></iframe></td>
</tr>
<tr>
<td height="20" align="center"><p class="style1"><a href="1st.html" target="content">Home</a> <a href="mp3.html" target="content">Mp3</a> <a href="lyrics.html" target="content">Lyrics</a> <a href="shop.html" target="content">Shop </a><a href="contactus.html" target="content"> Contact Us</a> <a href="copyright.html" target="content">Musicbox.com© </a></p> </td>
</tr>
</table>
</body>
</html>
was it because of this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
should i change the content=""to other type?
another thing is, when i copied all the html files,including the button, images on the folder i created inside the htdocs, let's say i typed to the address bar [url]http://localhost/folder[/url], the browser will display the folders inside that folder that contains it, and when i clicked the html files the browser would display it with the images, but when i click a button with link it is openned in another window, i am using i frame so the file will display on the same window and page. so what's the problem? help.