莫言败的个人主页

年轻没有什么不可以

  • 首页
  • 微言
  • 工作日志

Dreamweaver用按键(button)刷新页面的N种方法

作者 :莫言败      文章分类 :计算机基础      订阅:RSS 2.0            

   在做页面(www.zhouqiche.info/search.php)时, 想让按钮刷新后显示下一张图片,一直不得其解,找了好就才找到一篇有用的。试了一试第一个能用,所以就转帖过来了:

<input type=button value="刷新" onclick="history.go(0)">

<input type="button" value="刷新" onclick="location.reload()">

<input type="button" value="刷新" onclick="location=location">

<input type="button" value="刷新" onclick="location.assign(location)">

<input type="button" value="刷新" onclick="document.execCommand('Refresh')">

<input type="button" value="刷新" onclick="window.navigate(location)">

<input type="button" value="刷新" onclick="location.replace(location)">

<input type="button" value="刷新" onclick="window.open('自身的文件','_self')">

<input type="button" value="刷新" onClick=document.all.WebBrowser.ExecWB(22,1)>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>

<form action="自身的文件">
<input  type="button" value="刷新" >
</form>

<a id=a1 href="自身的文件"></a>
<input  type="button" value="刷新"  onclick="a1.click()">

  另外发现,其实不一定非用css才能使代码很美观,其实用 style=”" 也可以实现大部分的属性设置。比方说按键的大小:style=”width:100px; height:30px”

Related posts:

  1. 我们班的毕业视频
  2. 支持雅安,寻找每一个生命奇迹!
  3. 突破图片防盗链
  4. 分享:有趣的加菲猫电影截图
  5. 一项实验的终结
  6. 三年计划、五年计划(7.15-7.19)

Tags: Dreamweaver, 刷新, 按键

文章于 2010年 十月 3日,星期日 ,下午 10:42 发表。

Leave a Reply

邮箱

请输入验证码:

看不清?点击换一张!

  • 分类目录

    • 工作日志 (123)
    • 建站历程 (16)
    • 微言 (253)
    • 旅游随笔 (2)
    • 生活杂谈 (72)
    • 计算机基础 (3)
    • 诡异的想法 (7)
  •  

    2025 五月
    一 二 三 四 五 六 日
    « 十    
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • 文章归档

  • 链接表

    • 网址大全

Copyright © 2025 - 莫言败的个人主页 | 晋ICP备11007077号 |