ASPSpellLink.imageButtonXHTML(buttonImage,rolloverImage, buttonText)

The method imageButtonXHTML returns a W3C compliant XHTML string which can be used to add a visually pleasing button (with a roll-over state) to your ASP page.  When this button is clicked, the ASPSpellCheck dialog will be opened.

Example image button: 
xhtml spellchecker button 

The buttonImage parameter sets the path to an image you wish to use for the button. If this is set to an empty string (e.g. "")  then the button above is rendered. 

The rolloverImage parameter sets the path to an image you wish to use for the button.  If this is set to an empty string (e.g. "") then there will be no customized rollover state.

The buttonText parameter represents the ALT text for the button. If set to an empty string (e.g. "") the default value will be "Spell Check"

Example:

<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World. Ths iz a tezt sampl.
</textarea >

<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea"

response.write myLink.imageButtonXHTML("","","")

set myLink=nothing
%>

 

Result:

result