confirm选择及标题跑马的
来源:互联网 发布:java web论坛 编辑:程序博客网 时间:2024/04/28 04:32
function bodyOnClick() {
alert("2012");
alert("快来吧");
}
function f1() {
window.alert('f1');
}
function f2() {
alert("f2");
}
function confirmDemo() {
if (confirm("确定删除")) {
alert("ok");
}else{
alert("cancel");
}
}
navigate导航 setinterval定时器
<script type="text/javascript">
function transfer() {
window.navigate("1-事件.htm");
}
var tid = window.setInterval("alert('hello')", 500);
</script>
标题跑马灯
function scroll() {
var title = window.document.title;
if (dir == "left") {
var first = title.charAt(0); //截取第一个字符串
var last = title.substring(1, title.length); //截取除第一个字符的所有字符串
} else if (dir == "right") {
var last = title.charAt(title.length - 1);
var first = title.substring(0, title.length - 1);
}
window.document.title = last + first;
}
var i = setInterval("scroll()", 500);
//设置左右
function setDir(str) {
dir = str;
}
window.showModalDialog("1-.htm");
function showDialog() {
window.showModalDialog("1-.htm");
}
function show() {
window.showModelessDialog("1-.htm");
}
<input type="button" value="模式窗口" onclick="showDialog()" />
<input type="button" value="非模式窗口" onclick="show()" />
- confirm选择及标题跑马的
- unity选择关卡的跑马灯效果
- 跑马灯式的选择元素方法
- alert、confirm、prompt的区别及使用
- 跑马灯效果标题
- 标题跑马灯
- 时钟控件的另一个应用之标题文字跑马灯
- confirm的用法javascript confirm
- JS标题跑马灯效果
- JavaScript复习--标题跑马效果
- Android从SD卡中选择图片的三种方法及自定义系统选择框标题的方法
- alert、confirm、prompt的区别及正则表达式
- JavaScript中confirm,alert,prompt的用法及返回值
- JavaScript中confirm,alert,prompt的用法及返回值
- 在Firefox插件中修改alert/confirm等对话框的标题
- ListView中单个item的跑马灯效果;及所有item实现跑马灯
- 先读数据再弹出对话框根据对话框的选择来触发事件 confirm button input
- Android TextView属性及跑马灯效果的实现
- 关于PCA的总结
- 快马加鞭
- 12周任务5:特殊三位数
- 国内一个有趣的HTML5网页。
- Java集合排序方法
- confirm选择及标题跑马的
- android popupwindow中edittext获取焦点问题
- volatile域的使用
- 用一条SQL语句 查询出每门课都大于80分的学生姓名
- 5.5 广义表的存储结构
- 浅谈C++中强制类型转换函数
- 图像特征检测(Image Feature Detection)
- 技巧_MFC_执行外部程序
- RDLC 报表的制作(图文)