Dec 21, 2000 #1 Guest_imported New member Joined Jan 1, 1970 Messages 0 How do you move Divisions when you scroll up/downa page so that they are always at the top of the page? Thanks Matt
How do you move Divisions when you scroll up/downa page so that they are always at the top of the page? Thanks Matt
Dec 21, 2000 1 #2 luciddream Programmer Joined Nov 8, 2000 Messages 712 Location US function fut() { div_id = "thing"; div_id = eval(div_id); div_id.style.display="none"; div_id.style.posTop = document.body.scrollTop + 5; div_id.style.posLeft = document.body.offsetWidth - 170; setTimeout("div_id.style.display='inline';", 500); } window.onscroll=fut; </script> <div id="thing" style="position:absolute;background-color:#dbdbdb;width:150;"></div> works in ie. Upvote 0 Downvote
function fut() { div_id = "thing"; div_id = eval(div_id); div_id.style.display="none"; div_id.style.posTop = document.body.scrollTop + 5; div_id.style.posLeft = document.body.offsetWidth - 170; setTimeout("div_id.style.display='inline';", 500); } window.onscroll=fut; </script> <div id="thing" style="position:absolute;background-color:#dbdbdb;width:150;"></div> works in ie.
Dec 21, 2000 #3 tanderso IS-IT--Management Joined Aug 9, 2000 Messages 981 Location US divname.onscroll=moveTo(your_position) or something along those lines. Sincerely, Tom Anderson CEO, Order amid Chaos, Inc. http://www.oac-design.com Upvote 0 Downvote
divname.onscroll=moveTo(your_position) or something along those lines. Sincerely, Tom Anderson CEO, Order amid Chaos, Inc. http://www.oac-design.com
Dec 21, 2000 #4 tanderso IS-IT--Management Joined Aug 9, 2000 Messages 981 Location US faq215-348 Sincerely, Tom Anderson CEO, Order amid Chaos, Inc. http://www.oac-design.com Upvote 0 Downvote