![]() |
|
Snippets |
|
visual_effect('highlight', 'vendor', array('startcolor' => "'#000000'", 'endcolor' => "'#ffffff'", 'restorecolor' => "'#FF0000'")))
simple, but has a few caveats:
-if you dont enclose the quotes with the color params, the js function color isnt quoted, and the highlight wont occur.
-i found behavior inconsistent without using 6 character RGB values (e.g., #000 didnt work).
-restorecolor can be omitted, but non web-safe colors wont always be restored to the original background color.
passing an options array works for any of the visual_effect() aliases.