Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 22nd, 2012, 05:05 PM
WBG-guy WBG-guy is offline
Junior Community Member
 
Join Date: Sep 2010
Location: Portland, Oregon
Posts: 23
Cool PhoneTabRule need different size...

I'm still learning javascript so bare with me. I'm using the phone tab rule and I have it working except I can't seem to figure out how to reduce the font size of the tabbed "PHONE". It needs to be two points smaller than the default size.

Here's my rule...

if (Field("phone1") == "")
return "";
else
return Rule("phonetab") + <b><color name="WHITE"><f name="NewsGothicSTD">OFFICE</f><t></color></b>';

Thanks for you help!
Reply With Quote
  #2  
Old October 23rd, 2012, 06:38 AM
esmith's Avatar
esmith esmith is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Charlotte, NC
Posts: 870
Default Re: PhoneTabRule need different size...

The rule you posted does not include font size so either the size is defined in the contents of the phonetab rule (which you would need to post) or directly in your variable frame. Assuming "PHONE" appears in Rule("phonetab") similarly to the way "OFFICE" appears in the rule above, you would need to replace PHONE with
Code:
<z newsize='#'>PHONE</z>
where # is the font size you want it to appear as. Also note that as written in your first post, there is a missing quote around your tagged text in the 4th line - I see an end quote but nothing in the beginning.
__________________
Eric Smith
Content Developer
Classic
FP 9.3.6, MAC OSX 10.9.4, Acrobat 11.0.09
Reply With Quote
  #3  
Old October 23rd, 2012, 01:59 PM
WBG-guy WBG-guy is offline
Junior Community Member
 
Join Date: Sep 2010
Location: Portland, Oregon
Posts: 23
Default Re: PhoneTabRule need different size...

That worked perfectly. Thanks again for your help!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.