嗨,我想在asp.net WebPage中添加javascript文件 [英] Hi i want to add javascript file in asp.net WebPage

查看:46
本文介绍了嗨,我想在asp.net WebPage中添加javascript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net网页中添加js文件.
我想做的是,当有人单击图像日期时间选择器时,应该显示它...请帮助.

Hi i want to add js File in asp.net web Page.
What i want to do is when some someone clicks on the image date time picker should be shown... please help.

<a href="java<!-- no -->script:NewCal('demo1','ddmmmyyyy',true,24)">Pick Date<img src="iconfinal.jpg"                  

                        

            style="top: 74px; left: 206px; position: absolute; height: 25px; width: 50px; right: 1027px;" /></a> 

我正在使用此代码.请帮助.

i am using this code..please help.

推荐答案



要回答帖子标题中的问题,请使用

Hi,

to answer the question in the title of your post, use

<script type="text/javascript" src="[name of the JavaScript file]" />



将JavaScript文件添加到HTML页面.

要在单击图像时显示日历,您需要处理onclick事件,如下所示:



to add a JavaScript file to your HTML page.

To show your calender when the image is clicked you need to handle the onclick event, like so:

<img src="iconfinal.jpg" onclick="javascript:NewCal('demo1','ddmmmyyyy',true,24)" />



希望对您有所帮助.

干杯!



I hope this helps.

Cheers!


这篇关于嗨,我想在asp.net WebPage中添加javascript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