English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What up everybody, OK well pretty much I'm putting a website up and I wanted to know how or where I can get a Javascript that will make the text bigger or smaller when you press the button. I went to most of the popular sites that support javascript but I can't seem to find it. Does anyone have the snippet code by any chance. Thanks.

2006-11-20 12:24:54 · 3 answers · asked by ERIK S 2 in Computers & Internet Programming & Design

3 answers

Dhtml and CSS does this
http://www.alistapart.com/articles/relafont

2006-11-20 12:28:04 · answer #1 · answered by arus.geo 7 · 0 1

all you have to do is modify the class of the body of the html to use a larger font
something like
document.body.setAttribute ("class", "bigger");

where bigger is defined in css as
bigger { font-size: 200%; }
.

2006-11-20 12:34:37 · answer #2 · answered by jake cigar™ is retired 7 · 0 0

i have not learn java yet but i know action script @ begineer c++ so here what i would do

var tittle;
tittle.onRollOver = function(){
tittle._xscale = tittle._yscale = 200;
}

tittle.onRollOut = function(){
tittle._xscale = tittle._yscale = 100;
}

2006-11-20 12:43:46 · answer #3 · answered by Best Helper 4 · 0 0

fedest.com, questions and answers