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.
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.
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!
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!
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
@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.