Javascript 在主页中工作但不在内部目录中的代码只显示加载
我的代码在主目录中运行良好,但在内部目录中它会继续显示加载的图像。从不显示原始页面 这是我的简单代码Javascript 在主页中工作但不在内部目录中的代码只显示加载,javascript,php,jquery,loading,Javascript,Php,Jquery,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
<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>
@import”http://static.something.com/files/common_css/style16.css";
jQuery(document).ready(函数($){$('a[rel*=facebox]').facebox())
这段代码在这里运行良好
但在本页中不起作用
一切都是一样的。我认为javascript或图像引用存在一些问题。我试图改变所有问题,但问题是一样的
这里还有jsbin链接
jsbin.com/royepawomi/edit
这里也不起作用您发布的两个链接是两个不同的域
www.way2enjoy.com
和way2enjoy.com
。我建议只选一个,然后用它
原因是您无法执行跨域AJAX请求。将www.放在一个域中意味着它们被视为单独的域。为什么要在文档中包含两个-s?:)