Forum Moderators: open

Message Too Old, No Replies

Scrolling of Image to Position

Scrolling of Image to Position

         

callingrohit

12:14 am on Aug 30, 2005 (gmt 0)

10+ Year Member



Hi everyone,

I'm a newbie to this forum & javascripting.

I would like to know if its possible to scroll the image up/down depending upon whether the browser is scrolled up/down.

If yes, can someone help me understand how to do this.

Regards
Vivek

callingrohit

9:36 am on Aug 31, 2005 (gmt 0)

10+ Year Member



Can someone please help me get through this problem?

regards
vivek

DrDoc

6:26 pm on Sep 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [WebmasterWorld.com]

You should consider using the CSS property position:fixed.
That, of course, does not work in IE ... but you can always use Dean Edwards' IE7 patch.

callingrohit

7:30 am on Sep 4, 2005 (gmt 0)

10+ Year Member



Sorry for the late reply.

I don't want to use CSS for this. I would like to use a script for that....

do you know any?

cheers

DrDoc

8:32 am on Sep 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IE7 is a script ...
And, no I don't.

Just out of curiosiy -- why would you not want to use CSS? When there's something readily available, and when there's a simple solution ... why not use it?

I'm sure there are scripts out there that can do what you want. In fact, just go to any page hosted by geocities and the like, and you will find one.

Or, write your own ... Use the body onscroll event, and then reposition the image (which will probably be done using CSS properties, btw) :)

callingrohit

9:36 am on Sep 7, 2005 (gmt 0)

10+ Year Member



Hi DrDoc,

I wanna use javascript as I'm in the learning phase and i'm trying to learn a few things in java.

Thats the reason I don't wanna use CSS.

cheers
Vivek