Set startposition of a "bigger than screen site"

Hi!
Im doing a site that has a width of 4000 pix and i want to scroll with anchors from the middle to left or right. But where is the option to set the start position of a site?
It always starts from the top left corner. But I wnt to start from the middle. I have an anchor that I can click for scrolling to the middle of the site but is it possible to activate that anchor when loading the site?
Thanks a lot.

I haven't tried this but you could maybe use a redirect when the page loads to go directly to that anchor ....
Add this to the head section of your page in the Page Properties:
<meta http-equiv="refresh" content="0; url=http://example.com/index.html#anchor" />
Replaces the url with your own of course. Again, not sure if it will work in your case but you can try it. Other than that there is no way to set a default anchor so it would not be able to be done with just the domain name.

Similar Messages

  • Make JFrame bigger than screen size

    I have a JFrame which has several components. I need to print all the contents of this JFrame, but to do that I need to be able to make the JFrame bigger than the screen's resolution.
    When I change the size of my JFrame to anything bigger than the screens resolution it will just resize to the maximum resolution of my screen
    I tried with jFrame.getToolkit().setDynamicLayout(false); but it didn't seem have any effect
    This is the code I'm using for this:
    Some help would be appreciated!
    private void printFIButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
            // prints pay slip cards
            JFrame FIFrame2 = new JFrame();
            FIFrame2.setLayout(null);
            FIFrame2.setResizable(false);
            FIFrame2.getToolkit().setDynamicLayout(false);
            FIFrame2.setSize(594, 280*numPrintFI);
            this.incrementWeeks(cal, 2);
            int FIcount = 0;
            String line ="";
            String str ="";
            //sets up arrays to store swing components
            JPanel[] fip = new JPanel[numPrintFI];
            JTextArea[] fit = new JTextArea[numPrintFI];
            JLabel[] filbl1 = new JLabel[numPrintFI];
            JLabel[] filbl2 = new JLabel[numPrintFI];
            JLabel[] filbl3 = new JLabel[numPrintFI];
            //creates a font
            Font font = new Font("Pik", 0, 26);
            //loop creates the components needed for the pay slip cards
            for(int i = 0;i<numPrintFI;i++){
                BufferedReader in = null;
                try {
                    in = new BufferedReader(new FileReader("c:\\misc.txt"));
                line = in.readLine();
                FIcount = Integer.parseInt(line);
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(CustomerIndexGUI.class.getName()).log(Level.SEVERE, null, ex);
                }catch(IOException e){
                    System.out.println("Something went wrong");
                str="";
                fip[i] = new BackgroundPanel();
                fip.setLayout( null );
    Insets insets = FIFrame2.getInsets();
    fip[i].setSize(594, 272);
    fip[i].setLocation(0 + insets.left, i*272 + insets.top);
    insets = fip[i].getInsets();
    //address field
    fit[i] = new JTextArea();
    fip[i].add(fit[i]);
    fit[i].setSize(230,80);
    fit[i].setLocation(10+insets.left,67+insets.top);
    fit[i].setText(customers[(int)printFI[i].getCustnumber()-1].getAddressee().getName().getFirstName() +
    " " + customers[(int)printFI[i].getCustnumber()-1].getAddressee().getName().getSecondName() +
    "\n" + customers[(int)printFI[i].getCustnumber()-1].getAddressee().getAddress() +
    "\n" + customers[(int)printFI[i].getCustnumber()-1].getAddressee().getPostCode());
    //left price label
    filbl1[i] = new JLabel();
    fip[i].add(filbl1[i]);
    filbl1[i].setLocation(103+insets.left,203+insets.top);
    filbl1[i].setSize(115,20);
    filbl1[i].setFont(font);
    filbl1[i].setText(Integer.toString(printFI[i].getPrice())+" 00");
    //date and price label
    filbl2[i] = new JLabel();
    fip[i].add(filbl2[i]);
    filbl2[i].setSize(370,20);
    filbl2[i].setFont(font);
    filbl2[i].setLocation(233+insets.left,203+insets.top);
    filbl2[i].setText(format.format(cal.getTime())+" "+
    Integer.toString(printFI[i].getPrice())+" 00");
    //botom line on pay slip label
    filbl3[i] = new JLabel();
    fip[i].add(filbl3[i]);
    filbl3[i].setSize(540,20);
    filbl3[i].setLocation(10+insets.left,240+insets.top);
    for(int q=0;;q++){
    if((str.length()+line.length())==15){
    break;
    str+="0";
    str+=line;
    String str2 = "+71<"+str+" +87830861< "+
    str;
    filbl3[i].setText(str2);
    FIcount++;
    String str3 = Integer.toString(FIcount);
    try {
    BufferedWriter bw = new BufferedWriter(new FileWriter("c:\\misc.txt", false));
    bw.write(str3);
    bw.flush();
    bw.close();
    } catch (IOException ex) {
    Logger.getLogger(CustomerIndexGUI.class.getName()).log(Level.SEVERE, null, ex);
    FIFrame2.getContentPane().add(fip[i]);
    FIFrame2.validate();
    FIFrame2.setVisible(true);
    System.out.println("height fiframe2: " + FIFrame2.getHeight());
    PrintUtilities pu = new PrintUtilities(FIFrame2);
    pu.printComponent(FIFrame2);
    this.incrementWeeks(cal, -2);

    Okay I just tried what you said and it doesn't work unfortunately. It will print the whole JScrollPane (e.g. the the scroll bars), but whatever components are on the JScrollPane outside of the screen will not be printed.
    This is the code I used to test it:
    package javaapplication3;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import javax.swing.*;
    * @author Mick
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
           JFrame frame= new JFrame("test frame");
            JPanel panel= new JPanel();
            JLabel label= new JLabel("test");
            JLabel label2= new JLabel("test2");
            panel.add(label);
            panel.add(label2);
            label.setBounds(400, 1400, 60, 20);
            label2.setBounds(10, 10, 100, 100);
            panel.setPreferredSize(new Dimension(500, 1500));
            panel.setLayout(null);
            JScrollPane sp= new JScrollPane(panel);
            frame.getContentPane().add(sp, BorderLayout.CENTER);
            frame.pack();
            frame.setVisible(true);
            PrintUtilities pu = new PrintUtilities(sp);
            pu.printComponent(sp);
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    import javax.print.attribute.*;
    public class PrintUtilities implements Printable {
      private Component componentToBePrinted;
      private Paper paper = new Paper ();
      private PageFormat pageFormat = new PageFormat();
      public static void printComponent(Component c) {
        new PrintUtilities(c).print();
      public PrintUtilities(Component componentToBePrinted) {
        this.componentToBePrinted = componentToBePrinted;
        paper.setSize(594.936, 841.536);
        paper.setImageableArea(0, 0, 594.936, 841.536);
        this.pageFormat.setPaper(paper);
      public void print() {
        PrinterJob printJob = PrinterJob.getPrinterJob();
        printJob.setPrintable(this, this.pageFormat);
        if (printJob.printDialog())
          try {
            System.out.println("Calling PrintJob.print()");
            printJob.print();
            System.out.println("End PrintJob.print()");
          catch (PrinterException pe) {
            System.out.println("Error printing: " + pe);
      public int print(Graphics g, PageFormat pf, int pageIndex) {
        int response = NO_SUCH_PAGE;
        pf = this.pageFormat;
        Graphics2D g2 = (Graphics2D) g;
        //  for faster printing, turn off double buffering
        disableDoubleBuffering(componentToBePrinted);
        Dimension d = componentToBePrinted.getSize(); //get size of document
        double panelWidth = d.width; //width in pixels
        double panelHeight = d.height; //height in pixels
        double pageHeight = pageFormat.getImageableHeight(); //height of printer page
        double pageWidth = pageFormat.getImageableWidth(); //width of printer page
        double scale = pageWidth / panelWidth;
        int totalNumPages = (int) Math.ceil(scale * panelHeight / pageHeight);
        //  make sure not print empty pages
        if (pageIndex >= totalNumPages) {
          response = NO_SUCH_PAGE;
        else {
          //  shift Graphic to line up with beginning of print-imageable region
          g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
          //  shift Graphic to line up with beginning of next page to print
          g2.translate(0f, -pageIndex * pageHeight);
          //  scale the page so the width fits...
          g2.scale(scale, scale);
          componentToBePrinted.paint(g2); //repaint the page for printing
          enableDoubleBuffering(componentToBePrinted);
          response = Printable.PAGE_EXISTS;
        return response;
      public static void disableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(false);
      public static void enableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(true);
    }

  • JFrame bigger than screen Size (Width)

    I there a way to make the jframe bigger than the screen dimensions (800 by 800) to say 1200 by 800.
    I used netbeans to create a JFrame. I was using a laptop of screen size 1200 by 800 and I positioned my components according to those dimensions using grouplayout. Now when I run it on my desktop on lesser screen size the JFrame is truncated and I can see n operate on only 3/4 of the width. I have some buttons at the bottom right corner of the screen which I cannot totally see.
    Is there a way to make the JFrame to appear completly (Bigger than the screen size)
    Thanks in advance

    Frame built by netbeans probably uses
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setSize(screenSize.width.screenSize.height);
    or
    frame.setExtendedState(JFrame.MAXIMIZED_BOTH);you have to type the values you need by hand to setSize(); but you won't be able to get to part not visible on the screen. Better leave that as it is and employ JScrollPane

  • Wallpaper bigger than screen and moves when my mouse moves

    My wallpaper used to be fine but suddenly it became bigger than my screen such that the part of the menu bar or dock etc is out of the screen. And, when I move my mouse, the screen moves too. Anyone knows how to solve this?

    Hi
    It sounds like you might have the Zoom feature turned on. Go to System Preferences, Universal Access, and check Zoom - if it's on, turn it off.
    Matt

  • Art board bigger than screen

    My dartboard disappears off the top and bottom of my screen so I can not grab to adjust. How can I reset? I have tried using multiple screens but it does not appear across more than one screen.

    The Tab key toggles the Tool bar and Options bar on and off.
    But you might have switched to another view mode.  Tap the 'f' key which has three positions, to toggle through them.  If you turn on the Rulers (Ctrl r) they stay visible in all three modes.
    If you have Windows 7 or 8.1 you can make the workspace fit to the screen by using the Windows key along with the cursor keys, but I expect you knew that (if a Windows user).  If you can see the Options bar at any time, you can use the Workspace droop down to Rest the workspace.  That should fix all UI woes.
    Finally, if all else fails, you can go back to defaults for most things by resetting the Preferences
    Reset Preferences
    Windows — Hold down Shift Ctrl Alt immediately after starting Photoshop
    Mac — Hold down Shift Cmd Opt immediately after starting Photoshop
    BTW  Artboard is an Illustrator term, and sort of like the Photoshop Canvas, (but not really).

  • Email replying spanning bigger than screen.

    Hey guys don't really know how to explain this, but when I'm replying to an email through "Mail" the text always spans past the screen size, so I find myself constantly moving the screen side to side just to see what I am writing.
    Very annoying bug.
    I've tried changing the font size and writing to various e-mail addresses does not make a difference.
    Oh and I am just using a standard hotmail account, and never used to have the problem until 3.0.1 update?

    Hi 39Larry,
    If you are having issues with your email not fitting to the screen size on your iPad, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPad -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPad as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • Copy window bigger than screen

    can I copy a window that is larger than the screen  without buying additional software like snagit ? Thanks. Zww27

    Some applications let you select and scan down without stopping, some do not.  Have you tried taking a screen shot of the to see if that captures content off the page - Command+Shift+3

  • On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen

    On the initial set up for apple tv it just sits there trying to set the date and time . it is a wireless setup and the ipaddress and router address is correct . I can't get by this screen. The setting is on automatic and I have picked a city in my time zone yet it still tries to set a time and date but fails.
    thanks

    Make sure router is up to date. Try ethernet to rule out any wifi issues. Reboot ATV and router.

  • Image bigger than the screen

    i have a 4rd generation ipod touch and suddenly the image of desktop is bigger than the screen. i dont know how to solve this.

    Double tap the screen with 3 fingers.
    Stedman

  • How do i make the whole veiw of the computer smaller? it seems bigger than the whole screen

    how do i make the whole veiw of the computer smaller? it seems bigger than the whole screen

    often, this happens when you blunder into Accessibility/ Universal Access features, such as screen Zooming.
    System Preferences > Accessibility/ Universal Access > Seeing

  • PowerShell script to list ALL documents bigger than 10MB - in list attachments/libraries all over my site?

    Hi there,
    Just wondering if someone can give me the PowerShell script to list ALL documents bigger than 10MB - in list attachments/libraries all over my site?
    Really appreciated.
    Thank you.

    Hello,
    here you can find sample to help you create yoru script :
    http://sharepointpromag.com/sharepoint/windows-powershell-scripts-sharepoint-info-files-pagesweb-parts
    see this sample extract from this site
    Get-SPWeb http://sharepoint/sites/training |
                                     Select -ExpandProperty Lists |
                                     Where { $_.GetType().Name -eq "SPDocumentLibrary" -and
                                             -not $_.Hidden }
    |
                                     Select -ExpandProperty Items |
                                     Where { $_.File.Length -gt 5000 } |
                                     Select Name, {$_.File.Length},
                                            @{Name="URL";
                                            Expression={$_.ParentList.ParentWeb.Url
    + "/" + $_.Url}}
    this can help too :
    https://gallery.technet.microsoft.com/office/Get-detail-report-of-all-b29ea8e2
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • Imac screen is bigger than display  mouse scrolls

    imac screen is bigger than display like it is magnified mouse scrolls how do i reverse this?  I cannot find the option under display

    Hold the Control key down and scroll with the mouse or trackpad to unzooom.
    Captfred

  • HT201361 Whenever I take a screenshot on my Macbook Pro, it always comes out bigger than the area I selected. How do I fix this??

    I just got a Macbook Pro for Christmas, replacing my old 2008 one. On my old one, I was able to screen grab (shift+command+F4) specific area sizes (like 500x500 area) and the picture it would export would also be 500x500. On this new Mac, the areas I screen grab are exported larger than they are when I take them. For instance, I'd take a screen grab of a 500x500 picture I drew, upload it to an image sharing website, and it would appear nearly double that size.
    I've tried altering my display to see if that helps, but they always are bigger than what I grab.
    Any help would be great.

    To anyone who may have this problem, I figured it out. Retina display makes it bigger than it actually is. To fix this, after each screenshot, open up the image in preview. There will be a little toolbox option, and within that a box with arrows in it. Set the dimensions to 50 rather than 100 and it should be good to go.

  • My old iMac (screen sits on a white dome) opens with a tiny folder that flashes a question mark, instead of a login to user's desktop

    My old iMac (screen sits on a white dome) opens with a tiny folder that flashes a question mark, instead of a login to user's desktop, when booting up after a forced shutdown. How do I get my operating system working again? Thanks --Jim

    The blinking question mark indicates that the firmware could not find a valid Operating System on your machine.
    Your harddrive may have failed. Your filesystem may have be come corrupted.
    Try these things.
    -- try to boot up from the installation disc.
    The startup manager will list all of your bootable partitions then give you a choice of which to boot.  Hold down the option key then power on. Continue holding down the option key until you see the startup manager. This brings up the startup manager. Click on your hd or disc. Click on right arrow key.
    -- Sometimes if volumes don't appear in Startup Manager (what you get when you hold down the Option key at startup), you need to reset the Mac's PRAM, NVRAM, and Open Firmware. Shut down the Mac, then power it up, and before the screen lights up, quickly hold down the Command, Option, P, and R keys, until the Mac has chimed twice more after the powerup chime.
    Then, before the screen lights up, hold down Command-Option-O-F until the Open Firmware screen appears. Then enter these lines, pressing Return after each one:
    reset-nvram
    set-defaults
    reset-all
    "The reset-all command should restart your Mac. If so, you have successfully reset the Open Firmware settings."
    http://support.apple.com/kb/TS1812?viewlocale=en_US
    Should the fail...
    Try taking the battery out for 10 minutes.  Put battery back in.  Cross fingers. Power the machine back on.
    How to eject a cd from the internal cd drive:
    eject cd
    List of devices:
    devalias
    List of variables:
    printenv
    More than you ever wanted to know about open firmware
    http://www.firmworks.com/QuickRef.html

  • My font app store in iPad look bigger than usual and I can't download anything neither update my apps

    My font app store look bigger than usual
    How can I return it to normal?
    I can't download anything and updating my apps
    I already reset setting but it cannot help
    It still look bigger

    If pinching the screen does not work, try shutting down the app in the task bar.
    Double tap the home button, press and hold the app store app untill it wiggles. Press the red dot to close.
    Tap the home button again.
    Other things to try:
    Make sure IOS is updated to latest version
    Reboot device by pressing both the home button and sleep/wake (power) buttons at the same time for 10-15 seconds until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the device by going to settings/general/reset/reset all settings
    (no media or data will be deleted from the device, this will only take a minute).

Maybe you are looking for

  • Business content datasource enhancement

    Hi Experts, I am new to HR. We are implementing HR modules Personnel development and Personnel administration, while I was looking into business content extractors 0HR_PA_0 and OHR_PA_1, I found that there were only few fields in the extract structur

  • Acrobat form; how to set-up a drop down list that has catagories?

    Hi, We produce business directories. I am working on a display ad proof template where the user has a choice of 10 main categories where each main has 5 to 15 sub-categories. In my new Adobe Acrobat Pro 9 I understand how to create a drop down list,

  • Mapping To Oracle Table, but no output after transform

    Hi, All I want to transform some records to Oracle table and met a very werid issue. I use a transform in odx.  this is the mapping name  by name and I add a output before the mapping, this is the output xml  <InforProd xmlns=""> - <InforProdRow xmln

  • How do i save video from BBM to my iphone

    I recently got a video from my bbm contact, how do i save this video to my iphone, the video has fully been recieved?

  • Best practices: migrating from Aperture 2 to Aperture 3

    What are the best practices for moving from Aperture 2 to Aperture 3. One thing I do know from reading the discussions board is to turn off Faces recognition until everything is working. What else?