Hi, Site: lotto revenues dot com Please have a look at left sidebar menu & look for 'Contact' button. Clicking on this link will not bring you to the 'Contact' page, BUT keeps you on the Index! What do I need to change in order to get things work? Many thanks! Mike
The goofy malfing "JS for nothing" jquery based asshattery of making the page an inaccessible buggy mess out of some form of "pageloads are evil" paranoia is what's biting you in the backside here. This script: $('#menuLeft a').click(function(){ var which = $(this).index(); $(this).addClass('cur').siblings().removeClass('cur'); $('.tabs .tab:eq(' + which + ')').addClass('cur').siblings().removeClass('cur'); return false; }); Code (markup): Is preventing all anchors in that side menu from doing what anchors do; and for what? To make it so scripting off/disabled users (like a lot of mobile users who are sick to death of this type of scripttardery chewing the battery) can't even use the page? It's also why your contact page if navigated to manually (by entering the URI in the address bar) doesn't let you go back to the rest of the site! Using 'javascript to emulate framesets' -- which is basically what this does, violates the unwritten rule of javascript; "If you can't make the page work without scripting FIRST, you have no business adding scripting to it." There are three possible solutions: 1) you could add detection to that script to see if the href is set to "#" and only do the action if that is true. Not sure quite how to do that in jQuery since it never REALLY gives you the element in question. 2) bloat out the already bandwidth hogging page by making contact part of it like tall the other sub-pages. 3) rip ALL of that crap the **** out of the page since it is a laundry list of how NOT to build a website, and build the site PROPERLY as a bunch of separate pages that actually load PROPERLY instead of stuffing everything into one giant inaccessible buggy broken document. I think you could probably guess which I'd go with. Especially as one digs deeper and finds outdated methodology like browser sniffing, using javascript to do media query's job, lack of media targets for the style LINKs, tables for layout, little if anything remotely resembling semantic markup, endless pointless DIV for nothing, scripts for nothing, static presentation inlined in the markup, gibberish use of numbered headings, double breaks doing paragraph's job, paragraphs around non-paragraph elements, scripting only elements in the markup, fixed width fixed metric non-responsive layout... Throw it out and start over, there is little if anything I'd try to salvage from that mess.
Hi Removing mentioned script would solve my problem, right? Where can I find this script in the code? Thanks a lot
Every other 'page' on the site 'works' thanks to that script as they aren't actually separate pages -- you remove it and everything else stops working -- BUT, that's why it needs to be removed and the entire site rewritten from scratch; silver bullet fixes will be little more than sweeping deep rooted issues under the rug. I keep seeing this more and more as a sitebuilding method and it's buggy, broken, a waste of bandwidth, and most often means the entire site needs to be thrown away and recreated from scratch to actually 'fix' it. Sorry if that (or my original post) sounds harsh, but it's the reality of these types of pages where people slap all the subpages into a single page then use javascript to piss all over it. It most always bites the site owner in the long term right in the backside, and it would be better for you all-around if you got that fixed. With a hair of PHP, ASP or SHTML it wouldn't be that big a deal to split it up properly while keeping the 'parts that are the same on every page' static. But yeah, just removing that script would break the existing navigation for every other page on the site; it's that script that makes it work. You can have it one way, or the other, not both... so that means either adding the contact part to the existing page as a subsection (making it an even bigger bloated mess) or rewriting the entire site from scratch. I HIGHLY advise doing the latter. Sounds like you didn't actually make this site, and are just stuck owning/maintaining it. Which sleazeball saddled you with this mess so we can advise others not to use them?