Welcome Guest Search | Active Topics | Sign In | Register

Adding an ALT-text to the BrowseButton-image in AJAXUploader Options
Nisse
Posted: Thursday, January 3, 2008 9:02:40 AM
Rank: Member
Groups: Member

Joined: 10/17/2007
Posts: 13
I currently have an image as a browse-button and I want to add an alt-text to it.

I have a CssClass that I specify for <BrowserButtonStyle>. The browse-image is specified in the css-class.
Quote:
.browserButton { BACKGROUND-IMAGE: url(http://.../itemIconRoundSmall_plus.png); WIDTH: 19px; HEIGHT: 19px; BACKGROUND-COLOR: #f9f9f9; }

Is there any way to add an alt-text to the css-class or can the alt-text be added in another way?
eo_support
Posted: Thursday, January 3, 2008 10:52:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Nisse,

Don't use BrowseButtonStyle. Try to set UseLinkButton to "True" and then set BrowseButtonText to something like:

<img src=".../itemIconRoundSmall_plus.png" border="0" alt="browse file" />

Thanks
Nisse
Posted: Monday, January 7, 2008 1:14:15 AM
Rank: Member
Groups: Member

Joined: 10/17/2007
Posts: 13
I did that but the alt-text is not visible in IE6 or in Firefox..

eo_support
Posted: Monday, January 7, 2008 5:37:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

It won't show you the tooltip, but it will show you the text if the image is not displayed (bad image location, user turned off image, etc), which is the original purpose of the alt attribute.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.