Webmaster Forum


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.

Bidding Directory   World's Leading Outsourcing Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-18-2005, 07:04 PM   #1 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
JavaScript, color images, thingy.

I could easily do it in PHP, but I cant use any server-side code

Anyways, here is the code that I found, that does an action similiar to what i want
Code:
<script language="JavaScript"> <!-- var backColor = new Array(); // don't change this backColor[0] = '#FF0000'; backColor[1] = '#00FF00'; backColor[2] = '#0000FF'; backColor[3] = '#FFFFFF'; function changeBG(whichColor){ document.bgColor = backColor[whichColor]; } //--> </script>
Then I make links with changeBG(0->3)
anyways, I want to do the same thing, but not change background color, but change a bunch of things, like color schemes for the site, so user can click green, and site is green (like all the images, I can make different folders for them or what not and have it do /green/ instead of /blue/ etc..

any ideas?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-19-2005, 04:19 PM   #2 (permalink)
Inactive
 
Ricoool's Avatar
 
Join Date: 10-13-03
Location: wonderfull Copenhagen, DK
Posts: 1,256
iTrader: 0 / 0%
Latest Blog:
None

Ricoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to behold
Send a message via Skype™ to Ricoool
do it in different style sheets an have the javascript change the ref to the style sheet and refresh the page
Ricoool is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-27-2005, 03:31 AM   #3 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
Exactly, and theres even an article about that on ALA: A Backward Compatible Style Switcher
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-27-2005, 02:45 PM   #4 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Quote:
Originally Posted by Ricoool
do it in different style sheets an have the javascript change the ref to the style sheet and refresh the page
My thoughts exactly.
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
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
Javascript and images thenextbesthang Coding Forum 5 11-20-2006 06:32 PM
Using Blogger and the V7N Blog Thingy DOS Blogging Forum 10 03-13-2006 02:02 PM
Blast thingy SN3 Graphic Design Forum 14 11-17-2003 11:33 PM


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


All times are GMT -7. The time now is 04:43 AM.
© Copyright 2008 V7 Inc