我使用的是JavaScript的prompt()函数。
var favorite = prompt('What is your favorite color?', 'RED');
我使用的是IE7,打开的提示框有一个标题栏,上面写着:“Explorer User prompt”,还有一个文本写着“Script Prompt:”,下面是我的文本:“你最喜欢的颜色是什么?”此外,“确定”和“取消”按钮出现在提示框的最右侧,文本输入框出现在对话框的最底部。
有没有办法改变标题栏,删除文本“脚本提示符”,并在文本输入框下面放置“确定”和“取消”按钮?
我想在输入框中使用*字符,但出现错误提示
conversion from "*" to string invalid
如何使我的输入框将键入的文本隐藏为密码字符?
以下是我的代码
Dim value As String
value = InputBox("Security Check", " Enter password", "*")
If value = "123456" Then
numr.Enabled = True
End If
End Sub
我正尝试在VB6中创建一个输入框,以便能够在提示符中包含空格。我试着用MSGBOX做同样的事情,但它不让我做VBCRLF。这就是我想要做的
This company has more than 1 department.
For Accounting type 1
For Reasearch type 2
此处的输入框和右侧的OK和CANCEL
我开发了一个小工具提示插件。它在IE,Chrome上运行得很好。在firefox中,它第一次运行良好。第二次,如果我刷新工具提示是奇怪的,positioned..not确定发生了什么。
以下是步骤
火狐中的首先将鼠标指向第一个输入框--工具提示将位于输入框附近。
1. then scroll down to second input box and mouse over the second input box - tooltip near the 2nd input box.
2. click on the refresh button in firefox without scrollin
我正在尝试从一个网站下载图像,要求您检查您想要下载的图像的输入框。因为我想全部下载,所以我有这个JS脚本来检查所有的输入框。
var allInputs = document.getElementsByTagName("input");
for (var i = 0, max = allInputs.length; i < max; i++){
if (allInputs[i].type === 'checkbox')
allInputs[i].checked = true;
}
但现在的问题是,这个网站有两种类型的图像,低分辨率和