CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 29th, 2003, 04:10 AM
munna munna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 30 munna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
css stylechange query

Hi,
I have the following at the moment to switch between stylesheets on my page. Please could someone tell me how to turn this into a drop-down option box, rather than a list of links?
<div class="gentable">

<b>Stylechanger</b><br />

<a style="menu" href="#" onclick="setActiveStyleSheet('sixblocks'); return false;">Default</a> <br />

<a href="#" onclick="setActiveStyleSheet('fire'); return false;">Fire</a> <br />

<a href="#" onclick="setActiveStyleSheet('forest'); return false;">Forest</a> <br />

<a href="#" onclick="setActiveStyleSheet('ice'); return false;">Ice</a> <br />

<a href="#" onclick="setActiveStyleSheet('stripe'); return false;">Stripe</a> <br />

</div>

Reply With Quote
  #2  
Old August 29th, 2003, 04:33 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,871 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 16 h 31 m 11 sec
Reputation Power: 2569
onChange

Reply With Quote
  #3  
Old August 29th, 2003, 04:40 AM
munna munna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 30 munna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
Hi,
I'm afraid I don't know much javascript & don't understand what you mean -- could you explain a bit more?

Reply With Quote
  #4  
Old August 29th, 2003, 09:03 AM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 10
Send a message via ICQ to fgeller
You should add this to the onchange event in your select box:

Code:
functionName(this.form.SelectName.options[this.SelectName.options.selectedIndex].value)


This basicly calls a javascript function each time you select an option from the drop down list and in this function you can define what to do with the value submitted.

For example this function:

Code:
function(mix) {
 self.location.href=mix;
}


Would redirect the user to a page with the address that is the value of the droplist menu
__________________
regards >_<

ws. fgeller.de
em. felix@fgeller.de

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css stylechange query

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap