function data(){ function getDateStr(){ var selectmenu=document.getElementById("godzina") MonthName[0] = "stycznia " MonthName[1] = "lutego " MonthName[2] = "marca " MonthName[3] = "kwietnia " MonthName[4] = "maja " MonthName[5] = "czerwca " MonthName[6] = "lipca " MonthName[7] = "sierpnia " MonthName[8] = "września " MonthName[9] = "pa1dziernika " MonthName[10] = "listopada " MonthName[11] = "grudnia " var WeekDay = Today.getDay() var Month = Today.getMonth() var Year = Today.getFullYear() if(Year <= 99) Year += 1900 return Day + " " + MonthName[Month] + " " + Year + " r." } document.getElementById('textbox').contentWindow.document.write(getDateStr()); } function gettime(){ function getTimeStr(){ var hours = now.getHours(); hours = ((hours > 24) ? hours - 24 : hours); var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes(); var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds(); var TimeValue =(" " + hours + minutes + seconds + " "); return TimeValue; } document.getElementById('textbox').contentWindow.document.write(getTimeStr()); }
po prostu nie powinno być paska wczytywanie