snoopy Posted April 27, 2004 Posted April 27, 2004 Hi, I want to display different categories boxes depending on whether javascript is enabled on the browser. I can display the non-js version using <noscript>, but how do I prevent also displaying the js version? <?php require (DIR_WS_BOXES . 'information.php'); ?> <script language="javascript"><!-- //--></script> <noscript> <?php include (DIR_WS_BOXES . 'categories.php'); ?> </noscript> <?php include (DIR_WS_BOXES . 'categories_dhtml.php'); require (DIR_WS_BOXES . 'shopping_cart.php'); require (DIR_WS_BOXES . 'tell_a_friend.php'); ?> Is there a way to tell whether the browser is javascript enabled, or can I say in php 'don't include this file if you are including that one'? I'm a bit out of my depth and would appreciate any advice or a point in the right direction. Snoopy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.