...

View Full Version : my script for colors, I need help with trying to make a script to increasing the text



jstewie
07-08-2005, 04:38 PM
I need some help trying to make a script to increase and decrease the text on the webpage. I have more that the options listed....

<script language="javascript">
function colorChange()
{
document.bgColor=document.list.colors.options[document.list.colors.selectedIndex].value;
}
</script>
Change Background Color:
<form name="list">
<select name="colors">
<option value="006633">Default
<option value="black">Black
<option value="white">White
</select>
<input type="button" value="Change Background color" name="myButton" onClick="colorChange()" />
</form>
<BODY bgColor=#006633>
<script language="javascript">
function change()
{
document.fgColor=document.text.color.options[document.text.color.selectedIndex].value;
}
</script>
Change Color of Text:
<form name="text">
<select name="color">
<option value="black">Default
<option value="black">Black
<option value="white">White
</select>
<input type="button" value="Change Text color" name="myButton2" onClick="change()" />
</form>

vwphillips
07-08-2005, 06:03 PM
document.getElementsByTagName('Body')[0].style.fontSize='25px';

mrruben5
07-09-2005, 02:54 PM
lol

http://www.alistapart.com/d/relafont/example.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum