代码在主页中工作,但不在内部目录中工作 - 仅显示加载


code working in home page but not in inner directory-just shows loading

我的代码在主目录中工作正常,但在内部目录中它继续显示加载图像。从不显示原始页面

这是我的简单代码

   <html><head><style type="text/css" media="all">@import "http://static.something.com/files/common_css/style16.css";</style>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

       <script src="http://static.something.com/js/lightbox/js/jquery.lightbox-0.5.js" type="text/javascript"></script>
      <script type="text/javascript" src="http://something.com/js/jquery.form33.js"></script>              <script type="text/javascript">jQuery(document).ready(function($) {$('a[rel*=facebox]').facebox()})    </script>  
       </head><body>

     <?php

   echo'    <body style="cursor:auto" id="curpo" onLoad="$.image({ ajax: ''http://something.com/jquery/desigirls/77987'' });return false;" class="uiMediaThumb uiMediaThumbLarge uiMediaThumbAlb uiMediaThumbAlbLarge"></body>
';
      ?></body></html>

这段代码在这里工作正常 http://something.com/testage.php

但不适用于此页面 http://www.something.com/touch/w2et/testage.php

一切都是一样的。我认为 JavaScript 或图像引用存在一些问题。我尝试更改除相同问题之外的所有问题。

这也是JSBIN链接 jsbin.com/royepawomi/edit

这里也不起作用

您发布的两个链接是两个不同的域

www.way2enjoy.comway2enjoy.com. 我建议只选择一个并使用它。

原因是您无法执行跨域 AJAX 请求。 拥有万维网。一种方式是将它们视为单独的域。