Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Editing whtdhtml.htm

5 views
Skip to first unread message

jop22

unread,
Apr 1, 2009, 5:09:00 AM4/1/09
to
I've been making a number of post-process changes to my WebHelp Pro output
using the advice in Rick Stone's "Skinny on Skins". One of the changes I want
to make is to add some padding down the left and across the top of the TOC
pane. So, I edited the whtdhtml.htm file to look like this:

<body topmargin="26" leftmargin="20" marginwidth="0" marginheight="0"
bgproperties="fixed" bgcolor="white" scroll="auto">

When I launch my Help system locally it works a treat, but when I publish it
to the server the changes aren't there, even though when I open whtdhtml.htm my
changes are still included.

Can anyone help me with this or suggest another way of adding padding. Also,
does anyone know how to centre the TOC entries vertically against the book and
page icons so that they appear exactly in the middle?

Thanks

MergeThis

unread,
Apr 1, 2009, 8:47:18 AM4/1/09
to
26 seems a bit heavy; 6pt for both left and top works nicely for me.

As to the vertical alignment, you'd accomplish this by adjusting some blank
lines in the icons (maintaining, of course, the transparency). To simply add a
little space between each book/topic title, you might also try another of
Rick's hints on adjusting the [i]var gsMargin=[/i] value in the whthost.js file
(I'm using 2pt for this setting). This file also needs to be saved externally,
for overwriting the one created in each Generate process.


Good luck,
Leon


jop22

unread,
Apr 1, 2009, 10:31:09 AM4/1/09
to
I've removed the mini toolbar and want plenty of "white space" between the main
toolbar and the TOC entries, but as mentioned my settings in whtdhtml.htm seem
to be overlooked by RoboEngine. I've got a few other questions about tweaking
the navigation pane so I've included some screenshots below:

http://www.videss.co.uk/tmp/img1.gif
http://www.videss.co.uk/tmp/img2.gif
http://www.videss.co.uk/tmp/img3.gif

Any help appreciated.
Jonathan

MergeThis

unread,
Apr 1, 2009, 3:45:06 PM4/1/09
to
See the attached code:

TOC
===========
In the last block in the "function writeAnItem(nIdx)" section of the
whthost.js, do you have the "absmiddle" setting as shown below?

sHTML+="href=\""+_textToHtml_nonbsp(getItemURL(nIdx))+"\"
title=\""+sName+"\"><img alt=\""+sAltString+"\" src=\""+sIcon+"\" border=0
align=\"absmiddle\">&nbsp;"+sName+"</a></nobr></p>";
return sHTML;

Index
===========
In the "function PopupMenu_Invoke()" section of the whibody.htm, try setting
the border to 0px.

var strMenu = '<TABLE STYLE="border:2px outset white;" CELLSPACING=0';

Search
===========
???

jop22

unread,
Apr 2, 2009, 4:10:42 AM4/2/09
to
Thanks for that, but the TOC setting is showing "absmiddle" and changing the
Index border style to "0px" has no effect. Even changing "absmiddle" to
"bottom" has no effect. It's almost like something's overriding these settings.

MergeThis

unread,
Apr 3, 2009, 7:34:07 AM4/3/09
to
Maybe Rick will jump in on this (now that he's done riding the ducks, or
whatever), but I don't remember anything in his document about these hints
working in the "Pro" versions (WebHelp or FlashHelp).

Maybe you could try just generating a standard WebHelp output and publishing
to a regular server. Does that work?


Good luck,
Leon


Captiv8r

unread,
Apr 3, 2009, 8:11:06 AM4/3/09
to
[b]Quack Quack Quack!!!![/b]

Hi all

Leon is spot on. I'm not sure if *ANY* of the information in the Skinny on
Skins would apply to a "Pro" output.

Pro outputs are a totally different beast. I would compare the instructions in
the Skinny file to something like an automotive manual. Perhaps you have a Ford
pickup truck. The manual describes repairing the gasoline engine. But yours is
diesel powered.

Cheers... Rick :smile;

0 new messages