Webmaster Forum

Sponsored Reviews   PR6 Link Building Service   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 12-20-2007, 08:43 PM   #1 (permalink)
Junior Member
 
digitaloverlay's Avatar
 
Join Date: 12-14-07
Location: Virginia Beach
Posts: 21
iTrader: 0 / 0%
Latest Blog:
None

digitaloverlay is liked by many
Send a message via Yahoo to digitaloverlay
Dynamically changing CSS files

Hey,
Not sure if this is the right area for this but I am looking to allow my visitors to swap style sheets with a link. I have been looking to do it with php but haven't found the right way yet. I don't want to use javascript because that can be disabled by the user. Any suggestions?
digitaloverlay is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-20-2007, 08:45 PM   #2 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 17,964
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Moved to coding.

This is a fun one!
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-21-2007, 04:55 AM   #3 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Maybe this will help you (or, at least, will give you a start):

1. http://gr0w.com/articles/code/css_stylesheet_switcher_using_php_javascript_free/

2. http://www.456bereastreet.com/archive/200608/build_your_own_php_style_sheet_switcher/
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-22-2007, 04:29 PM   #4 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 136
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right path
if you want to have a different style based on a query string.
EG: www.mysite.com?style=1
you can do it like this
Code:
<?php switch($_GET['style']) { case 1: $style="style.css"; break; case 2: $style="style2.css"; default: $style="style.css"; break; } ?>
then in <head>
Code:
<link rel="stylesheet" href="<?php echo $style; ?>" type="text/css">
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-22-2007, 04:33 PM   #5 (permalink)
v7n Mentor
 
jdspc's Avatar
 
Join Date: 12-05-07
Location: Clear Lake City, TX
Posts: 639
iTrader: 0 / 0%
Latest Blog:
Why I Do What I Do?

jdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of lightjdspc is a glorious beacon of light
Cool!!
I knew it had to do with Get/Post....
__________________
abc school of music - houston, tx

Childrens Cancer Research


the world wants you to fail...ftw not wtf...ya herd?
jdspc is online now  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically assigning HTML elements an ID? Boogle Coding Forum 19 10-05-2007 08:53 AM
Dynamically creating links in Javascript thing2b Coding Forum 3 01-30-2007 12:22 PM
Using dynamically built links digitman SEO Forum 12 10-11-2004 08:56 AM
Dynamically create City/State Pages in php?? tommy2tone Coding Forum 4 08-24-2004 10:28 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:54 PM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.