centering scripts


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: centering scripts

  1. #1
    kathy Guest

    centering scripts


    I use Dreamweaver - Is there a way to center your site automatically to accomodate
    the browser, monitor resolution and size? Isn't there a script you can download
    to do that????

  2. #2
    Frederiek Guest

    Re: centering scripts


    If your page is made up of div layers, then there a script, that centers the
    layers in the page, available in DynamicOverlay at <http://wsabstract.com/javatutors/dynlay/index.html>.

    cya
    Frederiek


    "kathy" <kathy@sharpesites.com> wrote:
    >
    >I use Dreamweaver - Is there a way to center your site automatically to

    accomodate
    >the browser, monitor resolution and size? Isn't there a script you can

    download
    >to do that????



  3. #3
    kathy Guest

    Re: centering scripts


    Thank you for the message - I didn't see where it is - Do you know what it
    is I'm looking for?

    "Frederiek" <fourwaysstreet@chello.be> wrote:
    >
    >If your page is made up of div layers, then there a script, that centers

    the
    >layers in the page, available in DynamicOverlay at <http://wsabstract.com/javatutors/dynlay/index.html>.
    >
    >cya
    >Frederiek
    >
    >
    >"kathy" <kathy@sharpesites.com> wrote:
    >>
    >>I use Dreamweaver - Is there a way to center your site automatically to

    >accomodate
    >>the browser, monitor resolution and size? Isn't there a script you can

    >download
    >>to do that????

    >



  4. #4
    Nick Guest

    Re: centering scripts


    Hi,
    I am not sure exactly sure what you are trying to accomplish but I just recently
    ran into a Centering Issue for pop-up windows! This may help because it takes
    the screen size/resolution and centers the window in the center accordingly.
    Anyway, here it is:
    <!-- Begin
    //first determine the window width and height,
    //then Subract, Next Divide the Sum by 2 to position the window
    //in the center of the screen
    function NewWindow(mypage, myname, w, h, scroll) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
    }
    // End -->

    This works really nicely - I hope it helps..

    -Nick


    "kathy" <kathy@sharpesites.com> wrote:
    >
    >Thank you for the message - I didn't see where it is - Do you know what

    it
    >is I'm looking for?
    >
    >"Frederiek" <fourwaysstreet@chello.be> wrote:
    >>
    >>If your page is made up of div layers, then there a script, that centers

    >the
    >>layers in the page, available in DynamicOverlay at <http://wsabstract.com/javatutors/dynlay/index.html>.
    >>
    >>cya
    >>Frederiek
    >>
    >>
    >>"kathy" <kathy@sharpesites.com> wrote:
    >>>
    >>>I use Dreamweaver - Is there a way to center your site automatically to

    >>accomodate
    >>>the browser, monitor resolution and size? Isn't there a script you can

    >>download
    >>>to do that????

    >>

    >



  5. #5
    Oleg Buryak Guest

    Re: centering scripts

    Do you mean centering of a content in a browser's window or centering of
    browser's window in a display?

    --
    Oleg Buryak
    buria@perelom.com
    http://www.perelom.com ::: Offshore Web Design

    >
    > I use Dreamweaver - Is there a way to center your site automatically to

    accomodate
    > the browser, monitor resolution and size? Isn't there a script you can

    download
    > to do that????




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center