Link to home
Start Free TrialLog in
Avatar of drew17
drew17

asked on

Javascript working in Chrome but not in Firefox or IE

The following source is working in Chrome but not IE or Firefox.

Any ideas would be GREATLY appreciated!

Site: http://www.homelistingslondonontario.com/default.asp


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://static1.secure-server.ca/pc275/components/jquery-1.2.6.min.js" type="text/javascript">
</script>
<script src="http://static1.secure-server.ca/pc275/components/jquery.jodometer.js" type="text/javascript">
</script>
<script type="text/javascript">
		$(function(){

var BaseValue = 692055.00;

  var d1 = new Date();  // get today's date
  var t1 = d1.getTime(); // change to milliseconds since 01/01/1970
  var d2 = new Date('2013-09-17 00:00:00');
  var t2 = d2.getTime(); // change to milliseconds
  // Do the subtraction and divide by 1000 to convert from milliseconds to seconds
  var timeDiff = (t1-t2) / 1000 /100; 
  
  
  var counternum1 = BaseValue + (timeDiff);
  
  var counternum2 = parseFloat(Math.round(counternum1 * 1000) / 1000).toFixed(3);
  
  
			var counter6 = $('.counter6').jOdometer({increment:0.012, counterStart: counternum2, heightNumber:'56', counterEnd:'9999999.000', numbersImage:'http://www.homelistingslondonontario.com/images/jodometer-numbers-color.png', formatNumber: false, spaceNumbers: 13, widthDot: 8, offsetRight:-4.5});
			$("#update-both-button").click(function()
    	{
    
    		counter6.goToNumber($("#input-2").val());
    	});
    	$("#input-1-button").click(function()
    	{
    		counter3.goToNumber($("#input-1").val());
    	});
    	$("#input-2-button").click(function()
    	{
    		counter6.goToNumber($("#input-2").val());
    	});
		});
	</script>
<style type="text/css" media="screen">
    .counter6
    {
    width:260px;
    height:50px;
    border:0px solid #000000;
    overflow:hidden;
    }
