a little frustrated with javascript vs. PHP
Date: 12/27/07
(Web Development) Keywords: php, css, java, web
Hi guys,
I have a webpage dedicated to stylesheets, and I want the stylesheet's source code to pop up in a new window when ever that stylesheet is clicked and for the page's style to change. I got the stylesheet to show up in a new window and got the stylesheet to change, but for convenience purposes, I would like the new window to also have a close button and a div to scroll through the stylesheet so it's probably best to have one PHP page with an "include "mystylesheet.css" , but how do I get the CSS to change whenever a user clicks on a different stylesheet?
I'm assuming the best way to do this is with JavaScript, but what do I put into my statement?
Thanks
Happy Coding!
Source: http://community.livejournal.com/webdev/455026.html