Hello.
I have made a trick to go into a internal location in
a "scrool-window" widget. It is very simple. In the
call to the function "windowLoad" of the dynAPi core
(in scrollwindow.js), another parameter sets the
location you want to move to.
 
The function after modified is this:
 
function ScrollWindowLoad(dir,pos) {
 if (dir != this.url) {
 this.historyLoc+=1
 this.historyLen=this.historyLoc
 this.history[this.historyLen]=dir
 }
 this.reload(0)
 this.> }
 
The content page have internal links like this:
 
<a HREF="#" >SECTION 1</a>

The number pased as parameter is the relative position
of the content layer.
 
You can see this in my attached example (test.htm).
 
This is very usefull in large content page, but it is
hard to calculate all the positions numbers of the
internal links. And for each modification in the
content, this internal links changes too.
 
In the example, i have placed one "information box"
(only in IE), displaying the relative position of the
content layer. This is what i use for calculate them.
 
I hope somebody can improve this, because is my first
solution to a problem that i am trying to solve for a
long time, but this is a very poor solution.
Any ideas? Please! 
Thanks.
 
Joaquin S.

test.zip

Reply via email to