Nov 22, 2009
Pages: 1, 2

Applying Css Through Links. - Different CSS through different links?

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

Applying Css Through Links. - Different CSS through different links?

infamousflame
I work on a website, and on this there are three different colour schemes. These are currently selected by clicking on the desired colour in a flash shockwave object on a page.

This requires that there are three large directories on the server, blue, pink and orange. Each one contains a coloured copy of the website. The things in each directory are: HTML pages, a css giving it it's colour and flash buttons that were coloured the three different colours when they were made.

As you can imagine, this is a nightmare to update, as it requires that each page is copied to three different directories. sad.gif I would be very keen to have things set up so that when the pages are updated, every colour updates at the same time. I understand that I would need to still have three different sets of buttons and these would still need to be in their right places on the server. However, these are already created and so should not need to be changed.

I was wondering if applying one of three different CSSs to the site depending on which colour scheme the user wanted to see. I thought this may be accomplished using links to apply the CSS but I don't know if that's possible.

Thanks in advance for any replies, biggrin.gif

Infamous.

 

 

 


Comment/Reply (w/o sign-up)

overture
Here you go. This one is done in java script: Spoono's Stylesheet Switcher

It is extremely easy to do it in PHP, i have made one myself for use a long time ago. If you would like it i will give it to you, just send me a message or reply here.

Comment/Reply (w/o sign-up)

Houdini
If you already have the CSS files why don't you import them? or link to the CSS file, it is one of the great things about css, insteat of rewriting you just reference the particular file or with PHP make a switch case that uses the CSS you want. It is really simple. Send a PM to find out more.

Comment/Reply (w/o sign-up)

infamousflame
Thanks a lot for the info guys biggrin.gif , my friend who also works on the site says he knows how to do it now. I think it's because he's been learning javascript through a WebMonkey course. Anyways, if he can't manage it, I'll come back and ask for some more help.

Comment/Reply (w/o sign-up)

Trekkie101
I know the site your on about, not a god damn chance, we will not be using Javscript for something so easy. There is no hard work involved.


How it works, let me explain


Site
index.php - choose a colour
orange/blue/pink - goes to directory
then in directory is folder named images and a css file, for colouring it

Now, for each folder, the images folder has the images for that colour, and a CSS file to colour the page, so when you switch colour at the very first page, you goto the same site, but in a different colour.

Either that, or we do start using a proper templating system LIKE I suggested so many months ago. We arent coding silly bits of javascript, thats just gonna cause trouble.

Stop wasting time, you seem to have been speaking to Adam, he loves the idea of over doing things, lets not remember he is the boy, who argued, flash should replace all web code.

Comment/Reply (w/o sign-up)

infamousflame
QUOTE (Trekkie101 @ Jul 10 2005, 01:21 PM)
Stop wasting time, you seem to have been speaking to Adam, he loves the idea of over doing things, lets not remember he is the boy, who argued, flash should replace all web code.
*


I'm not wasting time and haven't been speaking to Adam, well, I have but not before I started posting this and this was not his question.

That defeats the whole point of my question the way you suggested though. The point is I am trying to reduce our workload, and connec came up with an idea that he can do it just through CSS and HTML, which i know are the same things, but you know what I mean.

Comment/Reply (w/o sign-up)

Trekkie101
But it isnt a workload, the code is exactly the same. Its like looking for a way to find a needle easier in a hay stack, theres only one, working way, that doesnt involve more work than is really needed.

Comment/Reply (w/o sign-up)

infamousflame
Well, currently, we have to copy all the content over three dirs, this just is not necessary, so we should try and stop it.

Comment/Reply (w/o sign-up)

Trekkie101
Copying 1 file takes less than a second, uploading takes less than one second. I just dont see how it adds anything extra to any workload.

Comment/Reply (w/o sign-up)

infamousflame
Trust me, it does, especially through net2ftp. grr, websense.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : applying, css, links, css, links

  1. Creating Links With Quotes (")
    (2)
  2. To Display Images With Links In A Rotating Sequence Without Refreshing The Page!
    how to rotate images with links in a sequence automatically without ha (0)
    hai this is my first post and i really hope someone finds it useful. i was looking for this trick
    for long and finally found out today... to rotate images in your page automatically in a sequence
    without having to refresh the page. i find it particualry useful to highlight on the home page the
    various contents inside my site. Copied from
    http://www.cgiscript.net/cgi-script/csNews...6.5787238091439 QUOTE Step 1: place the code
    below between the and tags within the HTML page where you want the random banners to appear.
    CODE                           ....
  3. Sounds With Links
    how do you do it? (6)
    I was wondering to myself the other day, "some websites, when you hover over one of their links,
    make a sound like a bleep or something. Wouldn't that be good to have". So, I want to know if
    anyone knows how to do it! /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> ....
  4. Free Links Exchange: Promote & Increase Page Rank
    (9)
    Hi guys,     For all the aspiring web-designer and webmasters out there - this deals with one of the
    most commonly overlooked fact about increasing your page rank. Most of us after putting up a new
    site, are satisfied with simple submitting our site to multiple search engines using some of the
    free submission engines. After that it's a long long wait till the crawlers come over to our
    page and starts indexing them. Even then it doesn't work out that well. And we always keep
    wondering WHY our sites don't show up on higher ranks on search engines.     One of t....
  5. Find Out Dead Links In Your Site Automatically
    Want to see a dead link on your site? (11)
    If you try to go to http://www.dead-links.com you will be asked for your domain or url. Enter it
    and the bot will find any dead links that you might not have seen. Have a nice day.......
  6. A good website for applying COUNTERS
    You can make your own counters~^^ (9)
    http://okcounter.com/index_en.html Does anyone know this website? I think it is good for people
    who don't know how to make a counter on their websites. Here, after you register, you can make
    your own counter and upload it. (but need to be approved first). Or you can choose to use
    others' counters which are nice~^^....

    1. Looking for applying, css, links, css, links

See Also,

*SIMILAR VIDEOS*
Searching Video's for applying, css, links, css, links
advertisement



Applying Css Through Links. - Different CSS through different links?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com