I am having trouble getting an image to go where I want it to. There is too much code to give it all to you, so I'll give you what I think is relevant. The page is at click on Magazine Covers and move your mouse over the top magazine cover. Then, if you scroll all the way to the bottom, you'll see a larger image. I want it to be in the browser window and I thought fixed would do this. Here's what I have.
html at the bottom of the page
javascript - HideLarger will eventually be changed to none, I have it left in block so it stays and we can see what's happening. I have also tried inline instead of block
css - absolute would work perfect, if it would stay on the screen when you scroll... which is what I thought fixed was supposed to be, just like absolute except it doesn't scroll.
html at the bottom of the page
Code:
<div id="LargerProductImages" style="display: none;">
<img id="LargerProductImage">
</div>
javascript - HideLarger will eventually be changed to none, I have it left in block so it stays and we can see what's happening. I have also tried inline instead of block
Code:
function ShowLarger(ImageName) {
document.getElementById("LargerProductImages").style.display = "block";
document.getElementById("LargerProductImage").src = "/Images/Larger/" + ImageName + ".jpg";
}
function HideLarger(ImageName) {
document.getElementById("LargerProductImages").style.display = "block";
}
css - absolute would work perfect, if it would stay on the screen when you scroll... which is what I thought fixed was supposed to be, just like absolute except it doesn't scroll.
Code:
#LargerProductImages {
position: fixed;
bottom: 25 px;
right: 350 px;
}