smiley_js([$alias = ''[, $field_id = ''[, $inline = TRUE]]])
Parameters: |
|
---|---|
Returns: |
Smiley-enabling JavaScript code |
Return type: |
string |
Generates the JavaScript that allows the images to be clicked and inserted into a form field. If you supplied an alias instead of an id when generating your smiley links, you need to pass the alias and corresponding form id into the function. This function is designed to be placed into the <head> area of your web page.
Example:
<?php echo smiley_js(); ?>
Please login to continue.