Web网页对话框可拖动、关闭(自动)文字循环变化
2012-12-25 00:00
363 查看
Web 页对话框
span,table{font-size:10pt;margin:0pt}
Tip of the day -- Web 页对话框
X
帮助
1/5
[b] 你知道吗...[/b]
大家好,我是dennisboys
自动翻帖
var i=1
var timer1
var msg=new Array();
msg[0]=""
msg[1]="大家好,我是dennisboys"
msg[2]="我非常喜欢javascript"
msg[3]="51js真是一个非常好的地方"
msg[4]="我以后会常来的"
msg[5]="就说到这吧,886"
function nextmsg()
{
num.innerText=" "+i+"/5"
message.innerText=msg[i]
i++
if(i>5)i=1
clearTimeout(timer1)
check1.checked=false
}
function checkone()
{
if(check1.checked==true)
{
num.innerText=" "+i+"/5"
message.innerText=msg[i]
i++
if(i>5)i=1
timer1=setTimeout("checkone()",2000)
}else{clearTimeout(timer1)}
}
checkone()
var count=0
function down1()
{
cleft=table1.style.pixelLeft
ctop=table1.style.pixelTop
cx=event.clientX
cy=event.clientY
count=1
}
function move1()
{
if(count==1)
{table1.style.pixelLeft=cleft+event.clientX-cx
table1.style.pixelTop=ctop+event.clientY-cy}
}
function up1()
{
count=0
}
function closewin()
{
table1.style.display='none'
}
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
span,table{font-size:10pt;margin:0pt}
Tip of the day -- Web 页对话框
X
帮助
1/5
[b] 你知道吗...[/b]
大家好,我是dennisboys
自动翻帖
var i=1
var timer1
var msg=new Array();
msg[0]=""
msg[1]="大家好,我是dennisboys"
msg[2]="我非常喜欢javascript"
msg[3]="51js真是一个非常好的地方"
msg[4]="我以后会常来的"
msg[5]="就说到这吧,886"
function nextmsg()
{
num.innerText=" "+i+"/5"
message.innerText=msg[i]
i++
if(i>5)i=1
clearTimeout(timer1)
check1.checked=false
}
function checkone()
{
if(check1.checked==true)
{
num.innerText=" "+i+"/5"
message.innerText=msg[i]
i++
if(i>5)i=1
timer1=setTimeout("checkone()",2000)
}else{clearTimeout(timer1)}
}
checkone()
var count=0
function down1()
{
cleft=table1.style.pixelLeft
ctop=table1.style.pixelTop
cx=event.clientX
cy=event.clientY
count=1
}
function move1()
{
if(count==1)
{table1.style.pixelLeft=cleft+event.clientX-cx
table1.style.pixelTop=ctop+event.clientY-cy}
}
function up1()
{
count=0
}
function closewin()
{
table1.style.display='none'
}
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
相关文章推荐
- Web网页对话框可拖动、关闭(自动)文字循环变化
- 点击AlertDialog的按钮时,不自动关闭对话框
- 固定在网页最顶端的文字图片框广告特效,可关闭
- 一种自动关闭对话框的简单方法
- F5刷新网页时,出现了“如要再次显示该网页,web浏览器需要重新发送你以前提交的信息...要点击重试",如何不让出现这个对话框的解决方案
- 快手AAuto 网页(web)自动登录方法汇总
- JS实现的网页无提示自动关闭
- socket(php)(短连接)(无循环,能接发一次,自动关闭)整理版本1
- 在网页里添加Web Live Messenger对话框
- [javascript]网页文字无空白自动滚动的一种实现方式
- web开发时自动刷新网页:liveReload安装,sublime 3
- C#实现通过程序自动抓取远程Web网页信息
- [Web开发] 让IE8自动使用兼容模式显示网页的方法
- js网页自动关闭无提示
- 自动的关闭对话框 MessageBox
- 打开网页自动弹出QQ对话框的3种方法
- 如何关闭WebEditor在线编辑器的远程自动上传功能http://www.jn10086.cn/boke/article.asp?id=231
- JS实现div内部的文字或图片自动循环滚动
- 自动关闭MessageBox()对话框
- CSS+JS实现点击文字弹出定时自动关闭DIV层菜单的方法