Home  >  Article  >  Web Front-end  >  Display the calendar directly on the page_html/css_WEB-ITnose

Display the calendar directly on the page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:06:541277browse

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
3a95ae9db4f2847c2f2932c3f8392d292cacc6d41bbb37262a98f745aa00fbf0
Call the calender method in window.onload =

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

b6c5a531a458a2e790c1fd6421739d1c
4744a137f0f4303e2275b4148e14cba9 b90dd5946f0946207856a8a37f441edf
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方法  }

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

Statement:
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