fixed.

On Dec 24, 12:07 pm, whatsinthename <[email protected]> wrote:
> I am trying to setup a marquee like display for a link. (for a custom
> ticker tape type mod)
> I can scroll the link horizontally by updating the x property of a
> link inside a div using a script.
> when I set the x property to for example the size of the div element
> the link overflows from the div and only a part of it is displayed, as
> expected.
>
> For example i have a div of size 200, and a link with innerText.length
> = 15, when  the x property is >185 the text starts overflowing towards
> the right.
>
> My problem is how can I accomplish this for the left side? so that the
> link scrolls in from the left side.
>
> the x property cannot be -ve and the main view does not support css
> styles (I have it working on normal web pages using css position
> tags).
>
> Here is the code I am using right now. This function is called every
> 200ms. it scrolls the link to the right untill it eventually
> disappears then restarts (the mod function).
>
> function shiftText(){
>   var m = marquee_container.children("link1");
>   var w = marquee_container.width;
>   var init = m.offsetX;
>   //debug.trace(init);
>   if (init>w)
>     { init=(init+1)%(w); m.x = init; }
>   else
>     { init=init+1;m.x = init; }
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to