Jump to content

moew3c

Members
  • Posts

    11
  • Joined

  • Last visited

moew3c's Achievements

Newbie

Newbie (1/7)

1

Reputation

  1. I played with it while waiting for response and it works now . Heres the following of what I did for it to work. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>SiteThis</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style>*{margin:0;padding:0;}p{font-family:Verdana,Geneva,sans-serif;font-size:11pt;margin: 5px;}h1,h2,h3,h4,h5,h6{margin:5px;}#time{width:275px;text-align:center;background-color:#660000;border:1px dotted black;font-family:Verdana,Geneva,sans-serif;font-size:8pt;font-weight:bold;} </style> <script language="JavaScript" type="text/JavaScript"><!--function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}} //--> </script> </head> <div id="time"><script>var d=new Date();document.write(d);</script></div> Thanks for your patience and reading.
  2. Ok, let start from the begining. Below in Heading wrapper is the script for javascript. Time is displaying, yet not font face change. Now in W3c states that one can place in both or either heading and / or body. Guess have to experiment with that part. Now I've tried the script given with font face change. No workie. So do I move the script into the body wrapper with in the div wrapper? Here's what I have. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>SiteThis</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style> p{font-family:Verdana,Geneva,sans-serif;font-size:11pt;}h1,h2,h3,h4,h5,h6{margin:5px;}#time{width:275px;text-align:center;background-color:#eee;border:1px dotted black;font-family:Verdana,Geneva,sans-serif;font-size:8pt;font-weight:bold;} </style><script language="JavaScript" type="text/JavaScript"><!--function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}} //--> var d=new Date();document.write(d);</script>
  3. CORRECT- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>SiteThis</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style> p{font-family:Verdana,Geneva,sans-serif;font-size:11pt;}h1,h2,h3,h4,h5,h6{margin:5px;}#time{width:275px;text-align:center;background-color:#eee;border:1px dotted black;font-family:Verdana,Geneva,sans-serif;font-size:8pt;font-weight:bold;} </style><script language="JavaScript" type="text/JavaScript"><!--function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}} //--> window.onload = init; function init(){setInterval(tick,500);} function tick(){var d = new Date();var timestr = d.toLocaleString();document.getElementById('time').innerHTML = timestr;} </script>
  4. Hi, I copied and pasted your script to the head area. Took out margin. didn't need it. Beside the point the script provided didn't change the font face of the time display. Guess there is no script for this change yet. Below is what I have. If I put in the the wrong wrapper, let me know. Thanks for reading. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>SiteThis</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style> p{font-family:Verdana,Geneva,sans-serif;font-size:11pt;}h1,h2,h3,h4,h5,h6{margin:5px;}#time{width:275px;text-align:center;background-color:#eee;border:1px dotted black;font-family:Verdana,Geneva,sans-serif;font-size:8pt;font-weight:bold;} </style><script language="JavaScript" type="text/JavaScript"><!--function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}} //--> var d=new Date();document.write(d); </script> </head
  5. Ok, I noticed you used the style wrapper instead of CSS. I will try that and let you know how it came out. Thanks for your help
  6. The font face doesn't match the rest of the font face through out the webpage.
  7. Hi all, I was able to display the time and date on my website. However, I like to know if there is a script to change the font family of the time date display.I researched the internet on this issue and tried them, placing them inside the javascript wrapper. One confusion is CSS and do I place the CSS script inside the JavaScript wrapper? Here is what I have so far: <script language="JavaScript" type="text/JavaScript"><!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}}//-->function setFont() { for ( i = 0; i < document.all.length; i++) {document.all.style.fontFamily = "Verdana";document.all.style.fontSize = 11;}} var d=new Date();document.write(d);</script> Thanks for reading.
×
×
  • Create New...