pankaj.ghadge Posted September 15, 2008 Share Posted September 15, 2008 some websites shows the advertising on right hand site, if the page is scrollable, that image also comes down when we scroll the page down & when scroll the page up that image comes upside.That means that image does not get disappear when we scroll the page. how to do this please tell me........................... Link to comment Share on other sites More sharing options...
Kingy Posted September 15, 2008 Share Posted September 15, 2008 Use the CSS position: fixed instead of javascript, whatever you put will scroll with your page. Link to comment Share on other sites More sharing options...
pankaj.ghadge Posted September 15, 2008 Author Share Posted September 15, 2008 can u explain me with example............................. Link to comment Share on other sites More sharing options...
Kingy Posted September 15, 2008 Share Posted September 15, 2008 Go to here: http://www.quirksmode.org/css/position.htmlThere is a drop down menu, select fixed, you'll see that you can scroll up and down the page with that div box moving with it.What are you trying to get to move? Do you have some work so far you can show us? Link to comment Share on other sites More sharing options...
pankaj.ghadge Posted September 15, 2008 Author Share Posted September 15, 2008 if it is possible refer this code. ..........In this code they have created a dynamic window......when we minimize d window that appear on the left hand side.......... and when we scroll the page.........that minimized window goes down to d page..please COPY d below URL and download this zip file and tell me d solution ..........http://www.dynamicdrive.com/dynamicindex8/...dhtmlwindow.zip thanks in advance ......................... Link to comment Share on other sites More sharing options...
Kingy Posted September 15, 2008 Share Posted September 15, 2008 Right so what you're trying to build is like the page in your example where you can move elements about but when you scroll they still stay fixed and don't go away right?Also you're building it up in the same was as them with a lot of javascript? From this link http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow.htm I see it'll be a bit trickier because natural positioning of their div is absolute, not fixed. Link to comment Share on other sites More sharing options...
Jesdisciple Posted September 15, 2008 Share Posted September 15, 2008 Change line #2 in dhtmlwindow.css to this (as Kingy said): position: fixed; I think I see some other requested modifications, but I'm not sure... Clarification, please?Note also that... This script is now defunct! You should use the new, much more versatile replacement script, DHTML Window widget instead. This page is simply kept for your reference. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.