随着 Internet
在我国的普及,网上企业主页和个人主页日渐增多起来,更好地维护主页是越来越多的朋友的心愿。鉴于网络技术都比较年轻,更新速度又较快,因此有关网页制作实际技巧方面的书籍很少。所以笔者结合自己几年来制作主页的一点积累,与大家一同探讨。 动态网页设计技术在网页制作中的应用,大大丰富了Web的表现形式,其中JavaScript
脚本程序是功能较强、应用较多的一种。这里列举其比较实用的几个实例。 一、状态栏显示控制 浏览器的状态栏在下载完页面之后,仅显示“完成”两个字,如果能合理地加以利用,则这是一个拓展页面表现力的好地方。许多做得很“酷”的页面都在挖掘状态栏的表现效果。下例显示的效果是状态栏文字在页面阅读过程中不断从右至左移动,文字可设置成欢迎信息、最新通告、网站主要内容介绍等,表现形式醒目、活泼。 #页面一:
状态栏显示控制
本页面用来显示动态状态栏效果
读者如果有兴趣,可以在本程序的基础上进行再次开发:将状态栏信息分成多个字符串数组循环显示,可扩大显示的信息量;在多个字符串数组中引入扩展图形字符,如"☆"等,可增加图形化动态效果。 二、窗口的开关控制 在浏览器中可利用
JavaScript
函数实现动态打开或关闭一个新的浏览器窗口,当网站需要发布重要消息、公告或进行网站内容调查时,这一功能显得尤为重要。 #页面二:
窗口的开关控制
本页面用于演示窗口的开关控制 创新互联专注于营山网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供营山营销型网站建设,营山网站制作、营山网页设计、营山网站官网定制、重庆小程序开发公司服务,打造营山网络公司原创品牌,更为您提供营山网站排名全网营销落地服务。
三、系统日期显示 在网页的首页中加入系统日期是许多
ISP/ICP
及专业企业网站常用的方法。这些大网站有专人管理,每日更新数次,有足够的时间去每日更改。但是对于大多数的企业主页或个人主页的站长来说,却大多没有这个条件。这里介绍一种利用
JavaScript
来自动实现这一功能的例子。 #页面三:
系统日期显示
本页面用于演示系统日期显示
本脚本的缺点在于,读出的时间其实是浏览者当前计算机设置的系统时间,如果浏览者的系统时间设置有误,则读出的时间也不准确。
四、页面滚动广告板 充分利用网站的首页,让访问者尽可能多地获取信息,是每一个成功网站展示自身内涵、留住访客的共同之处。利用页面滚动广告板,可以在有限的空间内展示更多的信息,也是艺术化页面设计的一种方法。 #页面四:
页面滚动广告板
分享名称:用JavaScript设计动态网页(转)
转载源于:http://www.tsicrk.com/article/pppeih.html
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2026-05-20 10:28:15 HTTP/1.1 GET : /article/pppeih.html
- 运行时间 : 1.4797s ( Load:0.0064s Init:0.8186s Exec:0.6456s Template:0.0091s )
- 吞吐率 : 0.68req/s
- 内存开销 : 2,259.96 kb
- 查询信息 : 12 queries 5 writes
- 文件加载 : 36
- 缓存信息 : 0 gets 0 writes
- 配置加载 : 130
- 会话信息 : SESSION_ID=eeo3fmih4m9vcr9e28oq1784e5
- /www/wwwroot/tsicrk.com/index.php ( 1.09 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/ThinkPHP.php ( 4.61 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Think.class.php ( 12.26 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Storage.class.php ( 1.37 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Storage/Driver/File.class.php ( 3.52 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Mode/common.php ( 2.82 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Common/functions.php ( 53.56 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Hook.class.php ( 4.01 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/App.class.php ( 13.49 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Dispatcher.class.php ( 14.79 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Route.class.php ( 13.36 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Controller.class.php ( 11.23 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/View.class.php ( 7.59 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/BuildLiteBehavior.class.php ( 3.68 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php ( 3.88 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ContentReplaceBehavior.class.php ( 1.91 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Conf/convention.php ( 11.15 KB )
- /www/wwwroot/tsicrk.com/App/Common/Conf/config.php ( 2.14 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Lang/zh-cn.php ( 2.55 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Conf/debug.php ( 1.49 KB )
- /www/wwwroot/tsicrk.com/App/Home/Conf/config.php ( 0.31 KB )
- /www/wwwroot/tsicrk.com/App/Home/Common/function.php ( 3.33 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ReadHtmlCacheBehavior.class.php ( 5.62 KB )
- /www/wwwroot/tsicrk.com/App/Home/Controller/ArticleController.class.php ( 6.02 KB )
- /www/wwwroot/tsicrk.com/App/Home/Controller/CommController.class.php ( 1.60 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Model.class.php ( 60.11 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php ( 32.43 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db/Driver/Pdo.class.php ( 16.74 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Cache.class.php ( 3.83 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Cache/Driver/File.class.php ( 5.87 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Template.class.php ( 28.16 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Template/TagLib/Cx.class.php ( 22.40 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Template/TagLib.class.php ( 9.16 KB )
- /www/wwwroot/tsicrk.com/App/Runtime/Cache/Home/7540f392f42b28b481b30614275e4e55.php ( 17.71 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/WriteHtmlCacheBehavior.class.php ( 0.97 KB )
- /www/wwwroot/tsicrk.com/ThinkPHP/Library/Behavior/ShowPageTraceBehavior.class.php ( 5.24 KB )
- [ app_init ] --START--
- Run Behavior\BuildLiteBehavior [ RunTime:0.000005s ]
- [ app_init ] --END-- [ RunTime:0.000030s ]
- [ app_begin ] --START--
- Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000309s ]
- [ app_begin ] --END-- [ RunTime:0.000332s ]
- [ view_parse ] --START--
- [ template_filter ] --START--
- Run Behavior\ContentReplaceBehavior [ RunTime:0.000057s ]
- [ template_filter ] --END-- [ RunTime:0.000076s ]
- Run Behavior\ParseTemplateBehavior [ RunTime:0.006300s ]
- [ view_parse ] --END-- [ RunTime:0.006327s ]
- [ view_filter ] --START--
- Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000179s ]
- [ view_filter ] --END-- [ RunTime:0.000195s ]
- [ app_end ] --START--
- 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 1' at line 1
[ SQL语句 ] : SELECT `id`,`pid`,`navname` FROM `cx_nav` WHERE ( id= ) LIMIT 1
- 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 1' at line 1
[ SQL语句 ] : SELECT `id`,`navname` FROM `cx_nav` WHERE ( id= ) LIMIT 1
- 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
[ SQL语句 ] : SELECT `id`,`navname` FROM `cx_nav` WHERE ( pid= )
- [8] Undefined index: pid /www/wwwroot/tsicrk.com/App/Home/Controller/ArticleController.class.php 第 47 行.
- [8] Undefined index: db_host /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php 第 120 行.
- [8] Undefined index: db_port /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php 第 121 行.
- [8] Undefined index: db_name /www/wwwroot/tsicrk.com/ThinkPHP/Library/Think/Db.class.php 第 122 行.

1.4797s 
|