Wrox Programmer Forums
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 17th, 2004, 12:12 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 119
Thanks: 0
Thanked 1 Time in 1 Post
Default .js file question

I am working with an established .js file whereby I am needing to determine if a user is coming from a particular virtual site as to whether to expose the menu option or not on the web page. The 2 menu items BOLDED below is where I need NOT display these menu options if the user is coming from a particular site. ANY HELP OR DIRECTION IS APPRECIATED. Thank you.

Here is my code:

arMenu3 = new Array(
120, //menu width
320, //left
120, //top
"#000000", //font color
"#000000", //font mouseover color
"#EEEEEE", //background color
"#CCCCCC", //background mouseover color
"#999999", //border color
"#999999", //seperator color
"Lab Test Consent Forms","http://XXXXweb018/Legal/consent.htm#5",0,
"Order Book (LAB 202)","/hmfw7/general/lab202.pdf",0,
"Point of Care Protocols","/hmfw7/poc/index.htm",0,
"Release of Body","http://XXXXXweb01/hmfw8/HPolicy/602revdofbody.doc",0,
"Specimen Collection","/hmfw7/collections/index.asp",0,
"Transfusion Services","/hmfw7/bbprotocols/index.asp",0
Old May 17th, 2004, 02:24 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

Cross-post: http://p2p.wrox.com/topic.asp?TOPIC_ID=13659

Please post all replies there.



Similar Threads
Thread Thread Starter Forum Replies Last Post
To include a js file into another js file jdang67 Javascript 4 February 28th, 2008 03:32 AM
question about viewing/editing js file in ch 2 troutguy BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 August 25th, 2006 09:48 PM
asp file into a javascript file (js)? jstewie Javascript How-To 2 August 25th, 2005 08:32 AM
convert a js file from a asp file - change format jstewie Javascript How-To 0 July 21st, 2005 08:57 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.