[opencms-dev] FW: OCcms 5 - Javascript in JSP template??
James
jim at futurate.com
Thu Feb 17 15:38:35 CET 2005
Please disregard the duplicate title, meta and link tags. This was a
cut/paste error.
_____
From: James [mailto:jim at futurate.com]
Sent: 17 February 2005 14:36
To: opencms-dev at opencms.org
Subject: OCcms 5 - Javascript in JSP template??
I can't get my javascript working from my template. Any ideas why?
My jsp template code (part):
<head>
<script language="JavaScript" type="text/javascript">
<!--
<cms:include page="../resources/homepage.js" />
-->
</script>
<title><cms:property name="title" escapeHtml="true"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!-- <cms:include page="../resources/home.css" />
<cms:include page="../resources/global.css" /> -->
</style>
<title>Creative Portal: Homepage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="stylesheets/home.css" rel="stylesheet" type="text/css" />
</head>
<body onload="swapImg(); swapImg2();
simplePreload('../resources/home_button_selected.gif' ,
'../resources/home_button.gif' , '../resources/my_region_button.gif' ,
'../resources/learning_button.gif' , '../resources/community_button.gif' ,
'../resources/opportunities_button.gif' , '../resources/news_button.gif' ,
'../resources/advice_button.gif' , '../resources/links_button.gif' ,
'../resources/home_button_over.gif' , '../resources/my_region_over.gif' ,
'../resources/learning_button_over' ,
'../resources/community_button_over.gif' ,
'../resources/opportunities_button_over.gif' ,
'../resources/news_button_over.gif' , '../resources/advice_button_over.gif'
, '../resources/links_button_over.gif');">
Am I adding the onload event to the body tag in the correct way?
Thankyou...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050217/71d793e5/attachment.htm>
More information about the opencms-dev
mailing list