开发者

using html for an image [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in开发者_开发百科 its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I have an image for adding files(is also add button) and I want it to be disabled(or say make it grey) when they are no files.and when they are files to be added it should enable the user to add files.


It's better to use two separate images for active and inactive buttons.


I dont understand what you need, but Ill give it a go :)

An image for adding files:

<input name="AddFile" type="image" src="image.gif" disabled="True">

Use a Javascript function to active the image-button:

function enableField()
{
document.form1.AddFile.disabled=false;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