Hi Kim,
I think the most efficient way is to output a lower-case "g" in the
Webdings font to get a solid block character glyph. You can use the
<color> tag (either <color name=xxx>, <color rgb=xxx>, or <color
cmyk=xxxx>) to modify the color of the block. For example:
var TitleToColorMap =
{
"staff" : "grey",
"guest" : "blue",
"speaker" : "green",
// etc.
};
var ColorName = TitleToColorMap[ToLower(Field("Title"))];
if (!ColorName)
ColorName = "White";
return '<color name="' + ColorName + '">' +
'<f name="Webdings">g</f></color>';
Then you can insert the variable for this rule into a text frame, behind
your other text frame, to make it effectively be the background for the
actual text. You can either manually size and/or repeat the variable as
needed to fill the frame, or use Copyfit to make it size with the frame
automatically.
As far as JavaScript references go, the best resource is right from the
horse's mouth:
http://developer.mozilla.org/en/docs/JavaScript
The Core JavaScript Guide and Core JavaScript Reference are both
indispensable resources. The "re-introduction to JavaScript" is an
excellent starting point if you already have some familiarity with
scripting.
For beginners, there are a lot of resources available. Search the
Internet for "JavaScript beginners tutorial". Or look at some books in
the computer section of your bookstore.
The comp.lang.javascript newsgroup can also be a great resource for
questions about advanced topics like regular expressions:
http://groups.google.com/group/comp.lang.javascript
However, be aware that many of the books, online tutorials, and much of
the discussion on the newsgroup is about web-specific code, not just the
"core" language, and some versions of JavaScript may work a bit
differently than our 1.5 version.
Printable also offers some excellent training in JavaScript for
FusionPro. And of course, this forum and the Knowledge Base can be
great resources.
Dan
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--