
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 1.04 KB | hits: 18 | expires: Never
jQuery Cycle works on standalone page, but not in WordPress
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://convoke.info/wp-content/themes/convoke2theme/style.css" />
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/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() {
$('#featuredslider').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});
});
</script>
</head>
<div id="featuredslider">
<img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" />
</div>
jQuery(document).ready(function($) { }