Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.04 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery Cycle works on standalone page, but not in WordPress
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5.     <link rel="stylesheet" type="text/css" href="http://convoke.info/wp-content/themes/convoke2theme/style.css" />
  6.     <!-- include jQuery library -->
  7.     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  8.     <!-- include Cycle plugin -->
  9.     <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
  10.     <script type="text/javascript">
  11.         $(document).ready(function() {
  12.             $('#featuredslider').cycle({
  13.                 fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
  14.             });
  15.         });
  16.     </script>
  17. </head>
  18.        
  19. <div id="featuredslider">
  20.     <img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" />
  21.     <img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" />
  22. </div>
  23.        
  24. jQuery(document).ready(function($) { }