![]() |
Custom Style Chooser
I'm trying to setup a custom style chooser and following some advice found on these forums (I forget where) I was able to move the Style Changer from the footer to the top links. We are only using two styles, one narrow and one wide, and we want a radio button selector instead of a drop down. The original code is:
Code:
<form action="{vb:link forumhome|nosession}" method="get" id="footer_select"> Code:
<form action="{vb:link forumhome|nosession}" method="get" id="footer_select"> |
Unfortunately the JavaScript function switch_id is hard coded to use a <select> input and just won't work with any other type of input. You'd need to rewrite the function or make a new one to work with radio buttons.
FYI - this is the javascript function in question: PHP Code:
|
OK so if you add this javascript to your template:
PHP Code:
|
All times are GMT. The time now is 06:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|