jQuery cycle in php include noob questions
I have a website that uses jQuery for the menu functions and some form validation. It pulls all the header, footer, and sidebar from includes. One of these sidebar components or module we will call "promotional" that is loaded from (promotional.php)
In the "promotional" box I am wanting to use the cycle plugin to rotate some advert type images.
If I place the call to this following into promotional.php - The image rotator works.
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
- <!-- include Cycle plugin -->
- <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.slideshow').cycle({
- fx: 'fade',
- timeout:'8000',
- random: 'true',
-
- });
- });
- </script>
The problem then is by doing this my menu drop down (menu.php) stops working. I have tried to include this script into the <header.php> that has all the rest of the script in it, but then the image rotator stops working. I am really not sure as I have not worked a whole lot with php and jQuery. Most of my stuff is simply html with some jQuery. Any help would be great.