在eBay商店上自定义页脚的问题

时间:2016-04-08 14:16:45

标签: javascript html css store ebay

我正在尝试使用商店标题上的JavaScript代码在我的商店中添加自定义页脚。这是代码:

<script language="javascript" type="text/javascript"> 
document.Echo=document["standard"+"Write"]==null?document["write"]:document["standard"+"Write"]; 
var include=function(path){path="https://cdn.shopify.com/s/files/1/0958/3090/files/"+path;
document.Echo('<' + 'script src="' + path + '"' +' type="text\/javascript"><' + '\/script>');
}; 
</script> 

<script language="javascript" type="text/javascript">include("jquery.min.1.8.2js.js");</script> 
<script language="javascript" type="text/javascript">include("store.js");</script> 

我将我的JavaScript文件存储在Shopify文件系统中,此处是指向文件夹的链接:https://cdn.shopify.com/s/files/1/0958/3090/files/

包含JavaScript的文件名为store.js

这是我添加页脚的JavaScript:

jQuery(document).ready(function(){
    //Right Click Protection
    //$(document).bind("contextmenu",function(e){ return false;});

    //Content Area Mods
    if(pageName == "PageAboutMeViewStore") {
        $(".pagecontainer > table:eq(1) tr:first td:first").addClass("os-background");
        $(".pagecontainer > table:eq(1)").addClass("os-table");
    }else {

        $(".pagecontainer > table:eq(1)").addClass("os-table");

        $(".pagecontainer > table:eq(1)").before("<div class='warp-w'>");

        $(".pagecontainer > table:eq(1) tr:first td:first").addClass("os-background");
        $(".os-background table:eq(1)").addClass("os-content");
        $(".os-content").find("br[clear = none]").remove();

    }   

    //Footer
    var footer = "\n\r <div id=\"os-footer\"> 
    <div class=\"os-inner\"> <div id=\"ftop\"> 
    <div id=\"pos2\"> </div><div  id=\"pos3\">Direct Wholesaler <br>
    <div id=\"pos1\" class=\"footer_text\">
    <div id=\"bottom_menu\"> <ul> 
    <li class=\"last\"><a href=\"http://contact.ebay.co.uk/ws/eBayISAPI.dll?ContactUserNextGen&recipient=wholesalers_direct">Contact Us</a></li> 
    <li><a href=\"http://stores.ebay.co.uk/directwholesaleshop/pages/shipping-information/_i.html?_mode=preview\">Shipping Information</a></li> 
    <li><a href=\"http://stores.ebay.co.uk/directwholesaleshop/pages/terms-and-conditions/_i.html?_mode=preview\">Terms &amp; Conditions</a></li> 
    </li> </ul> </div><div class=\"os-clear\">
    </div> 
    </div>
    <div id=pos4>
    <img src=\"http://pack.baseuber.com/partikle/images/secure-payments.png\" align=\"right\"></div> </div> 
    <div class=\"os-clear\"></div> </div><div id=\"fbottom\">Copyright &copy;Direct Wholesaler&nbsp;|&nbsp; All Rights Reserved &nbsp;|&nbsp; 
    <a href=\"http://uberebayshopdesign.com\" target=\"_blank\">eBay Shop Design</a></div> </div> </div> ";
    if(pageName != "PageAboutMeViewStore") {
        if($(".os-content").length > 0) {
            $(".os-content").after(footer);         
        }
    }

    $('.buy_now_related span').text('View Item');

    $('#selectedV').on('change', function() {
      var made =  this.value ; 
      if(made==0) return false;
     else window.location.href ='http://stores.ebay.co.uk/Partikle-Parts-and-Accessories/_i.html?_nkw='+made+'&submit=Search&_sid=1086666865' ;
  // or $(this).val()
    }); 
});

问题是我无法在页面上看到页脚,即使我可以看到它访问该文件夹中的文件。

Here is image proving that

那么问题是什么?

0 个答案:

没有答案