</style>
<style>
    #hpWidgets {display:none;}
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript">
</script>
<script type="text/javascript">
  <!--
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_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_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];}
}
//-->
</script>
<table border="0" width="952">
  <tbody>
    <tr>
      <td height="537" width="974">
        <table style="width: 100%;" align="center" border="0" bordercolor="" cellpadding="" cellspacing="">
          <tbody>
            <tr>
              <td width="809">
                <table style="width: 100%;" align="center" border="0" bordercolor="" cellpadding="" cellspacing="">
                  <tbody>
                    <tr>
                      <td>
                        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="player2" name="player1" height="90" width="500">
                          <param name="movie" value="http://www.homelistingslondonontario.com/images/look.swf" />
                          <param name="allowfullscreen" value="true" />
                          <param name="allowscriptaccess" value="always" />
                          <param name="flashvars" />
                          <embed id="player2" name="player1" src="http://www.homelistingslondonontario.com/images/look.swf" allowscriptaccess="always" allowfullscreen="true" flashvars="file=playlist.xml" height="90" width="500">
                          </embed>
                        </object>
                      </td>
                      <td rowspan="3">
                        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="player3" name="player1" height="260" width="260">
                          <param name="movie" value="http://www.homelistingslondonontario.com/images/rocket II.swf" />
                          <param name="allowfullscreen" value="true" />
                          <param name="allowscriptaccess" value="always" />
                          <param name="flashvars" />
                          <embed id="player3" name="player1" src="http://www.homelistingslondonontario.com/images/rocket II.swf" allowscriptaccess="always" allowfullscreen="true" flashvars="file=playlist.xml" height="260" width="260">
                          </embed>
                        </object>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <div align="center">
                          <img src="http://www.homelistingslondonontario.com/images/introtext.jpg" alt="" height="79" width="488" />
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <div style="width: 610px;height: 70px;float:top;padding-top:0px;float:left;overflow:hidden;background-image:url('http://www.homelistingslondonontario.com/myfiles/savings-new.png');">
                          <div class="counter6" style="margin-left: 370px;overflow:hidden;float:left;position:relative;top:8px;">
                          </div>
                        </div>
                        <br />
                      </td>
                    </tr>
                    <tr>
                      <td colspan="2">
                        <img style="width: 900px; height: 1px;" src="http://homelistingslondonontario.com/myfiles/lt-greydot.jpg" alt="" />
                      </td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center">
                        <br />
                        <br />
                        <iframe src="//www.youtube.com/embed/FwXEIOmw7zU" allowfullscreen="" frameborder="0" height="480" width="640">
                        </iframe>
                        <br />
                      </td>
                    </tr>
                  </tbody>
                </table>
                <p> </p>
                <table align="center" border="0" width="691">
                  <tbody>
                    <tr>
                      <td width="204">
                        <div align="center">
                          <a href="http://www.homelistingslondonontario.com/silver_custom.asp">
                          </a>
                          <a href="http://www.homelistingslondonontario.com/silver_custom.asp">
                          </a>
                          <a href="http://www.homelistingslondonontario.com/silver_custom.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','http://www.homelistingslondonontario.com/images/Selling_hover.jpg',1)">
                            <img src="http://www.homelistingslondonontario.com/images/Selling.jpg" name="Image7" height="172" border="0" width="204" />
                          </a>
                        </div>
                      </td>
                      <td width="204">
                        <div align="center">
                          <a href="http://www.homelistingslondonontario.com/gold_custom1.asp">
                          </a>
                          <a href="http://www.homelistingslondonontario.com/gold_custom1.asp">
                          </a>
                          <a target="_blank" href="http://206.40.111.55/infinityweb/chat/Chatlogon.aspx?account=7533200" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','http://www.homelistingslondonontario.com/images/chat_hover.jpg',1)">
                            <img src="http://www.homelistingslondonontario.com/images/chat.jpg" name="Image8" height="172" border="0" width="206" />
                          </a>
                        </div>
                      </td>
                      <td width="204">
                        <div align="center">
                          <a href="http://www.homelistingslondonontario.com/silver_listings.asp">
                          </a>
                          <a href="http://www.homelistingslondonontario.com/silver_listings.asp">
                          </a>
                          <a href="http://www.homelistingslondonontario.com/silver_listings.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','http://www.homelistingslondonontario.com/images/search_hover.jpg',1)">
                            <img src="http://www.homelistingslondonontario.com/images/search.jpg" name="Image9" height="172" border="0" width="206" />
                          </a>
                        </div>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table></div>
<div></div>
<!--Content end --></div>
   
</td>
<td valign="top" id="hpWidgets" >
<center><!--rcolumn start -->
<div id="div_audioblock">
<div id="div_audiotop"></div>
<div id="div_audiobody">
<table cellpadding="0" cellspacing="o"><tr><td></td></tr></table>
<div class="clear"></div>
</div>
</div>
<div  id="div_audiobtm"></div>
</div></center>
<!--rcolumn start -->
<div id="div_listings"></div>
<div id="div_widgets" ></div>
<!--rcolumn end -->
</td>
</tr>
</table>
</div>
 <div id="div_links">
<table id="tbl_links"  border="0" cellpadding="0" cellspacing="0" width="100%" class="hplinks" >
<tr><td style="width:197px;" align="right" valign="top"  class="links_cl">
<div class="column"><div class="hpmenu">
<div class="hpmenuheadbox" ><a  class="hpmenuheader" href="default.asp">Sellers</a></div>
<table width="100%" cellpadding="1" cellspacing="0" class="hplinks" ><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="silver_custom.asp"  >Sell for 2.75%</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="silver_customform.asp"  >The PC275 Experience</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_custom1.asp"  >Book Your Appointment</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="whyfree.asp"  >Savings Calculator</a>
 </td>
</tr></table></div></div>
<div id="divbm_Sellers"></div>
</td><td style="width:197px;" align="right" valign="top"  class="links_cl">
<div class="column"><div class="hpmenu">
<div class="hpmenuheadbox" ><a  class="hpmenuheader" href="default.asp">Buyers</a></div>
<table width="100%" cellpadding="1" cellspacing="0" class="hplinks" ><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="silver_listings.asp"  >Search for a Property</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_custom2.asp"  >Experienced Buyers Agents</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="vip_buyer.asp"  >New Listings Alerts</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="silver_hf.asp"  >PC275 Mortgage Calculator</a>
 </td>
