-8

これは本当に奇妙です。私のサイトwww.example.comにアクセスすると、jQueryは私のインデックスファイル/ホームページで機能しません。ただし、www.example.com / index.htmlと入力すると、jQueryは正常に読み込まれます。何が起こっているのか、これを修正する方法はありますか?

http://www.Japaneselanguagefriend.com

http://www.Japaneselanguagefriend.com/index.html

4

2 に答える 2

1

http://www.japaneselanguagefriend.com/

一部のタグが存在しません。例: <body>tag

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
  <title>Japanese Language Friend - An Artistic Approach to Learning Japanese! </title>
  <META name="description" content="Learn Japanese by stimulating artwork! Join our community and lay down the first stepping stone to improving your Japanese language skills"><META name="keywords" content="Japanese art, Japanese, Japan, Learning Japanese, learning japanese, study japanese, fluent japanese,  japanese language friend, help with japanese, amazon japanese language, second language, japanese language community, japanese language friends, japanese language friend">
</head>
<frameset rows="100%,*" border="0">
  <frame src="http://japanesefriend.zxq.net" frameborder="0" />
  <frame frameborder="0" noresize />
</frameset>

<!-- pageok -->
<!-- 07 -->
<!-- -->
</html>
于 2012-09-03T05:51:11.470 に答える
1

含める前にjQueryを使用しようとしています:

  <script>$(document).ready(function() {
    $("a.register").fancybox({
        'type': 'iframe'
    });
});
</script>
<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>

これが最初であることを確認します。

<script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
于 2012-09-03T05:51:58.130 に答える