I'm kinda new at editing javascript tags and I'm trying to change the font color inside the tag
I have treid numerous combinations but I'm still coming up with an error. Could u please inform me of the correct way to write this. Here is the complete code. This is just a simple screen resolution code.Code:document.write( <font color='#000000'>width +"×"+ height )
Code:<SCRIPT LANGUAGE="Javascript"><!-- if (self.screen) { // for NN4 and IE4 width = screen.width height = screen.height // Testing this first prevents firing the slow Java of NN4 } else if (self.java) { // for NN3 with enabled Java var jkit = java.awt.Toolkit.getDefaultToolkit(); var scrsize = jkit.getScreenSize(); width = scrsize.width; height = scrsize.height; } else{ width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV } document.write(" Screen Resolution:"); document.write( <font color='#000000'>width +"×"+ height ) //or whatever based on the above results //--></SCRIPT>
Thanks in Advance![]()





Reply With Quote