jQueryとMooToolsの両方を使用する基本的なWebページを作成しようとしています。
ここで実際の例を見ることができます:http://jsfiddle.net/DddQA/
しかし、私がMooToolsを参照しようとすると、それは私のページを壊してしまいます。
これが私が問題を抱えている私の現在のコードです:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1rc1.min.js"></script>
<script type="text/javascript">
<!-- remove this line below to make the hyperlink box work correctly -->
jQuery.noConflict();
//<![CDATA[
$(window).load(function(){
$(".affiliate-scheme").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
});//]]>
</script>
<!-- remove this line below to make the hyperlink box work correctly -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>
</head>
<body id="affiliate-scheme">
<div class="affiliate-scheme" style="background:red">
<h3>Affiliate Scheme</h3>
<ul>
<li><a href="/affiliate-scheme/" title="Promote with our Affiliate Scheme">Promote Us</a></li>
</ul>
</div>
</body>
</html>
ここで助けてくれてありがとう。非常に高く評価。