[IMG]9news.com/graphics/print/9news-com.jpg[/IMG]
var max = 18;
var min = 12;
var size = 12;
function article_IncreaseFontsize() {
article_getObj();
if (size != max) {
size = size + 2;
parasInDiv = stObj.getElementsByTagName("p");
for(var i = 0; i < parasInDiv.length; i++) {
parasInDiv[i].style.fontSize = size + "px";
}
} else {
alert("You are already at the maximum size!");
}
}
function article_DecreaseFontsize() {
article_getObj();
if (size != min) {
size = size - 2;
parasInDiv = stObj.getElementsByTagName("p");
for(var i = 0; i < parasInDiv.length; i++) {
parasInDiv[i].style.fontSize = size + "px";
}
} else {
alert("You are already at the minimum size!");
}
}
function article_getObj() {
stObj = (document.getElementById) ? document.getElementById('article_text') : document.all('article_text');
}
Officials trying to rescue child from experimental aircraft
posted by:
Sara Gandy
[IMG]9news.com/graphics/bullet1.gif[/IMG] Date last updated: 10/15/2009 2:57:41 PM