Display the calendar directly on the page_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:06:54
Original
1276 people have browsed it

I want to call a javascript directly on the html page to display the calendar directly without clicking. How should I write the declaration and reference part of the html? calender.js is placed in the js folder in the same directory as the current html


Reply to the discussion (solution)

First quote the calender file

Call the calender method in window.onload =

window. Where to write onload? I inserted it into the table to display it



In this case, you need to click. How to display it directly?

<script type="text/javascript" src="calender.js"></script>  <script type="text/javascript">  window.onload = function(){    //调用calender方法  }
Copy after login

Just next to each other. How to insert a table? Please take a look at the insertion method in calender.

Thank you. I changed the display mode. Anyway, I just want to display it. Just a date and time

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!