Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > repositioning panel inside page

Thread Tools

repositioning panel inside page

Paul Fi
Posts: n/a
when i scroll up and down a page i want the panel inside to move as well
so that it doesnt disppear when scrolling the page:

now i have this javascript code, that does that, but it's not so smooth:

prevScroll = 0;

function scroll(){

var displayFrame = document.all("ifrmDisplay");
amountToScroll = window.document.body.scrollTop - prevScroll;
document.getElementById("pnlControlsContainer").st =
parseInt(document.getElementById("pnlControlsConta iner") +
document.getElementById("imgShopLogo") =
;//parseInt(document.getElementById("imgShopLogo").st +
prevScroll = window.document.body.scrollTop;

now from the code, the panel's id is pnlControlsContainer, and im
changing the top attribute of the panel so i can make that panel move
with page scroll when the eventhandler (scroll()) is called. But it
doesnt produce smooth results as the top of the panel looks stammer or
it keeps bouncing up and down like when im scrolling the page.

if you guys know of a smoother result, i will appreciate it.

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repositioning Google Toolbar Greg Raizk Firefox 0 02-08-2006 06:11 AM
Delete a panel inside a panel (2) HS1 Java 4 12-08-2004 02:48 AM
Delete a panel inside a panel HS1 Java 3 12-07-2004 10:50 PM
Re: Image Repositioning in ASP.NET Vidar Petursson ASP .Net 0 06-04-2004 10:02 AM
Repositioning controls on a web page pete ASP .Net Web Controls 1 07-30-2003 01:37 AM