This is a discussion on "ASP stylesheet switcher with conditional comments" within the Classic ASP section. This forum, and the thread "ASP stylesheet switcher with conditional comments are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
ASP stylesheet switcher with conditional comments
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
ASP stylesheet switcher with conditional comments
Hello all
I'm *very* new to Windows servers and ASP. I'm used to working on Linux/Unix sites with PHP4 or 5. However, I'm currently coding a site for a client who uses Windows 2003 IIS, ASP, and absolutely refuses to install PHP on his server - which, unfortunately makes my job more difficult. So, I'm hoping I can get some assistance here, because I can't find the answer anywhere else. The client is in need to a stylesheet switcher - basically for the simple task of enlarging text on the click of an image. (Yes, I am well aware that you can resize fonts by using the "view" area in your browser - but the client wants it to occur on a button click.) To accomplish this, I was in need of a stylesheet switcher, and thanks to some searching, I found a few - that basically all said the same thing. Now, I've gotten the thing to work, no problem - however, I can't seem to get my conditional comments to switch at the same time when the button is clicked, as well. It seems the script will only change one thing - and I need it to change four! (This really sucks, because I can so do this in PHP without even batting an eyelash!) Could anyone take a look and see how I can accomplish this in ASP? I'd really appreciate any help. The HTML code in question is as follows. Now, I changed the name of the file from "index.html" to "index.asp" because - well that's what the tutorials said I needed to do. So here's the HTML/ASP code (just the relevant stuff):
Below is the actual script file that makes this thing work:
Thanks so much! |
|
|
|
#2
|
||||
|
||||
|
Re: ASP stylesheet switcher with conditional comments
I would use the session object to store the variables because I think they get updated straight away in the collection and you wont need an additional page load for the new stylesheet to take effect.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| asp, stylesheet, switcher, conditional, comments |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Type Input in Conditional Statement | affirmallchance | Flash & Multimedia Forum | 3 | Jan 9th, 2008 11:30 |
| CSS Stylesheet Switcher Problems | Jack Franklin | JavaScript Forum | 12 | Dec 21st, 2007 00:23 |
| Conditional IF in external stylesheet | AdRock | Web Page Design | 6 | Sep 23rd, 2007 22:45 |
| Functions and conditional IFs | AdRock | PHP Forum | 4 | Sep 17th, 2007 08:18 |