Divs with position: absolute

Hi everyone, My domain name is italiarealestate.net and the URL is http://www.italiarealestate.net/english/test.html As you will see, on the right hand side of the page, there is a “contact us” button created with position: absolute. Ideally, I would like the button to be completely fixed so that when the page scrolls down the button stays in the middle without moving (as you will see, it is slightly shaking at present). Below follows the code: if (!document.layers) document.write(‘ ‘) CONTACT US   /* Floating Menu script- Roy Whittle ( http://www.javascript-fx.com/ ) Script featured on/available at http://www.dynamicdrive.com/ This notice must stay intact for use */ //Enter “frombottom” or “fromtop” var verticalpos=”frombottom” if (!document.layers) document.write(‘ ‘) function JSFX_FloatTopDiv() { var startX = 3, startY = 400; var ns = (navigator.appName.indexOf(“Netscape”) != -1); var d = document; function ml(id) { var el=d.getElementById?d.getElementById(id):d.all?d.a ll[id]:d.layers[id]; if(d.layers)el.style=el; el.sP=function(x,y){this.style.right=x;this.style.

Link:
Divs with position: absolute

This entry was posted in BlueVoda, Hosting, php, VodaHost and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply