Forum Moderators: open
the script can be seen in action here:
[193.109.189.1 ]
In my "scrollable" div I have a whole set of links that refresh the page when clicked (these links send variables to the url then the page refreshes). Everytime a linked is clicked the right-content changes (simulating a frameset without the frames)
There was one big problem that is almost solved now:
When the user clicked a link in the scrolldiv, the page refreshes and loses the vertical position of the div.
To solve that problem I made a function that sends the vertical position to the url and when the page refreshes, the page just has to read the url to know which position the div was.
Everything works but when the user clicks a link, the div resets itself to the initial position and then shifts to the right position.
Is there any way to prevent this "shift" or should i just go back to where I came from and use the good ol' frames?
Another thing: There's no problem whatsoever in Safari
var txt=document.createTextNode("Hi! i'm new!");
var elem=document.getElemtById(Name of your content div);
var oldTxt=elem.replaceChild(txt,elem.firstChild);
var Newdiv;
var Olddiv;
function change(newnamediv);
{Olddiv=Newdiv;
Newdiv=getElementById(newnamediv)
Olddiv.style.visibility="hidden";
Newdiv.style.visibility="visible";
}