No, and only one DOCTYPE, html, head, and title tag allowed per page. What you have there is style, not a container. Even if you were to determine the proper selector for the script generated container, it is doubtful that you could override its script generated positioning via style.
What I suggested, and still do, is to get a clean version of the script working on the page. Use only one copy of the script. It would be a plus if the page validates, but at the very least avoid having duplicates of tags that are for once only use. I think the body tag is the only other one like that.
Take your best shot at that, and then I'll have a look at it. The container is in the script and its top and left are set here:
Code:
with(dv.parentDV.style) {
width = mid["width"] - (2*borderDV + 2*spaceDV);
height = mid["height"] - (2*borderDV + 2*spaceDV);
top = mid["top"] + borderDV + spaceDV;
left = mid["left"] + borderDV + spaceDV;
visibility = "visible";
}
I remember working on this script before a few times, it is sort of popular. It won't work in many browsers if the page has a valid DOCTYPE because dimensions and positions are given as numbers that represent pixel units, not as actual pixel units. Unless you need the script's ability to resize an image to available page/window size, you would be better off with some other script. If you are moving the image around, I doubt that the resizing routines would be of much use anyway.
For more discussion of this script, see:
http://www.dynamicdrive.com/forums/s...ad.php?t=23228
Bookmarks