嗨,我正在尝试使用 Simple Modal 插件工作,但是当我单击链接时,对话框来来去去很快。我只是想运行一个简单的对话框,如http://www.ericmmartin.com/projects/simplemodal/#examples所示。
请告知如何使其运行。
<!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>