Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1917513.ZmKo30s5rG@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 21 Jan 2012 22:17:14 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit Subject: Re: read get variables and show/hide div Newsgroups: comp.lang.javascript References: <33182896-a3fa-463b-8bd0-bb14a17e962b@4g2000pbz.googlegroups.com> <423fce4d-72bc-442d-bd22-8d5b90459545@iu7g2000pbc.googlegroups.com> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 30 NNTP-Posting-Date: 21 Jan 2012 22:17:15 CET NNTP-Posting-Host: fd9f429a.newsspool2.arcor-online.net X-Trace: DXC=X?8jOabR]kbFXUDVUnEXQmA9EHlD;3Ycb4Fo<]lROoRa8kF The $_GET function is throwing an error which in turn prevents all the > other scripts from running. Try replacing the current $_GET function > with > function $_GET(q,s) { > var res = new Array(); > s = (s != null) ? s : window.location.search; > var re = new RegExp("("+q+"[ |=])(.*?)(?=&|$)","i"); > var result = s.match(re); > return (result == null ) ? '' : result[2]; > } > > Another problem is that you are not calling the $_GET function so > there is no-way that it is going to be executed. You need to add: > if( $_GET('email') != '' ) closediv(); > just after the $_GET function. Potentially confusing and harder-to-maintain results of such identifier abuse were probably one reason why ECMAScript Edition 3 contained a note that identifiers starting with `$' should be machine-generated. Please do not do that. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, (2004)