This is a discussion on "a:link, active, hover, visited...." within the Web Page Design section. This forum, and the thread "a:link, active, hover, visited.... are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
a:link, active, hover, visited....
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#21
|
|||
|
|||
|
Re: a:link, active, hover, visited....
The css you posted above should work. Just apply the .selected class to the current page link.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#22
|
||||
|
||||
|
Re: a:link, active, hover, visited....
Marc, I've dont thaT BUT have been getting this error...
Quote:
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#23
|
|||
|
|||
|
Re: a:link, active, hover, visited....
Did you define $page = "name"; for each page? "aboutus" only applies to one of them, your About Us page.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#24
|
||||
|
||||
|
Re: a:link, active, hover, visited....
no for I was testing out to see if it worked on one of the pages first and it don't.
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#25
|
|||
|
|||
|
Re: a:link, active, hover, visited....
Ah, ok. To tell you the truth, I think you'd be better off making actual pages instead of generating content with php. So instead of what you have now, use this:
Cheers, SWagner
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#26
|
||||
|
||||
|
Re: a:link, active, hover, visited....
That's the problem. i don't want to do that. I got tired of updating piece by piece....
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#27
|
|||
|
|||
|
Re: a:link, active, hover, visited....
So how do you update now? If this is not what you want, you could use frames for the main content. Then, the navigation and header stay the same.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#28
|
||||
|
||||
|
Re: a:link, active, hover, visited....
When updating links all I have to do is open up the index.php file instead of having to update page by page.
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#29
|
|||
|
|||
|
Re: a:link, active, hover, visited....
I see. I still suggest frames... They give you pretty much the same freedom as the way you're doing it.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#30
|
|||
|
|||
|
Re: a:link, active, hover, visited....
Frames?!?! I would not use that! It's old...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#31
|
||||
|
||||
|
Re: a:link, active, hover, visited....
Tis why i left no comment, lol.... if ya get a chance monie and you know how to do it via php hit me up on messenger if you get free time. if not don't worry about it, lol.
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#32
|
|||
|
|||
|
Re: a:link, active, hover, visited....
yeah, Frames are old, as old as my 10 years old cat
I am new in PHP as well mcdaniel...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#33
|
||||
|
||||
|
Re: a:link, active, hover, visited....
ahh, lol.. Okay.
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#34
|
|||
|
|||
|
Re: a:link, active, hover, visited....
OK. I give up! I guess frames are a bad idea too. Anyone else have a suggestion?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#35
|
|||
|
|||
|
Re: a:link, active, hover, visited....
Quote:
Yes, this requires a little effort in learning the rudiments of a scripting language. But it really, really pays off. PHP can save you vast amounts of manual labour. I've only just gotten into PHP; but consider this example that I've been working on just recently: Many of my web pages have "next page" and "previous page" links. These are listed once near the top of the page, once near the bottom, and once in invisible <link> navigation. Whenever I make a new page or change an existing one, I must manually edit this code (all three sets). But with some PHP, I can just declare two variables ($next and $prev), and all that nav code is generated automatically for me. In fact, it gets much more complicated than this, because my page sequence is sometimes affected by user preferences for more or less detail. Here the manual work becomes really miserable; but PHP trims it down to an absolute minimum and saves me even more time. |
|
#36
|
|||
|
|||
|
Re: a:link, active, hover, visited....
Working with Jan's article on using $_GET, here is your index page
|