lightbox的一个ajax效果

  所谓的lightbox,就是比如在看相册时,当点某张相时,然后突出显示该相片的一个很COOL的效果,
其实是用到了prototype,scriptaculous,lightbox.js等类库的,一个小DEMO
<html>
<head>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
</head>
<body>
<a href="images/megan1_400_320.jpg" rel="lightbox"><img src="images/megan1_400_320.jpg" width="100" height="80" alt="Megan" border="0" /></a>
</body>
</html>

你可能感兴趣的:(Ajax)