I'm currently working on the a php file, and I seem to be getting into trouble. So anyhow, my php uses a bunch of <div ID layers, and each blade has two graphics, an on and an off(mouseover) version of itself. Now, everytime I add a blade, all the other graphics become broken graphics, as if the img src of the file, meaning the url path, is no longer valid, only after I add a blade with a different graphic.
../contest/index.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>"
I cannot find where those variables are being used, strPage and UID, or Code.
Also, why do all the graphic elements become broken after I add another blade? There are no comments whatsoever in the admin section.
I would apreciate any help anyone can provide.
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
<?php echo $PAGE_TITLE?>
</title>
<link rel="stylesheet" href="../managix.css" type="text/css">
<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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.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))!=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>
</head>
<body topmargin="0" leftmargin="0" onLoad="MM_preloadImages('admin/product_on.gif','admin/legal_on.gif','img_site/admin/lions.jpg','img_site/admin/girlfriends.jpg','admin/files_on.gif','admin/client_on.gif','admin/news_on.gif','admin/stat_on.gif','admin/contest_form_on.gif','admin/see_all_on.gif','admin/search_contestant_on.gif','admin/delete_on.gif','admin/export_on.gif')" bgcolor="#999999">
<div id="Layer1" style="position: absolute; left: 0px; top: 0px; width: 131px; height: 90px; z-index: 1">
<img src="admin/logo2.jpg" width="131" height="90"></div>
<div id="Layer2" style="position: absolute; left: 0px; top: 91px; width: 24px; height: 24px; z-index: 2"><img src=".././img_site/client/spacer.gif" height="24"></div>
<div id="Layer3" style="position: absolute; left: 0px; top: 117px; width: 130px; height: 24px; z-index: 3"><a href="../main_1.php?UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" target="self" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('product','','admin/product_on.gif',1)"><img src="admin/product_off.gif" width="130" height="24" name="product" border="0"></a></div>
<div id="Layer4" style="position: absolute; left: 0px; top: 144px; width: 130px; height: 24px; z-index: 4"><a href="../main.php?LeURL=legalnotice.php&strPage=Legal&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" target="self" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('legal','','admin/legal_on.gif',1)"><img src="admin/legal_off.gif" width="130" height="24" border="0" name="legal"></a></div>
<div id="Layer5" style="position: absolute; left: 0px; top: 171px; width: 130px; height: 20px; z-index: 5; vertical-align: middle"><a href="../main_4.php?UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" target="self" onMouseOver="MM_swapImage('stat','','admin/stat_on.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="admin/stat_off.gif" width="130" height="24" border="0" name="stat"></a></div>
<div id="Layer6" style="position: absolute; left: 0px; top: 198px; width: 130px; height: 20px; z-index: 6; vertical-align: middle"><a href="main.php?LeURL=http://142.169.201.138/fileexchange/login.php3&strPage=FileExchange&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('file','','admin/files_on.gif',1)" target="self"><img src="admin/files_off.gif" width="130" height="24" name="file" border="0"></a></div>
<div id="Layer12" style="position:absolute; left:0px; top:225px; width:130px; height:20; z-index:12"><a href="../main_2.php?strPage=Membre&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('client','','admin/client_on.gif',1)"><img src="admin/client_off.gif" width="130" height="24" border="0" name="client"></a></div>
<div id="Layer14" style="position:absolute; left:0px; top:252px; width:130px; height:20px; z-index:14"><a href="../main_3.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('news','','admin/news_on.gif',1)"><img src="admin/news_off.gif" width="130" height="24" border="0" name="news"></a></div>
<div id="Layer15" style="position:absolute; left:0px; top:279px; width:130px; height:20px; z-index:14; background-color: #666666; layer-background-color: #666666; border: 1px none #000000;"><a href="../main_5.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" target="_self"><img src="admin/contests_on.gif" name="contest_off" width="121" height="24" border="0" id="contest_off"></a></div>
<div id="Layer16" style="position:absolute; left:0px; top:306px; width:130px; height:20px; z-index:14; background-color: #999999; layer-background-color: #999999; border: 1px none #000000;">
<div align="right"><a href="#" target="content" onClick="MM_openBrWindow('../../contest/index.php','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=575,left=100,top=0')" onMouseOver="MM_swapImage('contest_form','','img_site/admin/contest_form_on.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img_site/admin/contest_form_off.gif" name="contest_form" width="121" height="24" border="0" id="contest_form"></a></div>
</div>
<div id="Layer17" style="position:absolute; left:0px; top:333px; width:130px; height:20px; z-index:14; background-color: #999999; layer-background-color: #999999; border: 1px none #000000;">
<div align="right"><a href="../contest/index.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" target="content" onMouseOver="MM_swapImage('see_all_off','','img_site/admin/girlfriends.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img_site/admin/girlfriends.jpg" name="see_all_off" width="121" height="24" border="0" id="see_all_off"></a></div>
</div>
<div id="Layer18" style="position:absolute; left:0px; top:360px; width:130px; height:20px; z-index:14; background-color: #999999; layer-background-color: #999999; border: 1px none #000000;">
<div align="right"><a href="../contest/search.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>" target="content" onMouseOver="MM_swapImage('search','','img_site/admin/lions.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="img_site/admin/lions.jpg" name="search" width="121" height="24" border="0" id="search"></a></div>
</div>
<div id="Layer20" style="position:absolute; left:0px; top:387px; width:130px; height:20px; z-index:14; background-color: #999999; layer-background-color: #999999; border: 1px none #000000;">
<div align="right"><a href="../contest/index.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>&action=del" target="content" onMouseOver="MM_swapImage('delet','','img_site/admin/delete_on.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img_site/admin/delete_off.gif" name="delet" width="121" height="24" border="0" id="delet"></a></div>
</div>
<div id="Layer19" style="position:absolute; left:0px; top:414px; width:130px; height:20px; z-index:14; background-color: #999999; layer-background-color: #999999; border: 1px none #000000;">
<div align="right"><a href="../contest/download.php?strPage=News&UID=<?php echo $UID; ?>&code=<?php echo $code; ?>&download=1" target="content" onMouseOver="MM_swapImage('export_off','','img_site/admin/export_on.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="img_site/admin/export_off.gif" name="export_off" width="121" height="24" border="0" id="export_off"></a></div>
</div>
</body>
</html>