View Full Version : Quick question about a script.

08-28-2005, 07:32 AM
Hi, I just registered. :D

Concerning the script found here:


I was wondering how I could formatt the text. I wanted it white, bold, and 10pt.

Thanks for any replies, and example code would be appreciated.

08-28-2005, 09:52 AM
<span style="color:white;font-weight:bold;font-size:10pt;">
<script type="text/javascript">

Screen resolution detection and notification Script-
Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com

var correctwidth=800
var correctheight=600
if (screen.width!=correctwidth||screen.height!=correctheight)
document.write("This webpage is bested viewed with screen resolution "+correctwidth+"*"+correctheight+". Your current resolution is "+screen.width+"*"+screen.height+". If possible, please change the resolution!")

08-28-2005, 08:39 PM
Thanks, worked perfectly. You guys are the best. =]