Proper form for sticky menus? I'm thinking most are backwards...

Discussion in 'HTML & Website Design' started by bentadmin, Jun 27, 2013.

?

Which of the methods to use?

  1. Former

    0 vote(s)
    0.0%
  2. Latter

    0 vote(s)
    0.0%
  1. #1
    So I'm putting together a site and decided to incorporate one of those splash pages with the lower page menu that scrolls up and sticks. I was wondering though if it's best to use a method that alters the menu's css to place it in the position on the page on the splash page (with a default to sticking at the top) or to do it where it's hardcoded in position on the splash section and then use js to alter the css?

    It seems like every package I looked at (mostly jquery based stuff) was doing it using the latter method, and I found that somewhat counter-intuitive. To me it makes more sense to code assuming the person has js blocked, which would require the first method.

    I'm looking for some thoughts on this issue, as I could certainly be missing something, and I'd rather not have to code/modify without need.

    Thanks all.

    //Edit

    Sry, forgot to bring up the question of properly preventing the js from activating based on window width. I'm not great at java script so this may be a stupid question, but is there a way to wrap a java script include in a conditional script that enables and disables the called script based on browser dimensions? I'm using Drupal Commerce with an Omega based theme and want to make certain that I properly handle all that entails.
     
    Last edited: Jun 27, 2013
    bentadmin, Jun 27, 2013 IP
  2. bentadmin

    bentadmin Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    I'm sorry folks but I'm going to bump this because I really need to hear some thoughts on the issue. At this point I'm probably going to roll my own method because of the specific needs I have. I'll post the code (or a link to it) when I'm done.
     
    bentadmin, Jun 29, 2013 IP
  3. Revelations-Decoder

    Revelations-Decoder Well-Known Member

    Messages:
    3,028
    Likes Received:
    152
    Best Answers:
    4
    Trophy Points:
    190
    #3
    Are you talking about the menu like on the left side here ?

    If so the guy who did that site design using jquery works for Google, so is the source code for that any use?

    Or is that a bit off track on what you mean? I don't really get the question though tbh!
     
    Last edited: Jun 29, 2013
    Revelations-Decoder, Jun 29, 2013 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Personally, I think that kind of 'gee ain't it neat' BULL, generally speaking being an inaccessible mess of scripting for nothing is a waste of time on layouts, and really has no place on a website if you care about people actually visiting the site -- this is particularly true when on smaller screen; accessibility and responsive layout are the name of the day, and as such I would advise AGAINST putting any of that type of asshattery on a website in the first place!
     
    deathshadow, Jun 29, 2013 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    I'll go with Jason on this. The absolute best thing that can be said for the idea is that it annoys the visitor. It goes downhill from there.

    cheers,

    gary
     
    kk5st, Jun 29, 2013 IP
  6. bentadmin

    bentadmin Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    @Revelations-Decoder: I'm referring to a feature like smint. It just seems to me that it's more appropriate to fall back to the most desirable .... aw fml, I just answered my own question...

    So nm everyone... I realize now that the initial page layout would have to be different if I was to go the way I am referring to and it's just, yea.. nm.
     
    bentadmin, Jun 29, 2013 IP