Locate the install directory of Flare, the default is something like: C:\Program Files\MadCap Software\MadCap Flare V5 (insert your version if you arent using v5)
Open the Webhelp \ Content \ Skin Support folder (something like this: C:\Program Files\MadCap Software\MadCap Flare V5\Flare.app\Resources\WebHelp\Content\SkinSupport)
Open the MadCapAll.js and MadCapToolbar.js files with a text editor (Notepad++ works wonders)
Search the js file for: "quick"
The MadCapAll.js file should display something like this:
Code: Select all
case "QuickSearch":
var tdQS=document.createElement("td");
var form=document.createElement("form");
var input=document.createElement("input");
tdQS.style.width="150px";
form.onsubmit=function(){QuickSearch();return false;};
input.id="quickSearchField";
input.type="text";
input.tabIndex=gTabIndex++;
input.title="Quick search text box";
input.value="Search Current Topic for...";
input.setAttribute("MadCap:title","Search Current Topic for...");
input.onfocus=function(){
var isEmpty=FMCGetAttributeBool(this,"MadCap:isEmpty",true);
if(isEmpty){
this.style.fontStyle="normal";
this.style.color="#000000";
this.value="";
this.setAttribute("MadCap:isEmpty","false");}};
input.onblur=function(){
if(this.value==""){
this.style.fontStyle="italic";
this.style.color="#aaaaaa";
var title=FMCGetAttribute(this,"MadCap:title");
this.value=title;
this.setAttribute("MadCap:isEmpty","true");}};
form.appendChild(input);
tdQS.appendChild(form);
tr.insertBefore(tdQS,td);
MakeButton(td,"Quick search","Images/QuickSearch.gif","Images/QuickSearch_over.gif","Images/QuickSearch_selected.gif",23,22,String.fromCharCode(160));
td.getElementsByTagName("div")[0].onclick=QuickSearch;
break;
Code: Select all
case "QuickSearch":
var tdQS = document.createElement( "td" );
var form = document.createElement( "form" );
var input = document.createElement( "input" );
tdQS.style.width = "150px";
form.onsubmit = function() { QuickSearch(); return false; };
input.id = "quickSearchField";
input.type = "text";
input.tabIndex = gTabIndex++;
input.title = "Quick search text box";
input.value = "Search Current Topic for...";
input.setAttribute( "MadCap:title", "Search Current Topic for..." );
input.onfocus = function()
{
var isEmpty = FMCGetAttributeBool( this, "MadCap:isEmpty", true );
if ( isEmpty )
{
this.style.fontStyle = "normal";
this.style.color = "#000000";
this.value = "";
this.setAttribute( "MadCap:isEmpty", "false" );
}
};
input.onblur = function()
{
if ( this.value == "" )
{
this.style.fontStyle = "italic";
this.style.color = "#aaaaaa";
var title = FMCGetAttribute( this, "MadCap:title" );
this.value = title;
this.setAttribute( "MadCap:isEmpty", "true" );
}
};
form.appendChild( input );
tdQS.appendChild( form );
tr.insertBefore( tdQS, td );
MakeButton( td, "Quick search", "Images/QuickSearch.gif", "Images/QuickSearch_over.gif", "Images/QuickSearch_selected.gif", 23, 22, String.fromCharCode( 160 ) );
td.getElementsByTagName( "div" )[0].onclick = QuickSearch;
break;
Code: Select all
input.value = "Search Current Topic for...";
input.setAttribute( "MadCap:title", "Search Current Topic for..." );