-
MikeP changed their profile photo
-
Call Certain Content
Hey Guys, I'm building a website right now but I'm a bit stuck. I have a drop down selector at the top and I want the currency on the website to change per the visitors selection at the top. So if they choose USD, the currency throughout the site/page changes to content provided for USD etc, if that makes sense? Any help would be appreciated. Thanks, Mike
-
Inlcude Files & Show active page?
I'm just concerned about the extension, not so much the code. I know that any kind of coding is done in html unless variables are passed in php etc. Obviously apart from ASP etc. Just really trying to make my site stand out to the search engines so just checking, double and triple checking before I lock on something.
-
Inlcude Files & Show active page?
Are there any issues in using php rather than html? I always thought search engines penalised php files. Thanks.
-
Inlcude Files & Show active page?
I'm just worried about SEO and page speed is all. For some reason recently, I've got very interested in page speed and SEO etc so... Thanks.
-
Inlcude Files & Show active page?
Looks good but then requires extra code and CSS, which I'm trying to cut down on haha. Which would you say is best? HTML version or PHP version? Right now, I'm spoofing php and .html's with the .htaccess, don't see why people say it's bad... Thanks.
-
Inlcude Files & Show active page?
The following works a treat; <div id="menu"> <ul> <li><a href="index1.html" <?php if ($thisPage=="home") echo " class=\"current\""; ?>>Home</a></li> <li><a href="cloud-shared-hosting.html" <?php if ($thisPage=="shared") echo " class=\"current\""; ?>>Cloud Shared</a></li> <li><a href="cloud-reseller-hosting.html" <?php if ($thisPage=="reseller") echo " class=\"current\""; ?>>Cloud Reseller</a></li> <li><a href="cloud-virtual-private-servers.html" <?php if ($thisPage=="vps") echo " class=\"current\""; ?>>Cloud VPS</a></li> <li><a href="dedicated-servers.html" <?php if ($thisPage=="dedicated") echo " class=\"current\""; ?>>Dedicated</a></li> <li><a href="about-us.html" <?php if ($thisPage=="about") echo " class=\"current\""; ?>>About Us</a></li> <li style="margin-right:0;"><a href="contact-us.html" <?php if ($thisPage=="contact") echo " class=\"current\""; ?>>Contact Us</a></li> </ul> </div>
-
Inlcude Files & Show active page?
As you can see here, direct for the pages source; <div id="menu"> <ul> <li><a href="index1.html">Home</a></li> <li id="current"><a href="cloud-shared-hosting.html">Cloud Shared</a></li> <li><a href="cloud-reseller-hosting.html">Cloud Reseller</a></li> <li><a href="cloud-virtual-private-servers.html">Cloud VPS</a></li> <li><a href="dedicated-servers.html">Dedicated</a></li> <li><a href="about-us.html">About Us</a></li> <li style="margin-right:0;"><a href="contact-us.html">Contact Us</a></li> </ul> </div> So it's showing to pick up the current class, it just isn't...
-
Inlcude Files & Show active page?
OK so the menu works, but the class isn't... It's not showing the current class on the active page... Any ideas? Thanks.
-
Inlcude Files & Show active page?
Great, thanks very much. Can that "<?php $thisPage="Contact us"; ?>" be put in a .html file or does it have to be .php? Thanks.
-
Inlcude Files & Show active page?
That's helpful so far, but what logic? haha I'm not sure of the code as to how I'd accomplish such a thing... Thanks.
-
Inlcude Files & Show active page?
The main file is .html and coded in html, the include file would be whatever it needs to be... So the code above would be put in the include file and then the include file would be included in the place of the code in the main page. If that makes sense.
-
Inlcude Files & Show active page?
Hello, I'm really struggling to figure something out and I'd greatly appreciate it if someone can help me. I'm wanting to include the following code so that the menu stays the same consistently across all pages; <div id="menu"> <ul> <li><a href="index1.html" class="current">Home</a></li> <li><a href="cloud-shared-hosting.html">Cloud Shared</a></li> <li><a href="cloud-reseller-hosting.html">Cloud Reseller</a></li> <li><a href="cloud-virtual-private-servers.html">Cloud VPS</a></li> <li><a href="dedicated-servers.html">Dedicated</a></li> <li><a href="about-us.html">About Us</a></li> <li style="margin-right:0;"><a href="contact-us.html">Contact Us</a></li> </ul> </div> As you can see, there is a class on the Home (index1.html) line of code. If I just put this in the include file, it would then make all pages look like they're using the Home menu with the current class. The current class just makes it bold out like seen on many websites. How can I get this class="current" to switch to the active page? I hope this makes sense... I want the include file for consistency but I also want the active page to show the current class. Thanks.
-
Which CMS for Portfolio?
I don't have enough experience to build my own website/portfolio so I'm stuck to using a CMS. Can anyone recommend a CMS for this use, preferably free, and a theme to go with it? Thanks in advance!
-
Need to move two groups next to each other
OK, I've managed to get them next to each other using a parent table with two cells. I've given the code for you to see. <table width="100%" cellpadding="5" cellspacing="0"> <tr> <td><table width="100%" cellpadding="5" cellspacing="0"> <tr> <td><div class="cltitle"> </div></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </td> <td> <table width="100%" cellpadding="5" cellspacing="0"> <tr> <td><div class="cltitle"> </div></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table></td> </tr> </table> Right now, I need to be able to size the tables correctly and make a space between them but I'm not sure how... I need table one on the left of the page and table two on the right side of the page. The cells are currently oversized and the two different contents in table two are too far away from each other. Can anyone help?
-
Need to move two groups next to each other
It's just how the content was provided to me. It's not my own. I can paste the code how it is if that will help anyone with how I can move them next to each other.