Forum Moderators: phranque

Message Too Old, No Replies

Dynamically linking to different style sheets?

         

hommealone

4:28 pm on Feb 23, 2005 (gmt 0)

10+ Year Member



Hi. I've never worked in anything but regular html, and would like to find out if the following system could be made to work using a dynamic programming method ( php, asp, etc. ). (I don't know much at all about dynamic programing, except that information is stored on a database on the webserver, and used to create webpages automatically depending on how the link called them up - whatever exactly that means!)

We'd like to have a way for many different websites (let's call them 'A', 'B', 'C', etc.) to link to our website (let's call it 'Z'). The links would be fashioned so that a page from our website, 'Zpg1' for example, would open into a new target window (let's call that '_Zwindow').

Depending on which website (A,B,C, etc) called up '_Zwindow', we'd like 'Zpg1' to display using a unique style sheet - 'Astyle.css', 'Bstyle.css', etc. In other words, we'd like the pages from our website to look a bit different depending on whether they were linked to from 'A', 'B', 'C' etc, accordingly.

Then, if 'Zpg1' has links to 'Zpg2', 'Zpg3', etc [all still keeping focus in '_Zwindow'] can we use dynamic programing to make the correct style - 'Astyle.css' (or 'Bstyle.css' or 'Cstyle.css' etc) - persist onto pages 'Zpg2', 'Zpg3', etc, "automatically", without having to write a different file for each version ('Zpg2styleA', 'Zpg2styleB', etc, etc, etc!)?

Would dynamic programing allow us to do that? Do it easily? Please excuse my ignorance on this matter; finding out if this can be done would be very helpful to me! Thanks, all. I'm looking forward to your responces.

- Paul