How did they do this?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anomaly
Forum Newbie
Posts: 15
Joined: Mon Oct 21, 2002 9:45 pm

How did they do this?

Post by anomaly »

I don't really know where to post this because I don't know what they're doing! Forgive me if this is in the wrong section.

http://www.horizoncompanies.com/section ... vices.html

Ok, I understand the drop down menu at the top. That simply javascript. But check out the Services menu on the left. Each time you go to a different service, that service is highlighted in orange and the image changes to an orange image.

How could you achieve this affect without hard coding each page like this? I know they didn't do that because if they wanted to add a link they'd have to update every single page...there has to be a better way.

Thanks!
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post by kcomer »

The menu may be an include, I'm sure it is, and it probobly just has code in it that checks which page the user is at, maybe using PHP_SELF and switch statements or nested if statements.
anomaly
Forum Newbie
Posts: 15
Joined: Mon Oct 21, 2002 9:45 pm

Post by anomaly »

Shouldn't the extension be .php then? Or is that optional?
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

anomaly wrote:Shouldn't the extension be .php then? Or is that optional?
thats a webserver setting... i could make files.anyfileextension run php
User avatar
kaka
Forum Newbie
Posts: 1
Joined: Tue Nov 26, 2002 6:34 am

It done with style sheets

Post by kaka »

If you look at the source code on the page you will see a reference to ****.css. This is a cascading style sheet that allows you to build pages / boxes / fontstyles etc from 1 script. While you will not be able to see their style sheet directly - the bit you are interested in is HOVER and if you look up CSS on the web you should get a full explanation of how to do this.
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

Post Reply