PDA

View Full Version : Happy user



davefowle
04-03-2008, 01:44 PM
I am using your "javascript" platform for the help-pages of my own product, where the html pages are displayed inside an "embedded" ms web-browser control. I did have some trouble with the "highlight.js" file, because my product hides the browser's own scroll-bars, but I was able to get round this by getting the script to execute:

window.external.zoomhipos = y ;

Of course, I had to add an IDispatch interface, to implement the "external" property "zoomhipos" which was more a question of research than effort. If anyone is interested in this solution, just email me for examples.

Thanks for a great product!

Ray
04-03-2008, 11:36 PM
Hi Dave, glad to hear you're happy with the product.

I'm not too sure how hiding the browser's scrollbar would affect the highlight script. But if it has anything to do with the scrolling operation (that is, the highlight script attempts to scroll to the first occurance of the matched word), you can disable this operation (and only highlight) by changing this property near the top of the script:



// If you wish to disable the jump functionality which scrolls the browser
// to the first occurance of the matched word, change this setting to false
var JumpToFirstOccurance = true;