johnsimpson
Programmer
Hi guys,
I need a javascript function to do what this code here is doing:
<select style="width:165px" onchange="var v=this.options[this.selectedIndex].value; if (v != '') selectStyle('style', v);">
<option value="">-- Select Style --</option>
<option value="style-home">Home</option>
<option value="style-services">Services</option>
<option value="style-values">Our Values</option>
<option value="style-recycle">Reclaim and Recycle</option>
</select>
Its basically going to change a stylesheet to an alternate one. But what im wanting to do is to call on this javascript function from flash, so i think i will need a seperate function to set each stylesheet.
Can anyone help me?
thanks
J
I need a javascript function to do what this code here is doing:
<select style="width:165px" onchange="var v=this.options[this.selectedIndex].value; if (v != '') selectStyle('style', v);">
<option value="">-- Select Style --</option>
<option value="style-home">Home</option>
<option value="style-services">Services</option>
<option value="style-values">Our Values</option>
<option value="style-recycle">Reclaim and Recycle</option>
</select>
Its basically going to change a stylesheet to an alternate one. But what im wanting to do is to call on this javascript function from flash, so i think i will need a seperate function to set each stylesheet.
Can anyone help me?
thanks
J