Auto-centering Popup Window Rumi, July 8, 2011July 8, 2011 Step 1: Insert the below inside the <head> section of your page: <script language="javascript"> /* Auto center window script- Eric King (http://redrival.com/eak/index.shtml) Permission granted to Dynamic Drive to feature script in archive For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com */ var win = null; function NewWindow(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) } </script> Step 2: Now, for each involved link, add the part in red to its <a> tag, as follows: <a href="http://wsabstract.com" onclick="NewWindow(this.href,'name','400','400','yes');return false">Website Abstraction</a> Src: http://www.dynamicdrive.com/dynamicindex8/autocenter.htm Related Scripts
search.bdinside.net post code October 14, 2008October 14, 2008 Guess the following code can be put into any page and activate the search engine! Related Read More
Archiving a large backup across multiple discs on Linux September 6, 2019 We have two options (as we obviously don’t want to delete our data!) Use a different backup medium Split the backup across multiple volumes Sometimes the former just isn’t appropriate, as much because of the cost of harddrives vs Optical Media (i.e. CD’s/DVD’s). This short tutorial will explain how to… Read More
Vertical CSS menu August 16, 2009 In this tutorial you will learn the basics of creating simple vertical menus for your website using only HTML /and CSS. Our menus are actually HTML unordered list elements <ul> styled using CSS, giving them background color, margin, padding and other CSS attributives. Related Read More