</tr></table></div></div>
<div id="divbm_Buyers"></div>
</td><td style="width:197px;" align="right" valign="top"  class="links_cl">
<div class="column"><div class="hpmenu">
<div class="hpmenuheadbox" ><a  class="hpmenuheader" href="default.asp">Community</a></div>
<table width="100%" cellpadding="1" cellspacing="0" class="hplinks" ><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="seller_mistakes.asp"  >PC275 Community</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_testimonials.asp"  >Testimonials</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="sell_for_more.asp"  >Teams, Charities &amp; Events</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="guarantee.asp"  >Contests</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_findout.asp"  >PC275 Fan club Deals</a>
 </td>
</tr></table></div></div>
<div id="divbm_General"></div>
</td><td style="width:197px;" align="right" valign="top"  class="links_cl">
<div class="column"><div class="hpmenu">
<div class="hpmenuheadbox" ><a  class="hpmenuheader" href="default.asp">Employment</a></div>
<table width="100%" cellpadding="1" cellspacing="0" class="hplinks" ><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_customform2.asp"  >Look to YOUR Future</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_customform3.asp"  >Become a Realtor</a>
 </td>
</tr></table></div></div>
<div id="divbm_Affiliates"></div>
</td><td style="width:197px;" align="right" valign="top"  class="links_cl">
<div class="column"><div class="hpmenu">
<div class="hpmenuheadbox" ><a  class="hpmenuheader" href="default.asp">About Us</a></div>
<table width="100%" cellpadding="1" cellspacing="0" class="hplinks" ><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="team.asp"  >Our Story</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="trade_up.asp"  >News Feed</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="contact.asp"  >Contact Us</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="zerodown.asp"  >FAQ</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_referral.asp"  >The PC275 Team</a>
 </td>
</tr><tr>
  <td style="width:13px;" valign="middle" class="td_bmenu"><img class="img_bmenu" src="/share/images/layout13/bullet_grey.gif" width="13" height="13" border="0"></td>
  <td valign="middle" class="hpmenubox">
<a class="hpmenuitem" href="gold_affilform1.asp"  >Realtor FAQ</a>
 </td>
</tr></table></div></div>
<div id="divbm_Contact"></div>
</td></tr></table></div><!--pfooter start -->
<div id="div_ftr">
<div id="div_cinfo">
  <table cellpadding="2" cellspacing="2" border="0">
           <tr><td  class="clsContactInfo" align="center"><font size="1">*2.75% total commission listing rate for homes that sell for $200,000 or above. Sales under $200,000 is 2% plus the equivalent of $1500 in a percentage to list. <br></font></td></tr>
           <tr><td  class="clsContactInfo" align="center"><font size="1">*Note:the savings calculated in the "our customers have saved" counter on the front page is an approximate comparison on savings between 2.75% total commission<br>and if our actual sellers had chosen to offer 6% commission to sell their ho</td></tr>
           <tr><td  class="clsContactInfo" align="center"><div id="div_pptext"><div id="div_pp2">
<b>We take your privacy seriously.</b><br />
Your personal information is collected to send you the additional information that you requested about the real estate, mortgage, and affiliated products and services. If we cannot provide a product or service it may be provided by another agent or broker. For details please see the real estate marketing <u><a href="privacy_policy.asp">website privacy policy</a></u>.



</div></div></td></tr>
      </table>
</div>
<div id="div_copy">
<img src="/share/images/ENG/Cfooterb2.gif" border="0" alt="">
</div>
</div>

<!--pfooter end -->   
</div></div></div>
</center>
</body>
</html>

Open in new window

Avatar of jcimarron
jcimarron
Flag of United States of America image

drew17--
The site looks OK to me.  (IE 10, Win 7) What problem are you trying to correct?

For IE click IE Tools|Internet Options|Security tab|Custom Level|
Set "Scripting of java applets" and "Active scripting" to Enable.
Avatar of drew17
drew17

ASKER

jcimarron,

The counter should be counting up. Is it counting or is it stuck at 999?

Thanks!

Drew
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
drew17--You are right.  Stuck at 999.