If the target element (to scroll to) is an inline element, Opera will not
scroll. FF and IE work correctly. If I change the element to a block
element, Opera will work.
Because I wanted to use the existing <a href=#xxx> and <a
name=xxx> anchors, this will not work in Opera.
Change the <p> target elements in the interface scrollto demo page to
<a> or <span> elements to see what I mean (see the difference
between IE/FF and Opera).
Stefan, could you comment on this? Is it a limitation of Opera?
Thanks in advance for any insight...
PragueExpat wrote:
>
> that link in the original post should have been ...has a lot of <a
> href=#xxx> and <a name=xxx> anchors...
>
> Guess I should preview first :)
>
>
> PragueExpat wrote:
>>
>> Has anyone else had the problem of Opera not scrolling when using the
>> ScrollTo in interface?
>>
>> (By the way, Stefan and Paul, thanks for your work on interface - I use
>> it a lot)
>>
>> My page has a lot of #xxx and anchors and I wanted to use the
>> ScrollToAnchors method in interface. Since the method looks for elements
>> to scroll to (not named anchors), I made this (small) change to the
>> method:
>>
>> ScrollToAnchors : function(speed, axis, easing) {
>> return this.each(
>> function()
>> {
>> jQuery(this).click(
>> function(e)
>> {
>> parts =
>> this.href.split('#');
>> jQuery('[EMAIL
>> PROTECTED]'+parts[1]+']').ScrollTo(800);
>> return false;
>> }
>> );
>> }
>> )
>> }
>>
>> and used this in the document ready:
>>
>> $('[EMAIL PROTECTED]"#"]').ScrollToAnchors(800);
>>
>> Works great in FF, IE but not in Opera. I tried a straight ScrollTo
>> function in Opera, which also failed.
>>
>> Can anyone confirm?
>>
>
>
--
View this message in context:
http://www.nabble.com/Scrolling-in-Opera--tf3138253.html#a8714081
Sent from the jQuery Plugins mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/