Closed Thread Icon

Topic awaiting preservation: CSS and JavaScripts... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22346" title="Pages that link to Topic awaiting preservation: CSS and JavaScripts... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: CSS and JavaScripts... <span class="small">(Page 1 of 1)</span>\

 
templar654
Bipolar (III) Inmate

From: Aiur, the Tarsonian Galaxy
Insane since: Apr 2004

posted posted 06-28-2004 02:54

I'm very confused here. I don't know whether this comes as CSS, JavaScript or Server-Side. Still here's my problem.

I'm making some skins for my site and I've reached quite a dilema. A few of my skins have JavaScript Image swappers on them and some extra JavaScripting but then again some don't. I wanted to know if there was a way to incorporate CSS with JavaScript so that the proper script is executed according to the skin chosen.

I know the question seems kinda weird but If it ain't possible then I guess it's back to thr drawing board for me. Or I could just get rid of the JavaScript.


Online Portfolio

Virbatem
Nervous Wreck (II) Inmate

From: Perth Western Australia
Insane since: May 2004

posted posted 06-28-2004 06:01

oooh, GAIN trickler... yucky.



More information required as to how you plan to implement the skin change.


To answer your rough question roughly, styles can be applied to objects. If you wanted to change the background color of a layer then document.getElementById("objname").style.backgroundColor="#123456";


Not Enough Is Better Than Too Much

templar654
Bipolar (III) Inmate

From: Aiur, the Tarsonian Galaxy
Insane since: Apr 2004

posted posted 06-28-2004 08:56

Well I'm not planning on doing stuff like PHP or MySQL. I'm just thinking of doing some simple CSS skins. I can then use JavaScript to dynamically change the skin.


Online Portfolio

Iron Wallaby
Bipolar (III) Inmate

From: USA
Insane since: May 2004

posted posted 06-28-2004 14:49

Yes, but there are a number of ways you can handle skinning with CSS. How exactly are you skinning the page?

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

templar654
Bipolar (III) Inmate

From: Aiur, the Tarsonian Galaxy
Insane since: Apr 2004

posted posted 06-29-2004 03:24

Like I said before, I'm going to be using simple Style Sheets to switch back n forth between sheets. I'll just be making several seperate style sheets and then incorporate them into the site.


Online Portfolio

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 06-29-2004 22:37

ttmplar654: Have you had a look at : ALA: Alternative Style: Working With Alternate Style Sheets and ALA: A Backward Compatible Style Switcher ?

« BackwardsOnwards »

Show Forum Drop Down Menu