I just implemented some new javascript into a intranet web reporting page I maintain.
Here is a screen shot of the page.
The headers are clickable to sort the page but also are too big. and I can't for life of me figure how to change the font.
Here's the code... anyone have any ideas. I've inserted font tags, p tags all over the page and nuttin is working.
I tried to primarily insert them in the first myObjectArray but I think my syntax is wrong. Anyone know how to insert proper font / p tags into some jscript.
Code:<SCRIPT LANGUAGE="JavaScript"><!-- function myObject() { for (var i = 0; i<myObject.arguments.length; i++) this['n' + i] = myObject.arguments[i]; } var objectArrayIndex = 0; var myObjectArray = new Array(); function showObjectArray(object,length) { var output = '<LEFT><TABLE BORDER=\"2\" CELLPADDING=\"5\">'; output += '<TR>'; for (var j=0; j<width; j++) output += '<TH><A HREF="reports_new4.htm?n' + j + '">' + eval('object[0].n'+j) + '<\/A><\/TH>'; output += '<\/TR>'; for (var i=1; i<length; i++) { output += '<TR>'; for (var j=0; j<width; j++) output += '<TD>' + eval('object[i].n'+j) + '<\/TD>'; output += '<\/TR>'; } output += '<\/TABLE><\/LEFT>'; document.write(output); } function myObjectBubbleSort(arrayName,length,property) { for (var i=1; i<(length-1); i++) for (var j=i+1; j<length; j++) if (eval('arrayName[j].' + property + 'SurveyPage','Registration Report Program Status Report','');
+ Reply to Thread
Results 1 to 5 of 5
-
-
Sorry Doc, that looks a lot like computer programming! Just moving your topic along a little.
Cobra -
You could make a different style for the <TH> tag: Include:
Code:<style> th {font-family:Verdana, Arial;font-size:7pt;color="#FFFFFF";background-color="#a4adc6"} </style>
Change the size and color values as you see fit!
/Mats -
Give a go with what mats.hogberg said, otherwise its got me stumped.
All the things I would normally suggest you've tried by the sounds of it.
Similar Threads
-
Adobe Javascript 10 question
By jyeh74 in forum Newbie / General discussionsReplies: 3Last Post: 26th Oct 2009, 00:51 -
Javascript/Silverlight, embedding multiple players
By thecoalman in forum ProgrammingReplies: 0Last Post: 4th Mar 2008, 07:00 -
Help - JavaScript Help from anyone?
By TaoTeWingChun in forum ProgrammingReplies: 7Last Post: 14th Dec 2007, 16:34 -
I need urgent help, please! Javascript not working
By rem_2007 in forum ComputerReplies: 4Last Post: 23rd Nov 2007, 09:23 -
Windows utilities to strip Javascript?
By Ai Haibara in forum ComputerReplies: 12Last Post: 22nd Sep 2007, 19:37