function color_green(d)
{
div1.style.color='green';
}
function color_yellow(d)
{
div1.style.color='yellow';
}
function color_red(d)
{
div1.style.color='red';
}
function color_blue(d)
{
div1.style.color='blue';
}
function color_orange(d)
{
div1.style.color='orange';
}
function color_black(d)
{
div1.style.color='black';
}
function color_brown(d)
{
div1.style.color='brown';
}
//dddddddd
function show_d()
{
div1.style.visibility='visible';
div2.style.visibility='visible';
div3.style.visibility='visible';
}
//свойства
function styleprefontStyle(st)
{
fontStylediv.style.display='block';
fontWeightdiv.style.display='none';
textDecorationdiv.style.display='none';}
function styleprefontWeight(st)
{
fontStylediv.style.display='none';
fontWeightdiv.style.display='block';
textDecorationdiv.style.display='none';}
function stylepretextDecoration(st)
{
fontStylediv.style.display='none';
fontWeightdiv.style.display='none';
{
div1.style.fontStyle='italic';
}
function noitalic(d)
{
div1.style.fontStyle='normal';
}
function fat()
{
div1.style.fontWeight='bold';
}
function nofat()
{
div1.style.fontWeight='normal';
}
function showdecordiv(st)
{
decordiv.style.display='block';
}
function noline()
{
div1.style.textDecoration='none';
decordiv.style.display='none';
}
//тень
function shadow()
{
div1.style.textShadow='black 1px 1px 2px, red 0 0 1em';
div1.style.background='url(d.jpg)';
}
function noshadow()
{
div1.style.textShadow='none';
div1.style.background='url(fon.jpg)';
}
//регистр
function registr_normal()
{
div1.style.textTransform='capitalize';
}
function registr_big()
{
div1.style.textTransform='uppercase';
}
function registr_small()
{
div1.style.textTransform='lowercase';
}
//-->
</SCRIPT></head><body onload="effects(form1);">
<!--Размер//-->
<script type="text/javascript" language="javascript">
var min=20;
var max=70;
function increaseFontSize() {
var p = document.getElementsByTagName('div');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 50;
}
if(s!=max) {
s += 1;
}
p[i].style.fontSize = s+"px"
}
fontStylediv.style.fontSize='16';
textDecorationdiv.style.fontSize='16';
fontWeightdiv.style.fontSize='16';
decordiv.style.fontSize='16';
}
function decreaseFontSize() {
var p = document.getElementsByTagName('div');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 50;
}
if(s!=min) {
s -= 1;
}
p[i].style.fontSize = s+"px"
}
fontStylediv.style.fontSize='16';
textDecorationdiv.style.fontSize='16';
fontWeightdiv.style.fontSize='16';
decordiv.style.fontSize='16';
}