Announcement

Collapse
No announcement yet.

Script error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script error

    Having an issue with a script error on line 134. Please take a look at the screen and the code. i cannot figure it out by what line it is pointing to. When I click on the error, it goes to line 6.


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    </style>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    }
    //-->
    </script>
    
    
    <script type="text/javascript" src="bookMark.js"></script>
    <script language="JavaScript"> 
    function clickIE() {
    if (document.all) {
    return false;
    }
    } 
    function clickNS(e) {
    if (document.layers||(document.getElementById&&!document.all)) { 
    if (e.which==2||e.which==3) {
    return false;
    }
    }
    } 
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS;
    } 
    else{
    document.onmouseup=clickNS;
    document.oncontextmenu=clickIE;
    } 
    document.oncontextmenu=new Function("return false") 
    </script>
    </SCRIPT>
    
    <link rel="stylesheet" href="thumbnailviewer.css" type="text/css" />
    <script src="thumbnailviewer.js" type="text/javascript">
    </script>
       <title><actinic:variable name="PageTitle" /></title>
       <actinic:variable name="BaseHref" />
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <meta http-equiv="MSThemeCompatible" content="yes" />
       <actinic:block if="%3cactinic%3avariable%20name%3d%22MetaKeywords%22%20%2f%3e%20%21%3d%20%22%22" >
           <meta name="keywords" content="<actinic:variable name="MetaKeywords" />" />
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22MetaDescription%22%20%2f%3e%20%21%3d%20%22%22">
           <meta name="description" content="<actinic:variable name="MetaDescription" />" />
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22IsP3PPolicyUsed%22%20%2f%3e"><link rel="P3Pv1" href="<actinic:variable name="P3PFullPolicyLink" />"></actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Contact%20Us%22" >
          <actinic:variable value="Script for Blocking Unregistered Customers" name="UnregCustomerMessage" if="%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20FALSE" />
       </actinic:block>
       <link href="actinic.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* Here are some styles to override the default styles that are in the Actinic StyleSheet layout */
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBackgroundColor%22%20%2f%3e">
    
    </actinic:block>
    </style>
       <script language="javascript" type="text/javascript" src="actiniccore.js"></script>
       <script language="javascript" type="text/javascript" src="actinicextras.js"></script>
    
       <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
       <Actinic:COOKIECHECK />
    
       <script language="javascript" type="text/javascript">
          <!-- 
          saveReferrer();
          // -->
       </script>
    
    </head>
    
    <body onload="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
    
    <div id="maincontent">
      <div id="contemporary_top_bar"><actinic:variable name="BrochureLogoImage" /></div>
      <div id="contemporary_second_bar"><div style="float: right;"><actinic:variable name="QuickSearchBar" /></div>
         <actinic:variable name="NavigationIcon" value="Home Image Navigation Button" /><actinic:variable name="NavigationIcon" value="Sitemap Image Navigation Button" /><a href="http://www.valleydecoratingdepot.com/acatalog/portfolio.html" target="_self" onmouseover="SwapImage('nav_Portfolio','button_portfolio_highlight.gif')" onmouseout="RestoreImage()"><img src="button_portfolio.gif" alt="Portfolio" border="0" name="nav_Portfolio" /><a href="http://www.valleydecoratingdepot.com/acatalog/services.html" target="_self" onmouseover="SwapImage('nav_Services','button_services_highlight.gif')" onmouseout="RestoreImage()"><img src="button_services.gif" alt="Services" border="0" name="nav_Services" /></a><actinic:variable name="NavigationIcon" value="Terms Image Navigation Button" /><actinic:variable value="Store Top Image Navigation Button" name="NavigationIcon" if="%3cactinic%3avariable%20name%3d%22IsNavBarTopSectionOmitted%22%20%2f%3e%20%3d%3d%20false" /><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22"><actinic:variable value="Up A Level Image Navigation Button" name="NavigationIcon" if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200" /></actinic:block><actinic:variable name="NavigationIcon" value="Contact Us Image Navigation Button" />
    <actinic:block if="%3cactinic%3avariable%20name%3d%22AreRegCustomersAllowed%22%20%2f%3e">
        <Actinic:NOTINB2B>
        <actinic:variable name="NavigationIcon" value="Login Image Navigation Button" />
        </Actinic:NOTINB2B>
    </actinic:block>
      </div>
      <div id="contemporary_parent_section_list">
      
       
            <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
              <actinic:variable name="ParentSectionListTop" />
          </actinic:block>
    
      </div>
      <div class="contemporary_body_content">
        <div class="contemporary_left_column">
        
        <table width="100%"  border="1" cellpadding="3" cellspacing="0" bordercolor="#f91e1e">
                                <tr>
                                  <td bgcolor="#ffcc66"><div align="center" class="style1">Your Shopping Basket </div></td>
                                </tr>
                                <tr>
                                  <td bgcolor="#ffcc66"><div align="center"><a href="http://www.valleydecoratingdepot.com/cgi/ca000002.pl?ACTION=SHOWCART" title="View Cart">View Basket </a> | <a href="http://www.valleydecoratingdepot.com/cgi/ca000002.pl?ACTION=SSLBOUNCE&URL=https%3a%2f%2fwww%2evalleydecoratingdepot%2ecom%2fcgi%2fos000002%2epl%3fACTION%3dStart&REFPAGE=http%3a%2f%2fwww%2evalleydecoratingdepot%2ecom%2f&ACTINIC_REFERRER=http%3a%2f%2fwww%2evalleydecoratingdepot%2ecom%2f" title="Checkout">Checkout</a> </div></td>
                                </tr>
                                <tr>
                                  <td><div align="center">
                                      <script type="text/javascript">document.write(getMiniCart());</script>
                                  </div><br>
                                   <script language="javascript" type="text/javascript">
    function de(prc) {
        var data, endata;
        data = new String(prc);
        data = data.split(" ");
        endata = cut(data[0]);
        return endata;
    }
    function cut(dpt) {
        stng = dpt.replace("£","");
        stang = stng.replace(".",".");
        stang = stang.replace(",","");
        return stang; }
    var left;
    price = de(getCartItem(1));
    if (price >= 250) {
        document.write("You now have FREE DELIVERY!!");
    }
    else {
        left = (250 - price).toFixed(2);
        document.write("Spend $"+left+" more and get FREE DELIVERY!");
    }
          </script>
                                  
                                  
                                  </td>
                                </tr>
                                <tr>
                                  <td bgcolor="#ffcc66"><div align="center"><a href="http://www.valleydecoratingdepot.com/cgi/ca000002.pl?ACTION=SHOWCART" title="View Cart">View Basket </a> | <a href="http://www.valleydecoratingdepot.com/cgi/ca000002.pl?ACTION=SSLBOUNCE&URL=https%3a%2f%2fwww%2evalleydecoratingdepot%2ecom%2fcgi%2fos000002%2epl%3fACTION%3dStart&REFPAGE=http%3a%2f%2fwww%2evalleydecoratingdepot%2ecom%2f&ACTINIC_REFERRER=http%3a%2f%2fwww%2evalleydecoratingdepot%2ecom%2f" title="Checkout">Checkout</a> </div></td>
                                </tr>
                              </table>
        
    
        <actinic:variable value="Top Level Section List In Boxes" name="TopLevelSectionList" if="%3cactinic%3avariable%20name%3d%22IsTopSectionListIncluded%22%20%2f%3e" />
        <br />
        <actinic:variable name="BrochureNavBar" value="Brochure Nav Bar In Boxes" />
        <br />
        <actinic:variable value="Sidebar New Products List In A Box" name="NewProductListSidebar" if="%3cactinic%3avariable%20name%3d%22NewProductsListInSidebar%22%20%2f%3e" />
        <actinic:variable value="Sidebar Best Sellers List In A Box" name="BestSellerListSidebar" if="%3cactinic%3avariable%20name%3d%22BestSellersListInSidebar%22%20%2f%3e" />
        </div>
         <div class="contemporary_right_column">
             <a name="top"></a>
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e">
                <!-- When logged in, this gives the company name, username and a login link -->
                <Actinic:Variable Name="NowServing"/><Actinic:Variable Name="CurrentAccount"/><Actinic:Variable Name="LogoutSimple"/><br />
             </actinic:block>
             <div align="center">
                <actinic:variable name="HeaderFooter" value="Header Text" />
             </div>
             
             <actinic:variable name="INNERLAYOUT" />
      
             
             <div align="center">
                <actinic:variable name="HeaderFooter" value="Footer Text" />
             </div>
    
             <actinic:variable name="ReferrerLink" />
           <actinic:block if="%28%3cactinic%3avariable%20name%3d%22BestSellerListLocation%22%20%2f%3e%20%3d%3d%20%22Home%20Page%20Only%22%29%20OR%20%28%3cactinic%3avariable%20name%3d%22BestSellerListLocation%22%20%2f%3e%20%3d%3d%20%22Both%20Sidebar%20and%20Home%20Page%22%29" >
       <actinic:variable value="Home Page Best Sellers List" name="BestSellersList" />
    </actinic:block>
    
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22NewProductsListLocation%22%20%2f%3e%20%3d%3d%20%22Home%20Page%20Only%22%29%20OR%20%28%3cactinic%3avariable%20name%3d%22NewProductsListLocation%22%20%2f%3e%20%3d%3d%20%22Both%20Sidebar%20and%20Home%20Page%22%29">
        <actinic:variable name="NewProductsList" value="Home Page New Products List" />
    </actinic:block>
         </div>
        <br clear="all" />
      </div>
    </div>
    
    </body>
    
    </html>
    Attached Files
    Thanks!!

    Regards,

    Bob

    www.valleydecoratingdepot.com

    #2
    Robert at the risk of repeating myself - IMO you should re-apply a standard theme and start again and keep your site within the limits of your knowledge. Get your site working and selling - you can then learn and modify the site using the test facility built into Actinic.

    I suspect that I am banging my head against a brick wall so I will leave you with that thought.

    Comment


      #3
      Use Firefox and it's Tools / Error Console to get decent error messages.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X