Re: Scrolling frames

[ Follow Ups ] [ Post Followup ] [ Palview Developers Forum ]
Posted by Andy Templeton on December 20, 19102 at 20:00:01:

In Reply to: Scrolling frames posted by Tony Kosten on December 20, 19102 at 00:13:35:

Hi Tony,

Actually, I had included the scrollIntoView() function in the beta of p3 but removed it because I didn't much care for the way it worked. I suppose I could add the line back into the JS file and comment it out so that anyone who wanted to use it could just uncomment it. Anyway, here is the function that needs to be changed and it includes the scrollIntoView():

function HiMv(g)
{
if(!ns4){
Gmv2lk(g);
if(lk==0)
lk=jm[g]-1;
if(lk==pm[g]) return;
bs=gdc.links[lk].style.backgroundColor;
gdc.links[lk].style.backgroundColor=hclr;
gdc.links[lk].scrollIntoView(); // you need to add this
if(pm[g])
gdc.links[pm[g]].style.backgroundColor=bs;
pm[g]=lk;
}
}

Hope this helps.

Andy Templeton

Follow Ups:
Post a Followup

Name:   
Subject:

Comments:

Optional Link URL:

Link Title:

[ Follow Ups ] [ Post Followup ] [ Palview Developers Forum ]