我想添加下一个或上一个按钮 [英] i want add next or previous button
本文介绍了我想添加下一个或上一个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此脚本我正在使用灯箱效果,
在弹出窗口中,我想添加下一个或上一个按钮,
请帮帮我.
< !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 过渡//EN" >
< html >
< 头部 >
< 标题 > 灯箱示例< /title >
< 样式 >
.black_overlay {
显示:无;
位置:绝对;
最高:0%;
左:0%;
宽度:100%;
高度:100%;
背景颜色:黑色;
z-index:1001;
-莫兹不透明度:0.8;
不透明度:.80;
过滤器:alpha(opacity = 80);
}
.white_content {
显示:无;
位置:绝对;
最高:25%;
左:25%;
宽度:50%;
高度:50%;
内边距:16px;
边框:16像素纯橙色;
背景颜色:白色;
z-index:1002;
溢出:自动;
}
< /style >
< /head >
< 正文 >
< p > 主要内容.要显示灯箱,请点击< a href =" onclick =" document.getElementById('light').style.display ='block '; document.getElementById('fade').style.display ='block'" < /a > < /p >
< div =" light" class white_content" > 这是灯箱内容. < a javascript:void(0)" onclick =" < /a > < /div >
< div =" fade" 类 black_overlay" > < /div >
< /body >
< /html >
解决方案
向前和向后按钮
下一个和上一个按钮
This script i am using light box effect,
on pop up i want add next or previous button ,
please help me.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<style>
.black_overlay{
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: absolute;
top: 25%;
left: 25%;
width: 50%;
height: 50%;
padding: 16px;
border: 16px solid orange;
background-color: white;
z-index:1002;
overflow: auto;
}
</style>
</head>
<body>
<p>This is the main content. To display a lightbox click <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</a></p>
<div id="light" class="white_content">This is the lightbox content. <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a></div>
<div id="fade" class="black_overlay"></div>
</body>
</html>
解决方案
creating Next / previous buttons using Javascript
Foward and Back Buttons
The Next and Previous Buttons
这篇关于我想添加下一个或上一个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文