<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040688" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040688</link>
    <description></description>
    <language>en</language>
          <item>
    <title>It&#039;s not at all clear to me</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tabbed-menu-changing-tab-when-link-active#comment-1228585</link>
    <description> &lt;p&gt;It&#039;s not at all clear to me what you are trying to do, as all the tabs in your example go to the same page. I have a feeling you can do this in CSS, but without more info I can&#039;t tell. Do you have a sample page you can show us?&lt;/p&gt;
&lt;p&gt;You may like to review your IDs. See this from the &lt;a href=&quot;http://www.w3.org/TR/html401/types.html#type-cdata&quot; class=&quot;bb-url&quot;&gt;W3C recommendation:&lt;/a&gt;&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (&quot;-&quot;), underscores (&quot;_&quot;), colons (&quot;:&quot;), and periods (&quot;.&quot;).&lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Sun, 17 Feb 2008 01:28:13 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1228585 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Oh thanks, not seen</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tabbed-menu-changing-tab-when-link-active#comment-1228584</link>
    <description> &lt;p&gt;Oh thanks, not seen script_name and script_filename?  Why do you not use any GET at all?&lt;/p&gt;
 </description>
     <pubDate>Sun, 17 Feb 2008 00:37:34 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1228584 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You could try the results of</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tabbed-menu-changing-tab-when-link-active#comment-1228582</link>
    <description> &lt;p&gt;You could try the results of these:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; $variable &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;SCRIPT_FILENAME&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
That will give you something like:&lt;br /&gt;
/home/YOURWEBSITE/public_html/index.php&lt;/p&gt;
&lt;p&gt;and try this&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; $variable &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;SCRIPT_NAME&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
That will give you something like this&lt;br /&gt;
/index.php&lt;/p&gt;
&lt;p&gt;You will have to test them yourself, sorry. I don&#039;t use url/GET/link info at all.&lt;br /&gt;
just echo them to see what you get.&lt;br /&gt;
They should work though.&lt;/p&gt;
&lt;p&gt;Copy this code into a new file called test.php and run test.php on your site-&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$script_filename &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;SCRIPT_FILENAME&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$script_name &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;SCRIPT_NAME&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Script_filename:&amp;lt;br&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$script_filename&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Script_name:&amp;lt;br&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$script_name&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The $_SERVER[&#039;SCRIPT_NAME&#039;] is the better one if it works, as using it in your nav menu you will only have to check if $something equals &quot;/index.php&quot; or equals &quot;/aboutus.php&quot; etc&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Feb 2008 22:22:32 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228582 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi thanks for the reply. I</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tabbed-menu-changing-tab-when-link-active#comment-1228579</link>
    <description> &lt;p&gt;Hi thanks for the reply. I have a problem with this method...&lt;/p&gt;
&lt;p&gt;All my pages have this URL convention - index.php?action=x&lt;/p&gt;
&lt;p&gt;I tried using php to determin the page by using $_SERVER[&#039;PHP_SELF&#039;] but that takes the actual path rather than the URL.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Feb 2008 19:46:57 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1228579 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I couldn&#039;t help you with</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/tabbed-menu-changing-tab-when-link-active#comment-1228575</link>
    <description> &lt;p&gt;I couldn&#039;t help you with Javascript, but one of my sites I did similiar with PHP.&lt;br /&gt;
I couldn&#039;t find anything on the internet about it so used my own method, which may be crude and there may be a better way, but here&#039;s how I did it:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$pageget = $_SERVER[&amp;#039;PHP_SELF&amp;#039;];&lt;br /&gt;&lt;br /&gt;&amp;lt;div id=&amp;quot;navmenu&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt; &lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pageget &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/index.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;br /&gt;{echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;class=&quot;current&quot;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;b&amp;gt;Home&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;} &lt;br /&gt;else {echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;a href=&quot;index.php&quot;&amp;gt;&amp;lt;b&amp;gt;Home&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;} &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt; &amp;lt;/li&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;so basically the div id &quot;navmenu&quot; is the CSS with the styling for my menu, but if PHP determines that the page they are on is the link in the menu they clicked then PHP changes the class to &quot;current&quot;&lt;br /&gt;
Then obviously in my CSS I have a styling for the &quot;current&quot; menu buttons&lt;br /&gt;
I also made the link to &quot;#&quot; if it is current, so users can&#039;t click the current link on the menu and reload the page they are already on, that is just personal preference though.&lt;/p&gt;
&lt;p&gt;That code is on all my nav menu links so whatever page is the current one, PHP will determine it is the current one and change the style accordingy.&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Feb 2008 19:16:15 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1228575 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
