Solved

Browser Crashes

Posted on 2004-09-06
2
422 Views
Last Modified: 2008-01-09
I am trying to sanp my layer to an anchor when a page is resized but it crashes most of the times.

i tried different ways to do it but no luck. i cant afford to wasted any more time.

p7_snap and my moveLayer function both work but crashes 80% of the time i get the error.




//----------------code html-----

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Price List</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
      background-image: url();
      SCROLLBAR-FACE-COLOR: #FB8D19;
        SCROLLBAR-HIGHLIGHT-COLOR: #FB8D19;
        SCROLLBAR-3DLIGHT-COLOR: #ffffff;
        SCROLLBAR-DARKSHADOW-COLOR: #FB8D19;
        SCROLLBAR-SHADOW-COLOR: #ffffff;
        SCROLLBAR-ARROW-COLOR: WHITE;
        SCROLLBAR-TRACK-COLOR: #FB8D19;
}
.style1 {
      font-size: 12px;
      color: #FF9900;
      font-weight: bold;
}
.style2 {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      color: #FF0000;
}
.tableStyle {
      border-bottom-width: thin;
      border-top-style: none;
      border-right-style: none;
      border-bottom-style: dotted;
      border-left-style: none;
      border-bottom-color: #FBAD18;
}
.style4 {
      font-family: Verdana;
      font-weight: bold;
}
.scroller {
      overflow: auto;
      width: 500px;
      height: 230px;
}
.style5 {font-size: 14px}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
//setWindow();
//P7_Snap('layerAnchor','Layer1',30,78,'layerAnchor','Layer2',624,50);

var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
function setLayer(){
      P7_Snap('myAnc','Layer1',20,30);
      //moveLayer("Layer1","myAnc");
}
function moveLayer(id,id2){
      // Netscape 4
      if(ns4){
            document.layers[id].left=document.layers[id2].offsetLeft+30;
            document.layers[id].top=document.layers[id2].offsetTop+30;
      }
      // Explorer 4
      else if(ie4){
            document.all[id].style.left=document.all[id2].offsetLeft+30;
            document.all[id].style.top=document.all[id2].style.offsetTop+30;
      }
      // W3C - Explorer 5+ and Netscape 6+
      else if(ie5 || ns6){
            //id.slideTo(id2.pageX(),id2.pageY(),1000);
            document.getElementById(id).style.left=document.getElementById(id2).offsetLeft+20;
            document.getElementById(id).style.top=document.getElementById(id2).offsetTop+30;
            //alert(document.getElementById(id2).offsetLeft);
            
      }
}

//window.onresize=setLayer;
function submitSelection(itemID){
      //alert(itemID);
      document.forms.frmSelType.Stock_Type.value=itemID;
      document.forms.frmSelType.submit();
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// Example:
// simplePreload( '01.gif', '02.gif' );
function SimplePreload()
{
  var args = SimplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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 P7_Snap() { //v2.65 by PVII
 var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);
 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){
 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){
 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;
 da="document.all['"+args[k]+"']";if(document.getElementById){
 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){
 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}
 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){
 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){
  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{
  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}
 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){
  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');
  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}
 e.left=xx+pa;e.top=yy+pa;}}}
}
//-->
</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="setLayer();SimplePreload('../stockImages/00000000090sm.jpg','../stockImages/00000000090sm.jpg','../stockImages/00000000011sm.jpg','../stockImages/00000000012sm.jpg','../stockImages/00000000013sm.jpg','../stockImages/00000000087sm.jpg','../stockImages/00000000053sm.jpg','../stockImages/00000000054sm.jpg','../stockImages/00000000055sm.jpg','../stockImages/00000000046sm.jpg','../stockImages/00000000030sm.jpg','../stockImages/00000000044sm.jpg','../stockImages/00000000086sm.jpg','../stockImages/00000000043sm.jpg','../stockImages/00000000051sm.jpg','../stockImages/00000000052sm.jpg','../stockImages/00000000049sm.jpg','../stockImages/00000000050sm.jpg','../stockImages/00000000024sm.jpg','../stockImages/00000000045sm.jpg','../stockImages/00000000029sm.jpg','../stockImages/default.jpg');">
<table width="100%" height="140%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
  <tr>
    <td height="411" bgcolor="#000000">&nbsp;</td>
    <td width="800" valign="top">
      <a name="myAnc" style="position:relative; visibility:hidden; height:0; background-color:#990000"></a>
        <img src="/InterfaceProducts.jpg" name="mainImg" width="800" height="600" border="0" usemap="#Map2" id="mainImg"></td>
    <td bgcolor="#000000">&nbsp;</td>
  </tr>
