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!
How did they do this?
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
It done with style sheets
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
here are some links to their style sheets
http://www.horizoncompanies.com/css/links.css
http://www.horizoncompanies.com/css/nolink.css
http://www.horizoncompanies.com/css/links.css
http://www.horizoncompanies.com/css/nolink.css