I knew someone would ask!
javascript Code:
function SendTo(id,Send)
{
var Element = document.getElementById(id);
if(Send == "up"){
var LayerIndex = Element.style.zIndex;
LayerIndex++;
}
if(Send == "down"){
var LayerIndex = Element.style.zIndex;
LayerIndex = LayerIndex - 1;
}
Element.style.zIndex = LayerIndex;
}
You will notice that I use a very strange way of decreasing as far as C++ programmers are concerned "LayerIndex = LayerIndex - 1;" I needed to write it like this because the W3C validator came across "LayerIndex --;" and highlighted the "--" as a bad comment! ...go figure?!
No matter how much I click the bringforward or sendback the layering doesnt change in safari. If I click the bringforward on picture1 ten times then the z-index of this should be 11.
Thanks
Dal.