salam
yeki bege darde in script ma chii ye az ye parantez irad migire
<script language="javascript">
function GetUserTime(){
var today = newDate()
if (today.GEtHours() <12 ){
document.write("good morning")
}
else{
document.write("good afternoon")
document.write(today.getHours() + ":" + today.getMinutes() + ":" today.getSeconds() )
}
}
</script>
</head>
<body onLoad="GetUserTime()">
</body>
---------- Post added at 12:40 AM ---------- Previous post was at 12:39 AM ----------
salam
yeki bege darde in script ma chii ye az ye parantez irad migire
کد HTML:
<script language="javascript">
function GetUserTime(){
var today = newDate()
if (today.GEtHours() <12 ){
document.write("good morning")
}
else{
document.write("good afternoon")
document.write(today.getHours() + ":" + today.getMinutes() + ":" today.getSeconds() )
}
}
</script>
</head>
<body onLoad="GetUserTime()">
</body>