Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
multiple link change with css?
Old 06-04-2007, 08:11 AM multiple link change with css?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
I have a sitemap that I need to appear on everypage of a rather large site.
The links are being added all the time and at the moment I'm just doing a find and replace in DW.

Is it possible to have a group of links change on everypage throughout a site change when editing one css file?

If not, what is the best way to achieve this?

Cheers.
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-04-2007, 02:06 PM Re: multiple link change with css?
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
You can use a server side include (SSI). Basically, you create a text file with all your links, then just call that file in your HTML. (It's not as hard as it sounds lol!) It will save you so many headaches!!! Does your server support PHP?
angele803 is offline
Reply With Quote
View Public Profile
 
Old 06-05-2007, 04:31 AM Re: multiple link change with css?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
or ASP or SSI

You can't when editing a CSS file BTW.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-05-2007, 04:57 AM Re: multiple link change with css?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Yes it supoprts php, but I have about 200 hundred pages that are html and didn't really want to change those to php
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 06-05-2007, 05:08 AM Re: multiple link change with css?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Covered this a few times but another won't hurt

Add this code to your .htaccess file
Code:
AddType text/html .shtml .shtm .htm .html 
AddHandler server-parsed .shtml .shtm .htm .html
And you can then use Server Side Includes on .htm and .html files.

put your common navigation elements into one page ( navi.php say) , then use;

<!--#include virtual="/navi.php" --> to insert it into the pages

Note that the include should NOT be a fully formed HTML document. It should just contain the elements you would normally have in the section it replaces.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-05-2007, 05:25 AM Re: multiple link change with css?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 960
Name: Darren
Location: England
Trades: 0
Thats an excellent tutorial Chris!

Works great!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."

Last edited by rolda hayes; 06-05-2007 at 03:52 PM..
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to multiple link change with css?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44551 seconds with 12 queries