sowmithrii Posted December 19, 2007 Share Posted December 19, 2007 Hi, I have having a small problem... . In my site, i wanted to display ads vertically at the right end of the screen. i have succeeded that. but my problem is they are static and are not visible when the page is too lengthy and the user is viewing the top content. i want my ads to be scrolled along when the user scroll scroll the page and should always be visible to the user. i saw this implemented in many sites.. but dont know the technique. can any one help me with the technique. and some piece of example code. Regards sowmithrii Quote Link to comment Share on other sites More sharing options...
hostfreak Posted December 19, 2007 Share Posted December 19, 2007 I think what your looking for is the CSS Position property, fixed. Take a look at it here: http://w3schools.com/css/css_positioning.asp Quote Link to comment Share on other sites More sharing options...
sowmithrii Posted December 19, 2007 Author Share Posted December 19, 2007 i saw the link man, but that is not what i am trying for. i want my ads to scroll down if the page scrolls down and scroll up if the page scrolls up. means the ad should be on the screen all the time and at the vertical centre of the screen on the right side. i dont think this is a css problem.. some part of this can be achieved with <marquee> tag.. but thats not the thing which i wanted Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted December 19, 2007 Share Posted December 19, 2007 That is not a PHP problem, see below Quote Link to comment Share on other sites More sharing options...
hostfreak Posted December 19, 2007 Share Posted December 19, 2007 It doesn't need to be done in javascript, unless your trying to achieve some sort of special effect. Check out: http://www.quirksmode.org/css/position.html and select "fixed" from the drop down to see an example. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.