【发布时间】:2014-11-09 16:08:01
【问题描述】:
我知道这是一个愚蠢的问题,但我不知道在 Wordpress 上的何处放置此代码
/*
* Here is an example of how to use Backstretch as a slideshow.
* Just pass in an array of images, and optionally a duration and fade value.
*/
// Duration is the amount of time in between slides,
// and fade is value that determines how quickly the next image will fade in
$.backstretch([
"http://dl.dropbox.com/u/515046/www/outside.jpg"
, "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
, "http://dl.dropbox.com/u/515046/www/cheers.jpg"
], {duration: 3000, fade: 750});
这必须在脚本标签之间吗?还是在 PHP 代码中?
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
CODE
</script>
谢谢
【问题讨论】:
标签: javascript jquery ajax wordpress