Hi,
Can someone help me understand why this doesn't work? I want to resize the subscriber stream using a CSS class as described in the Best Practices tutorial. I'm not using jquery though. here's my final html:
<div id="subscribers">
<object type="application/x-shockwave-flash" id="subscriber_486229130_1" style="outline:none;" data="http://static.opentok.com/v1.1.0/flash/f_subscribewidget.swf partnerId=21524152" width="320" height="240"><param name="allowscriptaccess" value="always"><param name="wmode" value="transparent">...(rest of tokbox code here)
</div>
I then want to make it smaller or bigger using these styles:
div.small {
width: 100px;
height: 75px;
}
div.medium {
width: 400px;
height: 300px;
}
I then call this function to add the new class to the 'subscriber' div:
document.getElementById("subscribers").className += "small";
The class gets successfully added to the div but nothing changes. Am I missing something? I am using Chrome.
Thanks,
-steve