rupesh has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
When you see the top right corner of this page, you see the text PerlMonks (lets assume its just plain text). Well, I have a webpage, and what I want is that even when i scroll down the page the text 'PerlMonks' should also scroll down autotmatically (and vice versa - when i scroll up).
That is at any given point of time, even if the page is very long, the text PerlMonks is at the top right corner of the page.
Can this be implemented in Perl-CGI?
Thanks for your time...


we're born with our eyes closed and our mouths wide open, and we spend our entire life trying to rectify that mistake of nature. - anonymous.

Edit by tye, close I tag in sig

Replies are listed 'Best First'.
Re: CGI Scroll Question
by LameNerd (Hermit) on Aug 11, 2003 at 04:29 UTC
    You should check out w3schools ... lots of good info.
      Hey LameNerd, Thanks!
      Just the script that I was looking for!

      we're born with our eyes closed and our mouths wide open, and we spend our entire life trying to rectify that mistake of nature. - anonymous.e
Re: CGI Scroll Question
by BUU (Prior) on Aug 11, 2003 at 04:07 UTC
    Nope. The only thing that could possibly do that (well, relatively easily) would be javascript. A perl program could print the javascript but the browser would still need to exceute it. And since this isn't a javascript site, I'll leave you to research it on your own.
      This can be done with CSS actually. Using Javascript is possible but much less than optimal..

      Makeshifts last the longest.

        Hrm. I totally forgot about CSS. Does any browser actually support the position:fixed attribute?
      or *ghasp* frames. but this does have nothing to do with perl.

      -Waswas
        Or even less ghastly, CSS. Just set position: fixed.