Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Text-only Popups

Guest
Feb 11, 2008 Feb 11, 2008
Hello,
Is there are any way to remove the dropshadow that appears behind text-only popups? I am on RH7. I don't recall the dropshadow in previous RH versions...but that could me!
Thanks.
712
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 11, 2008 Feb 11, 2008
Unfortunately I don't think there is a lot you can do about that shadow. It has certainly been around since RHX5 and maybe before that.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 11, 2008 Feb 11, 2008
Okay. Thanks.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 11, 2008 Feb 11, 2008
Colum is nearly always right.

However, you should look at the file ehlpdhtm.js.

There are more than 50 references to BSSCPopup, which is the function that handles text-only popups. Scroll down to this line:

/// Section Begin - Popup (JavaScript 1.0)


A few lines below that you'll see a reference to dropshadow. I don't have time to explore this further today, but I'm sure somewhere along the way you can modify or delete the shadow. The changes will affect all text-only popups in the output.

Start with ehlpdhtml.js in the output directory. Fiddle with it there as much as you like.

If you settle on something you want to make permanent, for all future WebHelp ouput, change dhtml.js here:

Program Files/Adobe/Adobe RoboHelp 7/RoboHTML/

Otherwise, you must modify the output file every time you generate WebHelp.

(As usual, save a copy of the original file, make backups, I can't guarantee results, this is advice only, etc. etc.)

Plese report back.

Harvey
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 12, 2008 Feb 12, 2008
Hi HKabaker,
Thanks so much for your help. I was able to remove the dropshadow from t-o popups by editing the ehlpdhtm.js file.
In ///Section Begin - Popup (JavaScript 1.0), I found the following line in the // Local functions subsection
strPopupDiv += "<DIV ID='" + getPopupShadowID(nIndex) + "' STYLE=\"position:absolute;top:0; left:0; background-color:#C0C0C0;\"></DIV>";

I simply removed the background color attribute from the line to remove the dropshadow box.
It's a beautiful thing. Thanks.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2008 Feb 12, 2008
Hi ConTextCB

Just a curiosity question here. What is (was) it about the drop shadow that you didn't like?

I ask because I've used RoboHelp for years and never gave it a second thought.

Cheers... Rick
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 12, 2008 Feb 12, 2008
ConTextCB,

You say

I simply removed the background color attribute from the line to remove the dropshadow box.

strPopupDiv += "<DIV ID='" + getPopupShadowID(nIndex) + "' STYLE=\"position:absolute;top:0; left:0; background-color:#C0C0C0;\"></DIV>";

I simply removed the background color attribute from the line to remove the dropshadow box.

So it looks like this?
strPopupDiv += "<DIV ID='" + getPopupShadowID(nIndex) + "' STYLE=\"position:absolute;top:0; left:0; \"></DIV>";


How does removing the background color also remove the shadow? Is it because the shadow would use the background color if there were any?

By the way, congratulations. Thanks for posting back.

Harvey

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 12, 2008 Feb 12, 2008
LATEST
Hi Harvey,
I am by no means a Javascript expert...but I think it works because background color is a specific attribute for dropshadow (not for the entire popup).
Yes, the revised code line looks like:
strPopupDiv += "<DIV ID='" + getPopupShadowID(nIndex) + "' STYLE=\"position:absolute;top:0; left:0; \"></DIV>";
Again, thanks for all your help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp