创建“帮助”功能 [英] creating a 'help' function

查看:100
本文介绍了创建“帮助”功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Dreamweaver8在JavaScript中创建一个函数,这样当用户在选择文本框时点击F1键时,单独的弹出按钮会弹出。窗口将打开,带有我选择的文本。


有没有人有任何指针甚至是一些源代码?我在我的服务器上使用ASP。


谢谢!


Ross

I''m trying to create a function in JavaScript using Dreamweaver8 such that when a user hits the '' F1'' key when a text box is selected a separate "pop-up" window will open, with text of my choice.

Does anybody have any pointers or even some source code? I use ASP on my server.

Thanks!

Ross

推荐答案

ross m。 greenberg在2007年9月29日下午2:01发表以下内容:
ross m. greenberg said the following on 9/29/2007 2:01 PM:

我正在尝试使用Dreamweaver8
在JavaScript中创建一个函数
I''m trying to create a function in JavaScript using Dreamweaver8



这是错误#1:试图让DW创建任何东西,使用Javascript来做任何事情。

That''s mistake #1: Trying to let DW create anything having anything to
do with Javascript.


,当用户在选择文本框时点击F1键时,

单独的弹出按钮窗口将打开,带有我选择的文字。
such that when a user hits the '' F1'' key when a text box is selected a
separate "pop-up" window will open, with text of my choice.



多么直观。所以,你想要做的是覆盖我的浏览器

功能,因为你认为你知道我需要做什么更好?


你可以''这样做。

How intuitive. So, what you want to do is to override my browser
functionality because you think you know better what I need that I do?

You can''t do it.


有没有人有任何指针甚至是一些源代码?
Does anybody have any pointers or even some source code?



停止尝试使用帮助菜单进行清理,你不能过度使用它。为什么

你不能简单地使用文本框的onfocus / onblur来导致你的工具提示

框出现?

Stop trying to muck with the Help menu, you can''t over ride it. Why
can''t you simply use onfocus/onblur of the textbox to cause your tooltip
box to show up?


我在服务器上使用ASP。
I use ASP on my server.



您在服务器上使用的内容与您在浏览器中要做什么有关?

要做什么?


-

兰迪

机会有利于准备好的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/


ross m。 greenberg写道:
ross m. greenberg wrote:

我正在尝试使用Dreamweaver8在JavaScript中创建一个函数,以便当用户在文本框中点击F1键时选择单独的弹出按钮窗口将打开,带有我选择的文字。
I''m trying to create a function in JavaScript using Dreamweaver8 such that when a user hits the '' F1'' key when a text box is selected a separate "pop-up" window will open, with text of my choice.



请修理你的...错误...新闻阅读器:

http://www.insideoe.com/

我强烈建议使用Thunderbird:

http://www.mozilla.com/thunderbird/


有人有任何指针甚至是一些源代码吗?
Does anybody have any pointers or even some source code?

http://www.brain4。 de / programmierecke / js / tastatur.php

请注意,用户不会对脚本作者改变的预期应用程序行为采取行动。

http://www.brain4.de/programmierecke/js/tastatur.php

Note that users do not take kindly on expected application behavior being
altered by script authors.


我在服务器上使用ASP。
I use ASP on my server.



不相关,键盘事件处理是客户端的。

HTH


PointedEars

-

现实主义:HTML 4.01严格

福音:XHTML 1.0严格

疯狂:XHTML 1.1 as application / xhtml + xml

- Bjoern Hoehrmann

Irrelevant, keyboard event handling is client-side.
HTH

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann


仅仅为了提供信息,一个包含下面没有编辑的回复本来就是比任何回复更有效!


===============

< head>

< script> ;

函数d(plugh)

{

alert(plugh);

返回false

}

< / script>

< / head>

< html>

< body onHelp =" alert(''用户正在寻求帮助''); d(''我自己的帮助功能'');返回false">

此事件触发当用户按下F1键时。

< / body>

< / html>

======== ==========
Just for the information''s sake, a response that included just the below without editorializing would have been more effective than any of the responses!

===============
<head>
<script>
function d(plugh)
{
alert(plugh);
return false
}
</script>
</head>
<html>
<body onHelp="alert(''The user is looking for help'');d('' my own help function'');return false">
This event fires when the user presses the F1 key.
</body>
</html>
==================


这篇关于创建“帮助”功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