Js实现Flash播放效果[带源码]

关于做这样的功能,需要掌握html基本元素、css布局,js知识。当你看到关于轮播图这样的效果展示,有点不敢相信,因为自己的真的不会,一方面真的不会,所以就是不会,详细一点的介绍,可是又没有时间,源码就在其中,主要复制到自己的电脑上,配置一下具体的文件结构,还有就是添加几张图片,就能完美展示在你面前。

这是css样式文件

/* 公共部分 */
body{
	background-color: #666;
}
	ul{
		padding: 0;
		margin: 0;
	}
	li{
		list-style: none; /*去除样式*/
	}
	img{
		border: 0;
	}
	/* 整个布局*/
	.play{
		width: 400px;
		height: 430px;
		margin: 50px auto 0; /* 上边距50px 左右居中  下边距0 */
		background-color: #999;
		font: 12px Arial;/* 字体大小12px 雅黑字体 */
 	}
	/* 大的轮播图 设置开始*/
	.big_pic{
		width: 400px;
		height: 320px;
		overflow: hidden; /* 超出隐藏 */
		border-bottom: 1px solid #ccc;
		background-color: #222;
		/* background-color: red; */
		position: relative;/* 绝对布局*/
	}
	.big_pic li img{
		width: 400px;
		/* height: 320px; */
	}
	.big_pic li{
		width: 400px;
		height: 320px;
		overflow: hidden;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 0;
		background: url(../images/loading.gif) no-repeat center center;
	}
	/* 左表记 */
	.mark_left{
		width: 200px;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
		background-color: red;
		z-index: 300;
		filter: alpha(opacity:0);
		opacity: 0;
	}
	/*右表记*/
	.mark_right{
		/* width: 200px; */
		width: 50%;
		height: 100%;
		position: absolute;
		right: 0;
		top: 0;
		background-color: red;
		z-index: 300;
		filter: alpha(opacity:0);
		opacity: 0;
	}
	/* 左边上一张 */
	.big_pic .prev{
		width: 60px;
		height: 60px;
		background: url(../images/btn.gif) no-repeat;
		z-index: 301;
		/* position: relative; */
		position: absolute;
		top: 130px;
		left: 10px;
		cursor: pointer;/* 鼠标样式变为小手 */
		filter: alpha(opacity:0);
		opacity: 0;
	}
	/* 右边上一张 */
	.big_pic .next{
		width: 60px;
		height: 60px;
		background: url(../images/btn.gif) no-repeat 0 -60px;
		z-index: 301;
		/* position: relative; */
		position: absolute;
		top: 130px;
		right: 10px;
		cursor: pointer;/* 鼠标样式变为小手 */
		filter: alpha(opacity:0);
		opacity: 0;
	}
	/* 文本信息 */
	.big_pic .text{
		position: absolute;
		left: 10px;
		bottom: 5px;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

红豌豆

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值