Webmaster Computer Resources Help And Learn To Earn Ideas!
For example:
#Layer1{ width: 0px; position: absolute; z-index: 0; left:392px; top:182px; }
Rather than the integers “392” and “182” I would like to use the variables “Left” and “Top”.
Any ideas?
Comments (1)
Use Javascript!
// make sure you’ve defined your Top and Left properties already var lyr = document.getElementById(‘Layer1’) lyr.style.left = Left + ‘px’ lyr.style.top = Top + ‘px’
You must be logged in to post a comment.
Welcome to WebmasterTechs.com, your source for great webmaster resources and tips! Enjoy the site!
October 18th, 2006 at 1:13 am
Use Javascript!
// make sure you’ve defined your Top and Left properties already
var lyr = document.getElementById(‘Layer1’)
lyr.style.left = Left + ‘px’
lyr.style.top = Top + ‘px’