PDA

View Full Version : Style changer in custom javascript navbar


vijayninel
11-15-2009, 11:24 AM
Hi! I have a custom javascript navbar on my forum instead of the standard vBulletin navbar.

I want to put the quick style chooser which is at the bottom of the forum on this navbar as well.

The custom navbar follows a code like this: <a href="url">Link text</a>

However the vBulletin style chooser is something like this:

<select name="styleid" onChange="switch_id(this, 'style')">

<optgroup label="Quick Style Chooser">

<option value="1" class="" >-- Default Style</option>
<option value="10" class="" selected="selected">---- roxor</option>
<option value="4" class="" >---- Child of Default Style</option>
<option value="2" class="" >-- serene</option>
<option value="8" class="" >-- One Column Style</option>

</optgroup>
</select>
Can you please tell me how to write the style links for the navbar in the <a href="url">Link text</a> format so that the styles can be changed from the navbar.

Thanks. :)