惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

博客园 - 稽首本然

Nhibernate 教程,有空看看 Jquery专题写的不少,有空看看,另该研究下门面模式了! Java开源权限管理中间件 《需求规格说明书》业务描述活动图 《需求规格说明书》(用例)陷阱 《需求规格说明书》核心功能表现方式(用例) LINQ TO SQL ScriptManager与UpdatePanel总结 Nunti测试工具使用整理 一个关于NHiberante,Linq数据源与UI交互引发的思考 数据库联接字符串 LINQ TO OBJECT ASPX直接编写脚本function后使用javascript 母版事件中注册javascript脚本 ASPNET跨页面传值技巧总结 javascript捣乱程序 Javascript在Asp.Net中的应用汇总 AjaxPanel中使用javascript AjaxPanel控件说明
Aspx页面中直接编写javascript脚本
稽首本然 · 2011-01-18 · via 博客园 - 稽首本然

Aspx页面中直接编写javascript脚本

☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
Title      : AspNet Page Using Javascript 直接写入脚本
Description:
version    : 1.0              Date      :8:46 2008-3-26       
Author       : TianzhenYu/田振宇/Nick(Tim)  Contact    :MSN:zhenyu_tian@hotmail.com

☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆

//★★★①代码分析:

//<title>Untitle Page</title>
 <script language=javascript>
    function displayTime()
    {
        var today=new Date();
        var hours=today.getHours(); //注意()
        var sec=today.getSeconds();
        var min=today.getMinutes();
        document.getElementById("currentTime").innerHTML=hours+":"+min+":"+sec;
        t=setTimeout("displayTime()",500);  //注意函数名称要写全
    }
    </script>
//...
<body onload=displayTime()>
//...
<div id ="currentTime"></div>

posted @ 2011-01-18 19:13  稽首本然  阅读(2080)  评论()    收藏  举报