Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

JUMP TO HIGHLIGHT > marks words correctly but scrolls all the way down ->

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • JUMP TO HIGHLIGHT > marks words correctly but scrolls all the way down ->

    Basicly what the topic says;
    marks words correctly but scrolls all the way down

    I have downloaded and using the latest version.
    Then I put in the <script type="text/javascript" src="highlight.js"></script> inside the </head>

    I use the <body onLoad="highlight();"> code.

    The only alteration I did was to put the .CSS but inside my own .CSS file.

    I do a search and it marks the words all well and nice with the yellow and it takes more than one if I search for a word that is writtin more than once at the same page, BUT ...
    As soon as I click on the searchresult link I am taken to the correct page, but it scrolls by the word/s and straight to the bottom of the page.

    Ideas and theories?
    I use the enterprise version if that makes any difference?

    [EDIT]
    Just tried the <script type="text/javascript">highlight();</script> after the </body> , but no change, still same issue.


    [EDIT2]
    Sorry ...
    Might add that I do not have any other scripts or body function and pages are written in basic html aka .html files

  • #2
    Did you try with different browsers? Which browser are you using?
    Maybe the first instance of the search word is near the bottom of the page?
    What is the URL for the page and the search word you are using?
    Might also have something do do with the layout of your page. But to know without seeing the page.

    Comment

    Working...
    X