NumSpell ™ - Customers of all types will keep using this handy tool that returns word spell options for a given number. Enter the seven digit string and this widget returns the best English word strings possible.
|
|
To install the widget in a webpage, three pieces of code appear - a script definition, a <div> element to contain the widget, and a script which loads the widget.
The following script definition should appear in the <head> section of the HTML document.
A <div> element, which will contain the widget must be defined, although it will have no content. The sizing is important for the correct display of the widget, and must be defined. In the code below, the style definition is given using inline CSS, although an external stylesheet may be used.
Further, the ID of the <div> element must be given exactly as shown. The Javascript function which loads the content of the widget will look for an element with a specific ID.
For the Keyword Search Widget:
Example:
Finally, the function get_numspell_widget(), defined in the file widget.js included in the <head> section, must be executed. Executing this function loads the content into the widget's <div> element.
The function get_numspell_widget takes two arguments:
get_numspell_widget("trackcode", "digits")
Where:
For example, if your tracking code is partner123, and you want to find phrases for the number 335-3335, include the following script after the <div> element in your HTML document: