我要做的是在点击 Href 链接后向下滑动表单。此函数已保存在另一个名为 formValidation.js 的外部文件夹中。
$(document).ready(function(){
$('#register').slidedown(800);
}
<head>
<title> <?php $page_title ?> </title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
<script src="formValidation.js"></script>
<script src="jquery-1.10.2.js"></script>
<div id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="register.php">Register</a></li>
<li><a href="film.php">Film</a></li>
<?php
if (isset($_SESSION['user_id']) and isset($_SESSION['name']))
{
echo "<li><a href='review_a_film.php'>Review a film</a></li>";
}
?>
<li><a href="logout.php">logout</a></li>
</ul>
</div>
</head>
<body>