感应鼠标的滑动式图片说明效果

<!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>
<title>潜水排污泵</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<!--把下面代码加到<head>与</head>之间-->
<style type="text/css">
.box{
    position:relative;
    width:320px;
    height:200px;
    overflow:hidden;
    background:#0088ff;
}
.note{
    position:absolute;
    left:0;
    top:176px;
    width:100%;
    height:100%;
    filter:progid:DXImageTransform.Microsoft.gradient(enabled=‘true‘,startColorstr=‘#0F000000‘,endColorstr=‘#0F000000‘);
    background:rgba(0,0,0,0.7);
    text-align:center;
}
.title{
    display:block;
    width:100%;
    height:100%;
    font-size:18px;
    color:#ffffff;
    text-decoration:none;
}
span{
    font-size:24px;
    color:#CC0000;
}
</style>
<script type="text/javascript" src="/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $(".note").hover(function(){
        $(this).animate({top:‘0‘},"900");
    },function(){
        $(this).animate({top:‘176px‘},"900");
    });
});
</script>
</head>
<body>
预览效果时左下角会提示错误,而且看不到效果,刷新一下就可以看到效果了;当然,在实际使用中,不会出现这样的问题。<br>
<!--把下面代码加到<body>与</body>之间-->
<div class="box">
    <img src="/UploadFiles/2014-07/2/2014727232903682.jpg" alt="" width="320" height="200">
    <div class="note">
        <a href="#" class="title"><span>图片一</span><br>This is a note area input something you want to talk to every one.</a>
    </div>
</div>
<div class="box">
    <img src="/UploadFiles/2014-07/2/2014727235466141.jpg" alt="" width="320" height="200">
    <div class="note">
        <a href="#" class="title"><span>图片一</span><br>This is a note area input something you want to talk to every one. This is a note area input something you want to talk to every one. This is a note area input something you want to talk to every one. This is a note area input something you want to talk to every one.</a>
    </div>
</div>
</body>
</html>
时间: 2024-10-06 00:14:10

感应鼠标的滑动式图片说明效果的相关文章

JS实现感应鼠标滑动提示层效果

<!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> <title>JS实现感应鼠标滑动提示层效果丨kiddy

JS感应鼠标的图片上下滑动展示效果

<!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-T

CSS3感应鼠标背景闪烁和图片缩放效果

<!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><title>CSS3感应鼠标的背景闪烁和图片缩放动态效果&l

一款JS感应鼠标横向左右切换的焦点图切换效果

<!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-

JS打造的弹性跳跃的图片效果且感应鼠标放大

<html> <title>JS打造的弹性跳跃的图片效果且感应鼠标放大丨行车记录仪官网|大疆官网</title> <body> <script> var brOK=false; var mie=false; var aver=parseInt(navigator.appVersion.substring(0,1)); var aname=navigator.appName; var mystop=0; var step=0.2; function

CSS实现DIV感应鼠标Hover时的显示隐藏效果

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>CSS实现DIV感应鼠标Hover时的显示隐藏效果</title> <style> .wrap{} .wrap .box{border:2px solid red;width:200px;height:200px;float:left;margi

JS实现文字链接感应鼠标的解密效果

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>JS实现文字链接感应鼠标的解密效果丨石家庄展柜制作|石家庄铜门</TITLE> <META content="text/html; charset=gb2312" http-equiv=Content-Type> <STYLE&

android开发步步为营之53:viewpager+fragment构造可左右滑动标签页效果

可滑动的标签页是很多应用的用来做外面框架的,比如微信,微博等等,我这里实现的效果是下面是主标签页,然后中间一个的标签页里面又可以继续左右滑动,等于是标签页内部再嵌套标签页,用到的组件主要有:用于滑动效果的viewpager,以及用于实现每个tab页功能的fragment,先看看效果图:  第一步:设计页面activity_learn_fragment.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/

滑动式折叠菜单 - Slashdot&#39;s Menu

折叠菜单让你在尽可能小的地方放置尽可能多的内容,同时加大了操作的简便性,因此,深受前台设计师的喜爱.随着大家对动画效果的钟爱,折叠菜单也开始“动”起来了,本文介绍的就是 DimX 制作的滑动式折叠菜单效果-Slashdot's Menu. <script type="text/javascript"> function SDMenu(id) {     if (!document.getElementById || !document.getElementsByTagNam