</table>
<div id="Layer1" style="visibility:visible; position:absolute; width:760px; height:403px; z-index:1; left:118px; top:24px;">
    <table width="100%" height="488"  border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#99FF00">
      <tr>
        <td width="120" align="left" valign="top">
            <form method="post" name="frmSelType" id="frmSelType">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
          <tr valign="bottom">
            <td height="31" align="left">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr valign="bottom">
            <td width="46" height="50" align="left">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="46" height="50">
                  <param name="movie" value="bar.swf">
                  <param name="quality" value="high">
                  <param name="WMODE" value="transparent">
                  <embed src="bar.swf" width="46" height="50" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
                </object>
                  </td>
                  <td>&nbsp;</td>
          </tr>
              <tr>
              <td colspan="2">
              <DIV STYLE="overflow: auto; width: 135px; height: 400px; border-left: 0px gray solid; border-bottom: 0px gray solid; padding:0px; margin: 0px; filter:chroma(color=#FB8D19)">
              <table width="110" border="0" align="left" cellpadding="0" cellspacing="0">
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletCereals" width="36" height="56" align="middle" id="bulletCereals">
                              <PARAM NAME=FlashVars VALUE="objId=Cereals">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Cereals" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletCereals" objId="Cereals" name="bulletCereals" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Cereals<br>
                              </span>
                        </td>
          </tr>
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletFlours" width="36" height="56" align="middle" id="bulletFlours">
                              <PARAM NAME=FlashVars VALUE="objId=Flours">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Flours" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletFlours" objId="Flours" name="bulletFlours" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Flours<br>
                              </span>
                        </td>
          </tr>
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletGroceries" width="36" height="56" align="middle" id="bulletGroceries">
                              <PARAM NAME=FlashVars VALUE="objId=Groceries">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Groceries" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletGroceries" objId="Groceries" name="bulletGroceries" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Groceries<br>
                              </span>
                        </td>
          </tr>
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletJuices" width="36" height="56" align="middle" id="bulletJuices">
                              <PARAM NAME=FlashVars VALUE="objId=Juices">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Juices" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletJuices" objId="Juices" name="bulletJuices" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Juices<br>
                              </span>
                        </td>
          </tr>
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletSnacks" width="36" height="56" align="middle" id="bulletSnacks">
                              <PARAM NAME=FlashVars VALUE="objId=Snacks">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Snacks" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletSnacks" objId="Snacks" name="bulletSnacks" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Snacks<br>
                              </span>
                        </td>
          </tr>
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletSpirits" width="36" height="56" align="middle" id="bulletSpirits">
                              <PARAM NAME=FlashVars VALUE="objId=Spirits">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Spirits" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletSpirits" objId="Spirits" name="bulletSpirits" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Spirits<br>
                              </span>
                        </td>
          </tr>
                    <tr>
            <td width="36" height="56" valign="top" align="left">
                        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="bulletSweets" width="36" height="56" align="middle" id="bulletSweets">
                              <PARAM NAME=FlashVars VALUE="objId=Sweets">
                              <param name="allowScriptAccess" value="sameDomain" />
                              <param name="movie" value="bullet.swf" />
                              <param name="quality" value="high" />
                              <param name="bgcolor" value="#333333" />
                              <param name="wmode" value="transparent">
                              <param name="swLiveConnect" value="true">
                              <embed src="bullet.swf" FlashVars="objId=Sweets" quality="high" bgcolor="#333333" width="36" height="56" swLiveConnect=true id="bulletSweets" objId="Sweets" name="bulletSweets" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                      </object>
                        </td>
                  <td valign="middle" align="left">
                                    <span class="style1">
                                          <br>Sweets<br>
                              </span>
                        </td>
          </tr>
                        </table>
              </DIV>
              </td>
              </tr>
              <tr>
                    <td colspan="2">
                      <input name="Stock_Type" type="hidden" id="Stock_Type">
                    </td>
              </tr>
        </table>

            </form>            </td>
        <td width="100" height="488" valign="top">&nbsp;
            </td>
        <td width="77%" valign="top">
            <table width="100%" height="63%"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="2%" height="170">&nbsp;</td>
            <td width="6%">&nbsp;</td>
            <td width="91%"><form name="frmImage" id="frmImage">
                  <div align="right"><img src="../stockImages/default.jpg" alt="Image" name="prodImage" width="150" height="170">
                </div>
            </form></td>
            <td width="1%">&nbsp;</td>
          </tr>
          <tr align="center" valign="middle">
            <td height="322" colspan="4" align="left" valign="top">
                                                <table>
                        <tr><td><h3><span class="style2">Groceries</span>&nbsp;</h3></td>
                        </tr>
                  </table>
                  <div class="scroller">
                        <table width="450" border="0" cellpadding="0" cellspacing="0" onMouseOver="style.cursor='pointer';" id="tblMain">
                                                        <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000090','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[0].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Bread Crumbs</strong></td>
                                <td class="tableStyle"><strong>pack of 500g</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000091','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[1].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Bread Crumbs</strong></td>
                                <td class="tableStyle"><strong>pack of 300g</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000011','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[2].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Cheese Bread Yoki</strong></td>
                                <td class="tableStyle"><strong>Pack of 250g x 30</strong></td>
                                <td class="tableStyle"><strong>24.90</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000012','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[3].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Cheese Bread Yoki</strong></td>
                                <td class="tableStyle"><strong>Pack of 250g x 24</strong></td>
                                <td class="tableStyle"><strong>19.92</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000013','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[4].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Cheese Bread Yoki</strong></td>
                                <td class="tableStyle"><strong>Pack of 250g x 12</strong></td>
                                <td class="tableStyle"><strong>9.96</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000087','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[5].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Corn Yellow Grits</strong></td>
                                <td class="tableStyle"><strong>Pack of 150g x 12</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000053','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[6].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Kitano Chef Mix Fishs</strong></td>
                                <td class="tableStyle"><strong>Pack of 120g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000054','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[7].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Kitano Chef Mix Meats</strong></td>
                                <td class="tableStyle"><strong>Pack of 120g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000055','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[8].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Kitano Chef Mix Tender</strong></td>
                                <td class="tableStyle"><strong>Pack of 120g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000046','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[9].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Lemon Powder Juice</strong></td>
                                <td class="tableStyle"><strong>Pack of 45g x 120units</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000030','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[10].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Manioc Mix</strong></td>
                                <td class="tableStyle"><strong>Pack of 500g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000044','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[11].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Potato Gnocchi</strong></td>
                                <td class="tableStyle"><strong>Pack of 250g x 30units</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000086','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[12].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Potato Gnocci</strong></td>
                                <td class="tableStyle"><strong>Pack of 500g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000043','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[13].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Ready polenta</strong></td>
                                <td class="tableStyle"><strong>Pack of 1kg x 12units</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000051','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[14].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Seasoning Garlic based Kitano</strong></td>
                                <td class="tableStyle"><strong>Pack of 300g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000052','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[15].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Seasoning MSG based Mix</strong></td>
                                <td class="tableStyle"><strong>Pack of 60g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000049','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[16].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Seasoning Nona</strong></td>
                                <td class="tableStyle"><strong>Pack of 380g x 12</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000050','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[17].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Seasoning Nona With peper</strong></td>
                                <td class="tableStyle"><strong>Pack of 380g x 12</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000024','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[18].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Shelled peanuts</strong></td>
                                <td class="tableStyle"><strong>Pack of 500g x 12</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000045','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[19].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Tea Toasted Mate</strong></td>
                                <td class="tableStyle"><strong>Pack of 18g x 24</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                                      <tr onMouseOver="style.backgroundColor='#FBAD18';" onMouseOut="style.backgroundColor='white';" ><a href="#" onClick="MM_openBrWindow('prodDetail.php?Stock_ID=00000000029','prodDetail','status=yes,width=500,height=300')"  onMouseOver="javascript:document.forms.frmImage.prodImage.src=document.imageArray[20].src;" onMouseOut="javascript:document.forms.frmImage.prodImage.src=document.imageArray[21].src;">
                                          <td class="tableStyle" align="left"><strong>Wheat for Kibe</strong></td>
                                <td class="tableStyle"><strong>Pack of 500g x 12</strong></td>
                                <td class="tableStyle"><strong>0.00</strong></td>
                             </a></tr>
                                             </table>
                  </div>

                                                </td>
          </tr>
          <tr>
            <td height="19">&nbsp;</td>
            <td colspan="3">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
  </table>
    <p><br>
    </p>
</div>
<map name="Map">
  <area shape="rect" coords="662,545,746,586" href="index.php" alt="Home Page">
</map>
<map name="Map2">
  <area shape="rect" coords="663,547,751,585" href="index.php">
</map>
</body>
</html>


//---end html-------

also not working in NN at all (no crashes though)
0
Comment
Question by:zsabbasi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
juro_6 earned 250 total points
ID: 11989415
It seems you have a few ".. is null or not an object". To debug these issues I would recommend using the Microsoft ScriptDebugger:

http://www.microsoft.com/downloads/details.aspx?familyid=2F465BE0-94FD-4569-B3C4-DFFDF19CCD99&displaylang=en 

This gives you more information regarding the problem. I hope this helps.
greetings
juro
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how can i make amazon approved mobile url 4 52
Drop Down not working in mobile- Bootstrap 14 50
Jquery Bold 3 specific words in a paragraph 5 37
type of website 13 48
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question