How to disable automatic back to top window when window's height changes dynamically ?
Hello,
I use the newsTicker plugin developped by Texotela (http://www.texotela.co.uk/code/jquery/newsticker/) on a SPIP website.
Into the <head> page we can find this code :
- <script type='text/javascript' src='/squelettes/jquery.js'></script>
- <script type='text/javascript' src='/squelettes/jquery.newsticker.js'></script>
- <script type="text/javascript">
$(document).ready(function(){ $("#evenements").newsTicker(); })
</script>
Into the <body> page we can find this code :
- <ul id="evenements">
- <BOUCLE_rubrique(RUBRIQUES){id_rubrique}>
- <BOUCLE_article(ARTICLES){id_article}>
- <li>#TEXTE</li>
- </BOUCLE_article>
- <BOUCLE_rubrique>
- </ul>
For those who don't know SPIP, I take articles of a section with :
- <BOUCLE_rubrique(RUBRIQUES){id_rubrique}>
- <BOUCLE_article(ARTICLES){id_article}>
and then I put the text of each article in <li> element with :
- <li>#TEXTE</li>
Finally, I have something like that :
- <ul id="evenements">
- <li>My Text 1 ... </li>
- <li>My Text 2 ... </li>
- <li>My Text 3 ... </li>
- </ul>
The newsTicker plugin works correctly but my ul element has no fixed height (cause of different text size) and my problem is :
When the jquery plugin switch the <li>, the window size changes according to the content size of the <li> but there is automatically a back to top which is an inconvenient for the navigation.
How can I disable the automatic back to top when the window size changes ?