This should work in your XSLT you may need to wrap the code with CDATA though. Just from the code you posted up it seems that the s3Slider.js script is in the root of the site? it might be better to put this in the scripts folder and reference it as /scripts/s3SLider.js
If it isn't working can you tell more about the error.
Best way is to simply create a separate js file and then reference that in one of the masterpages/templates that of the page you want the javascript code to appear on.
javascript problem
I have a javascrip code, which are as -
<script type="text/javascript" src="s3Slider.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#slider').s3Slider({
timeOut: 4000
});
});
</script>
But i dont know how to use in xslt .can any one help me??
touhid
Hi Touhid,
This should work in your XSLT you may need to wrap the code with CDATA though. Just from the code you posted up it seems that the s3Slider.js script is in the root of the site? it might be better to put this in the scripts folder and reference it as /scripts/s3SLider.js
If it isn't working can you tell more about the error.
L
Best way is to simply create a separate js file and then reference that in one of the masterpages/templates that of the page you want the javascript code to appear on.
thnks. it works.
touhid
is working on a reply...