I trying to change a website that is already up and running.
I have noticed that around the jQuery functions there is /*
Any ideas why this would be there?
See below code:
<script type="text/javascript">
/*$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade'
});
});*/
/*$(function() {
$('.slideshow img').css({
opacity: 0
});
setTimeout(function() {
$('#slideshow').cycle({
random: 1
//delay: 1000
});
$('.slideshow img').css({
opacity: 0
});
}, 1000);
});*/
$(function() {
$('.slideshow').cycle({
fx: 'fade',
random: 1
});
});
</script>
Just wondering whether ther is any specific reasons for doing this, Any ideas?
Thought that was the case, but just thought I’d check if it had anything to do with the fact that the site seems to use jQuery.js aswell as prototype.js
Thought it might be some strange thing to stop problems between the two, as I’ve had similar problems in the past. Especially when using jcycle plugin. I much prefer jQuery, but when it’s somebody elses site, what can you do. :o)
To comment them out so they do not run (presumably while alternative code is tested so it can be rolled back easily).