7 Replies Latest reply on Feb 12, 2008 8:13 AM by CeeEllBee

    Text-only Popups

    CeeEllBee
      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.
        • 1. Re: Text-only Popups
          RoboColum(n) Level 5
          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.
          • 2. Re: Text-only Popups
            CeeEllBee Level 1
            Okay. Thanks.
            • 3. Re: Text-only Popups
              HKabaker Level 2
              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
              • 4. Re: Text-only Popups
                CeeEllBee Level 1
                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.
                • 5. Re: Text-only Popups
                  Captiv8r Adobe Community Professional & MVP
                  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
                  • 6. Re: Text-only Popups
                    HKabaker Level 2
                    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

                    • 7. Re: Text-only Popups
                      CeeEllBee Level 1
                      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.