Closed Thread Icon

Preserved Topic: CSS / SSI / Javascript Question Pages that link to <a href="https://ozoneasylum.com/backlink?for=17784" title="Pages that link to Preserved Topic: CSS / SSI / Javascript Question" rel="nofollow" >Preserved Topic: CSS / SSI / Javascript Question\

 
Author Thread
WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-11-2000 19:16

I am looking to set up multiple intefaces for a web page. Each on using frames. There would be a single content frame, with the interface bordering it.

The content will be static throughout all of the interfaces, except the CSS, I would want to be able to have different colored text, and links depending upon what interface is being displayed.

How would I link to the CSS depending upon which interface is being used?

So if interface1 is being used, and index.html loads, it will call the css-interface1.css file. But at the same time, if I were to view interface2 the same index.html would load, but it would call css-interface2.css instead of css-interface1.css

Is this possible, if so how, or a link to somewhere that would tell me how to do it.

Thanks in advance.


www.warmage.org

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-11-2000 20:49

I belive you can do this like this. (Doc you are better with this than I)

Make the link to the index page something like this

<A HREF="index.shtml?css-interface2">

You may need to take out the hyphen

Then in the call for your style page put this
<LINK REL=StyleSheet HREF="<!--#echo var="QUERY_STRING"-->.css" TYPE="text/css">

Again I don't know if this works but I believe it should (or some variation of it)


[This message has been edited by bitdamaged (edited 11-07-2000).]

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-11-2000 21:29

So the ?yaddah defines the query string? And then that is pulled out of the echo?

That makes for some nice power...


www.warmage.org

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-11-2000 21:49

Yup.

I just wrote a test for this at http://www.bitdamaged.com/reflect.shtml

Write a link to it and you will see that whatever you put after the question mark is reflected. (Stuff gets tweaked for URL encoding but thats okay)

But the cool thing is you can use this anywhere. Make one template page and you can switch images, text or in this case css all based on this.



Walking the Earth like Kane

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-11-2000 22:33

thank you.


www.warmage.org

Chris Bala
Nervous Wreck (II) Inmate

From: Bucharest, Romania
Insane since: Jun 2000

posted posted 07-11-2000 22:45

i have no idea about server-side stuff so i can't help you,, but i know a site that does something like you described www.bradsoft.com

There is no spoon...sort of speaking

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-11-2000 23:23

I implemented what you told me, and I am impressed at the power. But, there seems to be a problem with it...

I may have to refresh the page 2 or 3 times before the stylesheet will load.

The page is http://warmage_666.tripod.com/

if you could take a look and tell me what you can that would be great...

It may be my browser, but i have never had this happen before...


www.warmage.org

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-11-2000 23:24

oh... and also it is suposed to be on a black bg, with teal lettering, matching the image.


www.warmage.org

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-12-2000 00:07

Okay I see what is happening. This seems to be an issue with the Tripod stuff. I think Tripod adds info to the query string in order to make sure that only one ad gets popped up (as opposed to one for each frame.

This is why if you look at the source of pages that are not working you get all that popup stuff instead of the path to the css doc.

Hmmm I really don't know how to get around this outside of switching hosts.



Walking the Earth like Kane

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-12-2000 03:24

thanks, different host here I come... =[ and they worked so well for so long...


www.warmage.org

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-13-2000 02:48

Did someone say "New Host"?????


<img border=0 align=absmiddle src="http://www.ozones.com/forum/smile.gif">

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-13-2000 02:49

bitdamaged, I personally think this would make a cool tute on how to implement dynamic content. What'cha think?

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-13-2000 14:17

I just found out that pugzly uses some censored words in the "From" line of his profile...


www.warmage.org

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-14-2000 03:58

Should I change it to C*inton Twp. ?

<img border=0 align=absmiddle src="http://www.ozones.com/forum/biggrin.gif">

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

« BackwardsOnwards »

Show Forum Drop Down Menu