[thelist] javascript stumper
Joe Crawford
joe at artlung.com
Fri, 03 Dec 1999 01:41:27 -0800
2 questions:
* when does right105() get fired? is it onload?
* have you tried, at the beginning of all your scripts, setting
var main_width_variable = 0;
then instead of using return foo, you'd simply do an assignment to the
global variable.
So:
var main_width_variable = 0;
first function
---------
function right105() {
if (NS) {
main_width_variable = window.innerWidth - 105);
} else {
main_width_variable = document.body.clientWidth - 105;
}
}
second function
---------
function positionStuff() {
if(IE) {
document.all.floater.style.pixelLeft = main_width_variable
document.all.floater.style.pixelTop = 134;
}
}
There are probably a myriad of ways to do this though. The question is
in what fires what and in what order, I suppose.
HTH,
Joe
_________________________________________________________
Joe Crawford { ArtLung } _________ mailto:joe@artlung.com
Web Developer + Designer ________ http://www.artlung.com
Former Respiratory Therapist _____ San Diego . CA . USA
San Diego Web Developer? Go to http://www.websandiego.org