 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ross Guest
|
Posted: Wed Sep 28, 2005 12:42 am Post subject: javascript ie/ff problem |
|
|
Hi,
I have a problem with non ie browsers
<script type="text/javascript">
window.onload = function(){
var strCook = document.cookie;
if(strCook.indexOf("!~")!=0){
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS+2,intE);
document.getElementById("menu_holder_inside").scrollTop = strPos;
}
}
function SetDivPosition(){
var intY = document.getElementById("menu_holder_inside").scrollTop;
// document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}
The follwing function shou;d return a DIV to its positon before
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
|
|
| Back to top |
|
 |
commercial Guest
|
Posted: Thu Sep 29, 2005 8:01 am Post subject: Re: javascript ie/ff problem |
|
|
Don't use "~"
It will not show in other languages
or settings.
====
I dont like cookies
Does that ring a bell.
"Ross" <ross (AT) aztechost (DOT) com> wrote
| Quote: |
Hi,
I have a problem with non ie browsers
script type="text/javascript"
window.onload = function(){
var strCook = document.cookie;
if(strCook.indexOf("!~")!=0){
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS+2,intE);
document.getElementById("menu_holder_inside").scrollTop =
strPos;
}
}
function SetDivPosition(){
var intY =
document.getElementById("menu_holder_inside").scrollTop;
// document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}
The follwing function shou;d return a DIV to its positon before
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
|
|
|
| Back to top |
|
 |
Pat Martini Guest
|
Posted: Sun Oct 23, 2005 10:18 pm Post subject: Re: javascript ie/ff problem |
|
|
On Tue, 27 Sep 2005 20:42:07 -0400, Ross <ross (AT) aztechost (DOT) com> wrote:
| Quote: |
Hi,
I have a problem with non ie browsers
script type="text/javascript"
window.onload = function(){
var strCook = document.cookie;
if(strCook.indexOf("!~")!=0){
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS+2,intE);
document.getElementById("menu_holder_inside").scrollTop =
strPos;
}
}
function SetDivPosition(){
var intY =
document.getElementById("menu_holder_inside").scrollTop;
// document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}
The follwing function shou;d return a DIV to its positon before
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
|
Hello Ross. Did you resolve this issue as yet? I think it's the scrollTop
function, and can check further if you still need help here.
--
Pat Martini
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|