Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
HTML selection
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Proximity" data-source="post: 320954" data-attributes="member: 43026"><p>This</p><p>[CODE]</p><p><?php</p><p>$uri = $_SERVER['REQUEST_URI'];</p><p>$path = parse_url($uri, PHP_URL_PATH);</p><p>$explosion = explode('/', $path);</p><p>$page = $explosion[1];</p><p>?></p><p></p><p> <!--menu starts--></p><p> <div class="span8"></p><p> <div id="smoothmenu" class="ddsmoothmenu"></p><p> <ul></p><p> <li><a href="index.php" class="<?php if($page=="Home"){echo "selected";}?>">Home</a></li></p><p> <li><a href="#">DDoS Protected VPS</a></p><p> <ul></p><p> <li><a href="Europe-OpenVZ-Linux-VPS.php" class="<?php if($page=="Europe OpenVZ Linux VPS"){echo "selected";}?>"> Europe OpenVZ Linux VPS</a> </li></p><p> <li><a href="Europe-KVM-Linux-VPS.php" class="<?php if($page=="Europe KVM Linux VPS"){echo "selected";}?>"> Europe KVM Linux VPS</a> </li></p><p> <li><a href="Europe-KVM-Windows-VPS.php" class="<?php if($page=="Europe KVM Windows VPS"){echo "selected";}?>" > Europe KVM Windows VPS</a> </li></p><p> </p><p> </ul></p><p> </li></p><p> <li><a href="#">Services</a></p><p> <ul></p><p> <li><a href="HTTP-Reverse-Proxies.php" class="<?php if($page=="HTTP Reverse Proxies"){echo "selected";}?>">HTTP Reverse Proxies</a> </li></p><p> <li><a href="TCP-Reverse-Proxies.php" class="<?php if($page=="TCP Reverse Proxies"){echo "selected";}?>">TCP Reverse Proxies</a> </li></p><p> <li><a href="Cpanel-Protected-Web-Hosting.php" class="<?php if($page=="Protected Web Hosting"){echo "selected";}?>">Protected Web Hosting</a> </li></p><p> <li><a href="Minecraft-DDoS-Protection.php" class="<?php if($page=="Minecraft DDoS Protection"){echo "selected";}?>">Minecraft DDoS Protection</a> </li></p><p> <li><a href="DDoS Protected-Dedicated-Servers.php" class="<?php if($page=="Protected Dedicated Servers"){echo "selected";}?>">Protected Dedicated Servers</a> </li></p><p> </ul></p><p> <li><a href="aboutus.php" class="<?php if($page=="About"){echo "selected";}?>">About</a></li></p><p> <li><a href="contact.php" class="<?php if($page=="Contact Us"){echo "selected";}?>">Contact Us</a> </li></p><p> </p><p> </ul></p><p> </div></p><p> <a href="clientarea.php" class="mybtn">Client Area</a> </div></p><p> <!--menu ends--></p><p> </p><p></p><p></p><p>[/CODE]</p><p></p><p>is my navi.php is this right?</p></blockquote><p></p>
[QUOTE="Proximity, post: 320954, member: 43026"] This [CODE] <?php $uri = $_SERVER['REQUEST_URI']; $path = parse_url($uri, PHP_URL_PATH); $explosion = explode('/', $path); $page = $explosion[1]; ?> <!--menu starts--> <div class="span8"> <div id="smoothmenu" class="ddsmoothmenu"> <ul> <li><a href="index.php" class="<?php if($page=="Home"){echo "selected";}?>">Home</a></li> <li><a href="#">DDoS Protected VPS</a> <ul> <li><a href="Europe-OpenVZ-Linux-VPS.php" class="<?php if($page=="Europe OpenVZ Linux VPS"){echo "selected";}?>"> Europe OpenVZ Linux VPS</a> </li> <li><a href="Europe-KVM-Linux-VPS.php" class="<?php if($page=="Europe KVM Linux VPS"){echo "selected";}?>"> Europe KVM Linux VPS</a> </li> <li><a href="Europe-KVM-Windows-VPS.php" class="<?php if($page=="Europe KVM Windows VPS"){echo "selected";}?>" > Europe KVM Windows VPS</a> </li> </ul> </li> <li><a href="#">Services</a> <ul> <li><a href="HTTP-Reverse-Proxies.php" class="<?php if($page=="HTTP Reverse Proxies"){echo "selected";}?>">HTTP Reverse Proxies</a> </li> <li><a href="TCP-Reverse-Proxies.php" class="<?php if($page=="TCP Reverse Proxies"){echo "selected";}?>">TCP Reverse Proxies</a> </li> <li><a href="Cpanel-Protected-Web-Hosting.php" class="<?php if($page=="Protected Web Hosting"){echo "selected";}?>">Protected Web Hosting</a> </li> <li><a href="Minecraft-DDoS-Protection.php" class="<?php if($page=="Minecraft DDoS Protection"){echo "selected";}?>">Minecraft DDoS Protection</a> </li> <li><a href="DDoS Protected-Dedicated-Servers.php" class="<?php if($page=="Protected Dedicated Servers"){echo "selected";}?>">Protected Dedicated Servers</a> </li> </ul> <li><a href="aboutus.php" class="<?php if($page=="About"){echo "selected";}?>">About</a></li> <li><a href="contact.php" class="<?php if($page=="Contact Us"){echo "selected";}?>">Contact Us</a> </li> </ul> </div> <a href="clientarea.php" class="mybtn">Client Area</a> </div> <!--menu ends--> [/CODE] is my navi.php is this right? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
HTML selection
Top