facebox在scala中无法正常工作

时间:2013-10-27 06:18:54

标签: javascript ajax scala facebox

<script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/jquery-1.9.1.js")" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/facebox.js")" type="text/javascript"></script>
<link   href="@routes.Assets.at("stylesheets/facebox.css")" media="screen" rel="stylesheet" type="text/css"/>

<script>   
</script>
<body>

<a href="#info" rel="facebox">text</a>
<div id="info" style="display:none;">
  hello world
</div> 


</body>

Facebox和div标签没有显示。我是ajax的初学者,所以请帮助我。

1 个答案:

答案 0 :(得分:3)

jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})