[opencms-dev] OCcms 5 - Javascript in JSP template??

James jim at futurate.com
Thu Feb 17 15:35:51 CET 2005


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/dfc07407/attachment.htm>


More information about the opencms-dev mailing list