Quote from: dev_cw at Sep 01, 2008, 11:25 AM
You need to declare this in a jquery document declaration. I use jQuery in noConflict mode to avoid any conflicts with other libraries that use the $ variable.
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
$('ul#ajax').innerfade({
speed: 1000,
timeout: 5000,
type: 'sequence',
containerheight: '170px'
});
});
Hi Dev
I put the script you gave me above in a java doc called ’javacustom.js’ and called it in my page template head as below:
<link href="styles/style.css" rel="stylesheet" type="text/css" />
<link href="styles/menu.css" rel="stylesheet" type="text/css" />
<link href="styles/form.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="print" href="styles/print.css" />
<script src="assets/js/content_tabs.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript" src="assets/js/jquery.js"></script>
<script type="text/javascript" src="assets/js/jquery.innerfade.js"></script>
<script type="text/javascript" src="assets/js/javacustom.js"></script>
However when i paste the ajax UL (previous post) into the homepage header area (inside a Div as a template variable ) the ’li’ images just display as a list... no fade and on top of each other... i have obviousl;y missed something... any ideas?
sorry to be useless I am new to Modx and java
thanks