嗨我正在尝试使用Simple Modal插件工作,但是当我单击链接时,对话框快速消失。我只是试图让一个简单的对话框运行,如http://www.ericmmartin.com/projects/simplemodal/#examples所示。帮助使用SimpleModal插件(JQUERY)
请告知如何使其运行。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'></script>
<script type='text/javascript' src='http://www.ericmmartin.com/wordpress/wp-content/themes/emm-v3/scripts/jquery.plugins.js?ver=1.0.2'></script>
<script type='text/javascript' src='http://www.ericmmartin.com/wordpress/wp-content/themes/emm-v3/scripts/jquery.simplemodal.js?ver=1.3.3'></script>
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
// Chained call with no options
$("#sample").modal();
});
});
</script>
<title>hi</title>
</head>
<body>
<a href="">Link</a>
</body>
</html>
+1后解决 - 埃里克,因为你似乎可以用WordPress的,如果你有控制在您的'.htaccess'上,请参阅这里了解如何轻松关闭热链接:http://wpshout.com/a-to-z-of-wordpress-htaccess-hacks/ – 2010-05-21 00:58:09