Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Page Refresh Help!

    I've got most of my site set up, but one thing is annoying me. On a main page (for example - http://www.happyhourhousewives.com/necklaces.html ) is where it happens. If you click on a thumbnail to get the large view if you're at the bottom of the page, the main page behind the large image jumps back to the top. It's a little frustrating...does anyone know a way of how to park it?

    any help would be great!!

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by ERAEK View Post
    I've got most of my site set up, but one thing is annoying me. On a main page (for example - http://www.happyhourhousewives.com/necklaces.html ) is where it happens. If you click on a thumbnail to get the large view if you're at the bottom of the page, the main page behind the large image jumps back to the top. It's a little frustrating...does anyone know a way of how to park it?

    any help would be great!!
    How do you get your background to stay fixed like that?

    http://bonrouge.com/~faq#fixedbg

    about a third way down the page.

    might be worth looking at.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,930
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    Change this:
    Code:
    <a href="javascript:location='necklaces.html'; window.open('wife.html','wife','height=700,width=594,scrollbars=yes,toolbar=no,status=no,menubar=no,location=left,resizable=yes')">
    to this:
    Code:
    <a href="wife.html" onclick="window.open('wife.html','wife','height=700,width=594,scrollbars=yes,toolbar=no,status=no,menubar=no,location=left,resizable=yes'); return false;">
    And do it this way for all those links with javascript.

  • #4
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In the css this is in the code -
    html {
    font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
    font-size: 10px;
    background-image: url(happyimages/wallpaper.gif) background-attachment: fixed)
    color: #5f5455;
    text-align: center;

    ----In the html this is in the head

    <style type="text/css">
    body
    {
    background-image:
    url('happyimages/wallpaper6.gif');
    background-repeat:
    repeat;
    background-attachment:
    fixed
    }
    </style>
    Last edited by ERAEK; 09-25-2007 at 08:44 PM.

  • #5
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!!! That works great...who knew it could be as easy as that!

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,930
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    By the way: Have you looked at your site in Firefox (or Opera, or Safari, or Konqueror, or…) yet?

    You should always get your site straight in standards compliant browsers (like the ones mentioned above) and then fix it for that buggy pile of crap called Internet Explorer, not vice versa.

  • #7
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Quote Originally Posted by VIPStephan View Post
    You should always get your site straight in standards compliant browsers (like the ones mentioned above) and then fix it for that buggy pile of crap called Internet Explorer, not vice versa.
    Haha, that's just about the bit-ch-iest comment I've heard you come out with Stephan! I love it!

    Anyways, to the op, why do you have some styles in your CSS and other generic styles on the actual page itself? I'm pretty sure it would be a lot easier to keep track of if you kept everything in the same place.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •