C
Clemenza
Hello,
I use the following javascript code, which works well in IE and Opera,
but doesn't work with Firefox and Mozilla.
I always get an error "doc is not defined" when try to run code
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
Before I setup the doc variable as this:
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}
Any idea?
Thanks!
I use the following javascript code, which works well in IE and Opera,
but doesn't work with Firefox and Mozilla.
I always get an error "doc is not defined" when try to run code
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
Before I setup the doc variable as this:
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}
Any idea?
Thanks!