marquee

<marquee> html tag usage/replacment

允我心安 提交于 2019-11-27 23:46:20
问题 I know that <marquee> tags are evil. If it is so bad to have scrolling text, then using JS to get the same effect doesn't make it any better, right? And suppose I decided to have some scrolling text (gasp) , is there some type of CSS(3?) or HTML(5?) way to do this that is technically correct (i.e. not deprecated)? If there isn't a CSS/HTML solution, should I use: Javascript, which will be heavier to download and might be turned off (is that a pro or a con?), but I get the bonus of being W3C

Text scrolling (Marquee) in QLabel

江枫思渺然 提交于 2019-11-27 17:02:24
问题 I'm studying WidgetMarqueeLabel class: #include "WidgetMarqueeLabel.h" #include <QPainter> #include <QWidget> WidgetMarqueeLabel::WidgetMarqueeLabel(QWidget *parent)//*parent) { px = 0; py = 10; speed = 1; direction = RightToLeft; connect(&timer3, SIGNAL(timeout()), this, SLOT(refreshLabel())); timer3.start(10); } void WidgetMarqueeLabel::refreshLabel() { repaint(); } WidgetMarqueeLabel::~WidgetMarqueeLabel() {} void WidgetMarqueeLabel::show() { QLabel::show(); } void WidgetMarqueeLabel:

JavaFX - horizontal marquee text

断了今生、忘了曾经 提交于 2019-11-27 16:48:26
问题 I am trying to achieve effect similar to marquee - line of long (in my case) text which is moved in horizontal axis. I managed to get it work, but I can't call it satisfactory. My Controller class looks as below: @FXML private Text newsFeedText; (...) @Override public void initialize(URL url, ResourceBundle resourceBundle) { TranslateTransition transition = TranslateTransitionBuilder.create() .duration(new Duration(7500)) .node(newsFeedText) .interpolator(Interpolator.LINEAR) .cycleCount

Android Marquee [duplicate]

与世无争的帅哥 提交于 2019-11-27 15:03:35
This question already has an answer here: Marquee text in Android 16 answers Is there any working example for Marquee in android? I went through some sites, but that examples are not working. Thank you for the answers.. But the following code is not working anyway. I am using Android 2.2. <TextView android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit ="marquee_forever" android:text="Marquee.."/> it's easy to do via XML. Use the following settings: android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" android:focusable=

How to create a marquee effect for a text of smaller length not exceeding the screen size in Android?

落花浮王杯 提交于 2019-11-27 14:31:52
I have been trying to give the marquee effect for the word HELLO in my application but android does not allow the same unless the length of the text exceeds the screen size. Is there a solution around it? PS: As simple as this seems I haven't got my hands on ANY solution yet. I used simple light weight of ticker like animation which I developed in my early Android days. below is complete code. Hope this helps. Works for all API levels of Android import android.os.Bundle; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.view.Menu; import

How to make marquee UILabel / UITextField / NSTextField

半腔热情 提交于 2019-11-27 13:27:48
问题 I need to make marquee UILabel in Xcode. The marquee will scroll from right to left. I tried CCScrollingLabel also JHTickerView and others. But i can not find simple code with marquee with out any views/arrays/some stupid libraries and others How to make marquee with UILabel ? ( UITextField and NSTextField are OK too). 回答1: You need NSTimer and you need to invoke a method something as : * This is for OSX, you can easily convert it into iOS, NSTextField and UILabel has different methods. -

Is the marquee HTML element supported by all browsers yet?

♀尐吖头ヾ 提交于 2019-11-27 09:41:29
Is it all right to use <marquee> HTML element yet? I mean, is it supported by all browsers yet? I know Twitter is using it, I think it's quite good for announcements and I'd like to use it, but I don't know if it will work properly yet. Does anyone know? No, it was DEPRECATED by the W3C. Good luck! EDIT: An alternative for marquee would be to display the whole string in a span or div, for accessibility. EDIT2: I can't be sure but at the first glance, twitter isn't using it, BUT even if they used it (which they shouldn't) you should not follow their bad example, they can make mistakes too! :)

Smooth text animation (Marquee) using WPF

℡╲_俬逩灬. 提交于 2019-11-27 08:46:54
Trying to build a marquee control with smooth text animation. Current efforts include: Using translate transform Using animation on Canvas dependency properties (Left, Right) Using animation on custom dependency property (Point) and using drawing visuals (formattedtext) Using CompositionTarget.Rendering But the animation is still choppy and resource intensive (2-10% CPU). Test code used in default wpf window which I assume should produce a smooth animation: <TextBlock x:Name="_box" FontSize="64" CacheMode="BitmapCache" Text="lorem ipsum"> <TextBlock.RenderTransform> <TranslateTransform x:Name=

Why is <marquee> deprecated and what is the best alternative?

蓝咒 提交于 2019-11-27 07:35:01
Longer time I'm curious about HTML tag <marquee> . You can find in MDN specification : Obsolete This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. or on W3C wiki : No, really. don't use it. I searched several articles and found some mention about CSS relevant replacement. CSS attributes like: marquee-play-count marquee-direction marquee-speed but it seems, they don't work. They were a part of specification in year 2008 , but they were excluded in year 2014 One way, proposed by W3 Consortium

How can I display scroll text like marque in Blackberry using J2ME?

雨燕双飞 提交于 2019-11-27 07:32:02
问题 How can I display scroll like marquee text in Blackberry using J2ME? That moves from left to right or vertically? Any help will be very much appreciated. 回答1: its really easy to display. check the code below . import java.util.Timer; import java.util.TimerTask; import net.rim.device.api.ui.DrawStyle; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.Font; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component