bsharris
08-07-2003, 12:14 PM
I am passing to this html page, some variables to include font size and font name.
in the onload - I parse out the Global variable num - equal to the font size , in this test, a 2.
how can I use that variable in my html table, to display a cell with a font size of 2 (num)
<script language="JavaScript">
var num = ' ';
function load() {
var str = location.search
var pos = str.indexOf("&");
var pos1 = str.indexOf("?");
num = str.substring(pos1 + 10, pos-pos1);
}
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="load()">
<table>
<tr>
<td> <font size="#num">testing font sizes</font></td>
</tr>
</table>
in the onload - I parse out the Global variable num - equal to the font size , in this test, a 2.
how can I use that variable in my html table, to display a cell with a font size of 2 (num)
<script language="JavaScript">
var num = ' ';
function load() {
var str = location.search
var pos = str.indexOf("&");
var pos1 = str.indexOf("?");
num = str.substring(pos1 + 10, pos-pos1);
}
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="load()">
<table>
<tr>
<td> <font size="#num">testing font sizes</font></td>
</tr>
</table>