interagir entre un script jquery et le body d'un site
bonjour
j'explique mon cas , je developpe actuellemnt sous prestashop
j'utilise un module silde qui m'affiche des images tous les 2 secondes en boucle
je souhaiterais que cette fonction interagisse avec le body de mon site pour faire chnager le background de mon site
voici mon code javascript du slider
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script type="text/javascript" charset="utf-8">
$(window).load(function()
{
init_slideshow()
})
init_slideshow = function()
{
$('#home_slides').cycle({
fx:'fade',
timeout:5000,
pager:'#slide_navigation',
after:update_slide_caption,
before:fade_slide_caption
})
}
fade_slide_caption = function(next, previous)
{
caption_container = $('#project_caption')
caption_container.fadeOut('fast')
}
update_slide_caption = function(next, previous)
{
caption_container = $('#project_caption')
caption = $('span.slide_caption', previous)
caption_container.fadeIn('fast')
caption_container.html(caption.html())
}
</script> |
comment creer ce lien ?
merci