在网上下了个日历JS控件的代码
但是在用在Struts 中的时候 不能使用 估计是标签之间的冲突问题
问下 我用styleId来取代html中的 text中的ID 时候 如何在JS中转化原先的ID 我把原来JS中的ID 都换成styleId 还是不行 情高手看看我的代码 以下是HTML的代码
<?xml version= "1.0 " encoding= "utf-8 "?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<!-- $Id: index.html,v 1.15 2005/03/05 14:38:10 mishoo Exp $ -->
<head> <meta http-equiv= "content-type " content= "text/xml; charset=utf-8 " />
<title> The Coolest DHTML Calendar - Online Demo </title>
<link rel= "stylesheet " type= "text/css " media= "all " href= "skins/aqua/theme.css " title= "Aqua " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-blue.css " title= "winter " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-blue2.css " title= "blue " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-brown.css " title= "summer " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-green.css " title= "green " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-win2k-1.css " title= "win2k-1 " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-win2k-2.css " title= "win2k-2 " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-win2k-cold-1.css " title= "win2k-cold-1 " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-win2k-cold-2.css " title= "win2k-cold-2 " />
<link rel= "alternate stylesheet " type= "text/css " media= "all " href= "calendar-system.css " title= "system " />
<!-- import the calendar script -->
<script type= "text/javascript " src= "calendar.js "> </script>
<!-- import the language module -->
<script type= "text/javascript " src= "lang/cn_utf8.js "> </script>
<!-- other languages might be available in the lang directory; please check
your distribution archive. -->
<!-- helper script that uses the calendar -->