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" />
<title>制作非缘勿扰页面特效 </title>
<script type="text/javascript" src="./js/jquery-1.8.3.min.js" ></script>
 <style type="text/css">
 .main{
     width:500px;
    }
.left{
    width:200px;
    float:left;
}
.right{
    width:300px;
    float:left;
}
 </style>
 
<script type="text/javascript">
    $(document).ready(function(){
        $('dt').click(function(){
            $('strong').css("color","#FF0099");
        });


        $(".dy").click(function(){
            $('.dy+span').css("font-weight","bold");
        });


        $('#bq').click(function(){
            $("#bq+span>a:even").css("background-color", "#E0F8EA").css("color", "#10A14B").css("padding", "2px");
        });

        $("img[alt='收藏本片']").click(function(){
            alert("您已收藏成功!");
        });

    });

</script>
</head>
<body>
      <div class='main' >
         <div class='left'>
            <img src="images/pic.gif" />
            <br/><br/><br/><br/>
            <img src="images/col.gif" alt="收藏本片"/>
        </div>
        <div class='right'>
            <dl>
                <dt><b>非缘勿扰</b></dt>
                <dd>
                <p>
                    <strong>主演:</strong><span>苏有朋/秦岚/傅艺伟等</span>
                </p>
                <p>
                    <strong class='dy'>导演:</strong><span>赖水清</span>
                </p>
                <p>
                    <strong id='bq'>标签:</strong><span><a>苏有朋</a> <a> 国产电视剧</a>  <a>2013</a> <a>连续剧</a></span>
                </p>
                <p>
                    <strong>剧情:</strong><span>当代都市,大年女刘林、杨阳都在寻找自己的如意郎君,刘林偶遇陆氏房地产总裁路西诺,两人成了欢喜冤家,遭到暗恋西诺的丁娟的嫉恨。。。<a href="#">点击了解更多 </a></span>
                </p>
                </dd>
            </dl>
            <img src="images/btn.gif"/>
        </div>
     </div>
    
</body>
</html>
制作非缘勿扰页面特效.html

 

转载于:https://www.cnblogs.com/xtdxs/p/6613900.html

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值