put
<link href="css/CalendarControl.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/CalendarControl.js"></script>
into <head> tag.
祝好
Yujie Jiang
2009-01-19
发件人: Shiladitya Biswas
发送时间: 2009-01-19 16:38:32
收件人: mason-users@lists.sourceforge.net
抄送:
主题: [Mason] Problem with javascript and CSS due in Mason
Hi,
I am facing problem when using javascript and css in my html page. I
including javascript and css like this:
<link href="css/CalendarControl.css" rel="stylesheet" type="text/css" >
<script language="javascript" src="js/CalendarControl.js" > </script >
<input type="text" name="current_start_date"
onfocus="showCalendarControl(this);" >
The _autohandler is like this:
<html >
<head >
<title >
Calendar
</title >
</head >
<body style="background-color: pink" >
<br / >
% $m- >call_next;
<br / >
</body >
</html >
The css and js files are being enclosed by <html > and <body > tags and
hence they are not working.
How can I solve this so that html and body tags appear only for html
pages and not for js and css pages?
Thanks
--
Shiladitya
------------------------------------------------------------------------
"If I Had More Time I Would Write a Shorter Letter"
-- Blaise Pascal
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users