荣耀九能不能插荣耀v10能不能上两张电信卡卡

编程开发子分类程序员必看的jsp页面onclick事件
我的图书馆
程序员必看的jsp页面onclick事件
&input onclick="document.all.WebBrowser.ExecWB(1,1)" type="button" value="打开" name="Button1"& 02 &input onclick="document.all.WebBrowser.ExecWB(4,1)" type="button" value="另存为" name="Button2"& 03 &input onclick="document.all.WebBrowser.ExecWB(10,1)" type="button" value="属性" name="Button3"& 04 &input onclick="document.all.WebBrowser.ExecWB(6,1)" type="button" value="打印" name="Button"& 05 &input onclick="document.all.WebBrowser.ExecWB(8,1)" type="button" value="页面设置" name="Button4"& 06 &input onclick="window.location.reload()" type="button" value="刷新" name="refresh"& 07 &input onClick="window.external.ImportExportFavorites(true,'');" type="button" value="导入收藏夹" name="Button5"& 08 &input onClick="window.external.ImportExportFavorites(false,'');" type="button" value="导出收藏夹" name="Button32"& 09 &input onClick="window.external.AddFavorite(location.href, document.title)" type="button" value="加入收夹"name="Button22"& 10 &input onClick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type="button" value="整理收藏夹" name="Submit2"& 11 &input onclick='window.location="view-source:" + window.location.href' type="button" value="查看源文件" name="Button7"& 12 &input onClick="window.external.ShowBrowserUI('LanguageDialog', null)" type="button" value="语言设置" name="Button6"& 13 &input onClick="document.execCommand('Cut')" type="button" value="剪切"& 14 &input onClick="document.execCommand('Copy')" type="button" value="拷贝"& 15 &input onClick="document.execCommand('Paste')" type="button" value="粘贴"& 16 &input onClick="document.execCommand('Undo')" type="button" value="撤消"& 17 &input onClick="document.execCommand('Delete')" type="button" value="删除"& 18 &input onClick="document.execCommand('Bold')" type="button" value="黑体"& 19 &input onClick="document.execCommand('Italic')" type="button" value="斜体"& 20 &input onClick="document.execCommand('Underline')" type="button" value="下划线"& 21 &input onClick="document.execCommand('stop')" type="button" value="停止"& 22 &input onClick="document.execCommand('SaveAs')" type="button" value="保存"& 23 &input onClick="document.execCommand('Saveas',false,'c:\\Autorun.inf')" type="button" value="另存为"& 24 &input onClick="document.execCommand('FontName',false,fn)" type="button" value="字体"& 25 &input onClick="document.execCommand('FontSize',false,fs)" type="button" value="字体大小"& 26 &input onClick="document.execCommand('refresh',false,0)" type="button" value="刷新"& 27 &input onclick="window.location.reload()" type="button" value="刷新"& 28 &input onclick="history.go(1)" type="button" value="前进"& 29 &input onclick="history.go(-1)" type="button" value="后退"& 30 &input onclick="history.forward()" type="button" value="前进"& 31 &input onclick="history.back()" type="button" value="后退"& 32 &input type="button" value="弹出固定窗口" onClick="javascript:window.open('#','','scrollbars=yes,width=600,height=200')" & 33 &input type="button" value="没有提示关闭" onclick="window.opener=window.close();" /& 34 &input type="button" value="点击进入另一页面" onclick="window.location.href=''" /& 35 &input type="button" value="返回上一页" onclick="javascript:history.go(-1);" /&
TA的最新馆藏[转]&[转]&页面中的键盘控制
Capturing Keystrokes
相应敲击键是电脑和人的基本相互作用。你可以控制任何一个键的按下和松开。首先我们先要
知道如何启动一个所谓的事件 (event). 下面是启动一个把键按下的&onkeydown& 的事件.
document.onkeydown = keyDown
这里的 keyDown 是你所要编写的相应键盘的子程序。当你的浏览器读了以上的语句, 它将会知
道哪个键被按下了,然后启动子程序 keyDown()。 子程序的名字随你起了,在这里在子程序名\r
字后面不需要括号。取得哪个键被按下却在Netscape 和 IE 有所不同。看以下代码,如果用的是
Netscaep, 变量 nKey 将会得到 key code, 而让 ieKey 为 0. 相反, 如果用的是 IE, ieKey
为 key code 而 nKey 为 0:
代码:
function keyDown(e) {
if (ns4) {
var nKey=e.
var ieKey=0
if (ie4) {
var ieKey=event.keyC var nKey=0
alert(&nKey:&+nKey+& ieKey:& + ieKey);
document.onkeydown = keyDown
if (ns4) document.captureEvents(Event.KEYDOWN)
用键盘移动元素
假如你想用键盘来启动你的滑动, 你需要先知道哪个键被按了, 然后用相应的子程序来滑动元
素. 下面我们准备用 &A& 键来启动滑动子程序. Netscape 的 &A& 是 97. 而 IE 是 65. 也就
是说, nKey 为 97 而 ieKey 为 65.
代码:
function init() {
if (ns4) block = document.blockDiv
if (ie4) block = blockDiv.style
block.xpos = parseInt(block.left)
document.onkeydown = keyDown
if (ns4) document.captureEvents(Event.KEYDOWN)
function keyDown(e) {
if (ns4) {
var nKey=e. var ieKey=0
if (ie4) {
var ieKey=event.keyC
var nKey=0
if (nKey==97 || ieKey==65) {
// if &A& key is pressed slide()
function slide() {
if (block.xpos & 300) {
block.xpos += 5 block.left = block.xpos status = block.xpos
// not needed, just for show
setTimeout(&slide()&,30)
我们这里介绍一种方法: 启动变量, 来控制滑动的停止和启动. 这个变量记录了元素是否在动
还是不动. 然后在滑动子程序里放置 &if& 语句, 根据这个启动变量的值来决定是否停止还是
继续滑动.
代码:
function slide() {
if (myobj.active) {
myobj.xpos += 5
myojb.left = myobj.xpos
setTimeout(&slide()&,30)
使用 onKeyUp 和启动变量来控制滑动
onkeyup 就是 onkeydown 相反, 也就是说它用来对键起来这个事件做出反应的.
代码:
document.onkeydown = keyDown
document.onkeyup = keyUp if (ns4)
document.captureEvents(Event.KEYDOWN | Event.KEYUP)
下面就是一个完整的程序代码:
function init() { if (ns4) block = document.blockDiv
if (ie4) block = blockDiv.style
block.xpos = parseInt(block.left)
block.active = false
document.onkeydown = keyDown
document.onkeyup = keyUp
if (ns4) document.captureEvents(Event.KEYDOWN | Event.KEYUP) }
function keyDown(e) {
if (ns4) {
var nKey=e. var ieKey=0
if (ie4) {
var ieKey=event.keyC var nKey=0
if ((nKey==97 || ieKey==65) && !block.active) {
// if &A& key is pressed
block.active = true slide()
function keyUp(e) {
if (ns4) {
var nKey=e. var ieKey=0
if (ie4) {
var ieKey=event.keyC
var nKey=0}
if (nKey==97 || ieKey==65) {
block.active = false // if &A& key is released
function slide() {
if (block.active) {
block.xpos += 5
block.left = block.xpos
status = block.xpos // not needed, just for show
setTimeout(&slide()&,30)
??????????
??????????11:07 提问
怎样写一个点击事件
然后在本页面弹出一个页面
怎样写一个事件:点击一个按钮或者事件, 然后在本页面弹出一个页面
按赞数排序
你表述的不太准确,如果在本页弹出一个window的话,用JavaScript的window.open()方法即可;
如果想弹出一个信息框的话,可以在页面上加一个div隐藏起来,在点击的时候显示即可。
你可以在一个按钮上,或者一个a标签上,写一个onclick事件。这个事件的主题内容是打开另外一个页面。
可以用js的window.open方法
jquery.dialog()或者conform()应该都可以
layer.open
或者用摸态框
window.open啊
window.modedlog(单词好像拼错了)
其他相似问题&>&&>&&>&&>&JSP按钮事件
JSP按钮事件
上传大小:26KB
该文档为JSP普通button的操作,对初学jsp有很大的帮助。
嵌到我的页面
<input type="text" value="">
综合评分:3(1位用户评分)
所需积分:3
下载次数:4
审核通过送C币
创建者:chenfeng522111
创建者:qq
创建者:zhangguo5
课程推荐相关知识库
上传者其他资源上传者专辑
开发技术热门标签
VIP会员动态
android服务器底层网络模块的设计方法
所需积分:0
剩余积分:720
您当前C币:0
可兑换下载积分:0
兑换下载分:
兑换失败,您当前C币不够,请先充值C币
消耗C币:0
你当前的下载分为234。
JSP按钮事件
会员到期时间:
剩余下载次数:
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:

我要回帖

更多关于 荣耀v10能不能上两张电信卡 的文章

 

随机推荐