Question:

Help me with the question below

by  |  earlier

0 LIKES UnLike

<html>

<body onload="seconds()" background="o.jpg">

<center><div id=countdown></div></center>

<script language=javascript>

var n = 10;

function seconds() {

if( !n) { location.href = "home.html"; }

else

{

document.getElementById( 'countdown').innerHTML =

"<h1>" n "</h1>";

n--;

setTimeout('seconds()' , 1000);

}

}

</script>

</body>

</html>

how can i change the font face, color, size of the output.

and i want it to be in the center of the page plez help me u guys.

 Tags:

   Report

1 ANSWERS


  1. &lt;html&gt;

    &lt;body onload=&quot;seconds()&quot; background=&quot;o.jpg&quot;&gt;

    &lt;center&gt;&lt;div id=countdown&gt;&lt;/div&gt;&lt;/center&gt;

    &lt;script language=javascript&gt;

    var n = 10;

    function seconds() {

    if( !n) { location.href = &quot;home.html&quot;; }

    else

    {

    document.getElementById( &#039;countdown&#039;).innerHTML =

    &quot;&lt;h1 style=&#039;font-weight:bold;color:red;font-f... courier, serif&#039;&gt;&quot; n &quot;&lt;/h1&gt;&quot;;

    n--;

    setTimeout(&#039;seconds()&#039; , 1000);

    }

    }

    &lt;/script&gt;

    &lt;/body&gt;

    &lt;/html&gt;

    By the way that should read as &quot;font-family:&quot; I don&#039;t know why yahoo answers truncates it to font-f...

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions