<script src = "http://yui.yahooapis.com/2.2.2/build/yahoo/yahoo-min.js" ></script>
<!-- Dependency source files -->
<script src = "http://yui.yahooapis.com/2.2.2/build/dom/dom-min.js" ></script>
<script src = "http://yui.yahooapis.com/2.2.2/build/event/event-min.js" ></script>
<script src = "http://yui.yahooapis.com/2.2.2/build/dragdrop/dragdrop-min.js" ></script>
<!-- Slider source file -->
<script src = "http://yui.yahooapis.com/2.2.2/build/slider/slider-min.js" ></script>
<script src = "http://yui.yahooapis.com/2.2.2/build/animation/animation-min.js" ></script>var currentFontSize = 12;
function changeFontSize(sizeDifference){
currentFontSize = parseInt(currentFontSize) + parseInt(sizeDifference);
if(currentFontSize > 19){
currentFontSize = 19;
}else if(currentFontSize < 8){
currentFontSize = 8;
}
setFontSize(currentFontSize);
}
function setFontSize(fontSize){
var stObj = (document.getElementById) ? document.getElementById('ContentArea') : document.all('Content');
stObj.style.fontSize = fontSize + 'px';
}
function revertStyles(){
defaultFontSize = 12;
setFontSize(defaultFontSize);
slider.setValue(0,1,1);<div class="floatright">
<div id="sliderbg">
<div id="sliderthumb"><img alt="" src="http://www.notonebit.com/temp/yui_0.12.2/thumb.gif" /></div>
</div>
</div><script>
var slider = YAHOO.widget.Slider.getHorizSlider("sliderbg","sliderthumb", 50, 50);
slider.subscribe("change", function(offsetFromStart)
{
document.formH.horizVal.value = offsetFromStart;
if (offsetFromStart==0)
{
setFontSize(12);
document.formH.horizVal.value = 12;
}
if (offsetFromStart>0)
{
setFontSize(12+((offsetFromStart/50)*18));
document.formH.horizVal.value = Math.ceil(12+((offsetFromStart/50)*18));
}
if (offsetFromStart<0)
{
setFontSize(12-((Math.abs(offsetFromStart)/50)*6));
document.formH.horizVal.value = Math.ceil(12-((Math.abs(offsetFromStart)/50)*6));
}
});
</script><div id="ContentArea">Users browsing this forum: No registered users and 0 guests