Script Link Formatting

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
dwag
Sr. Propeller Head
Posts: 158
Joined: Tue Feb 05, 2008 2:36 pm

Script Link Formatting

Post by dwag »

Thought I'd take one last shot at this: I've created a master page that contains a javascript link but can't figure out how to change the font size or color of the link through the stylesheet. It must be something obvious but obviously too obvious for me. I've posted the master page code below, in the hope that someone out there might show me the way. We're using Flare v. 5. Thanks.

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:lastBlockDepth="2" MadCap:lastHeight="183" MadCap:lastWidth="496">
<head>
</head>
<body>
<MadCap:breadcrumbsProxy />
<MadCap:topicToolbarProxy class="" style="mc-topic-toolbar-items: ;" />
<MadCap:bodyProxy />
<MadCap:miniTocProxy />
<p>
<script type="text/javascript">/*<![CDATA[*/var docfdbk_a="mail"
var docfdbk_b="to:"
var docfdbk_c="joesmith"
var docfdbk_d="@"
var docfdbk_e="joesmithcompany"
var docfdbk_f=".com"
var docfdbk_g="?subject="
document.write ("<a href='"+ docfdbk_a + docfdbk_b + docfdbk_c + docfdbk_d + docfdbk_e + docfdbk_f + docfdbk_g + document.title +"'>The link is here.</a>");/*]]>*/</script>
</p>
</body>
</html>
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Script Link Formatting

Post by LTinker68 »

Ok, I got it to work. I was having problems with putting the hyperlink class at the end of the <a> tag, so I put it in the front before the href attribute, and it's working now. So set the hyperlink code in the masterpage to the following (only showing that one line, not the whole page code):

Code: Select all

document.write ("<a class='FeedbackLink' href='"+ docfdbk_a + docfdbk_b + docfdbk_c + docfdbk_d + docfdbk_e + docfdbk_f + docfdbk_g + document.title +"'>The link is here.</a>");/*]]>*/</script>
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
dwag
Sr. Propeller Head
Posts: 158
Joined: Tue Feb 05, 2008 2:36 pm

Re: Script Link Formatting

Post by dwag »

Thanks for taking the time to do that. Sorry, but something remains amiss, and I'm at a loss. Instead of the link color selected in the stylesheet, the output is showing the visited color full time (and yes, I formatted in the prescribed order). Also, when trying to select the script on the master page so that I can edit the style class, the XML Editor only is giving me the script option at the top; I have to open the stylesheet from the Resources folder to format the <a> style.
Post Reply