marquee

An alternative to the ancient “marquee” tag?

依然范特西╮ 提交于 2019-12-22 12:09:07
问题 What is the standard equivalent of the "marquee" tag? I'm looking for a solution in HTML, C#, asp.NET or ASPX, jquery, java script 回答1: The "marquee" tag was not included in the standard because it's a "visual" tag, not a "semantic" tag. As such, none of the languages that you want have an exact equivalent. I suggest using Javascript to do animations on your webpage. (I hear that jQuery is a great framework to get started with.) Note: As someone pointed out in MSO chat, there is actually a

Hover Over to Pause Marquee

非 Y 不嫁゛ 提交于 2019-12-19 05:19:16
问题 I want to create a Marquee that scrolls some news articles but when the user hovers over it I need it to pause and when the user hovers out of it (onMouseOut) I need to ti start back up. This did not work: <marquee onMouseOver="this.stop()" onMouseOut="this.start()">Text</marquee> Does anyone have any suggestions on how I can achieve this in a minimal amount of code? 回答1: The marquee tag has an attribute called scrollamount which controls how fast it goes. All we need to do is set the value

How to handle GridView with cell of different heights?

倖福魔咒の 提交于 2019-12-18 13:39:12
问题 NOTE: OK, I admit the title is a bit vague, but English is not my main language, and I'm not sure how to describe the problem in one sentance. Background I'm trying to create an app that shows all apps information on a gridView. The gridView has its numColumns set to auto_fit , so that its number of columns will be set nicely for all types of screens. The problem Since each app's information can sometimes be long, the cell height can be different from those that are next to it. I want the

Marquee effect in Java Swing

ぐ巨炮叔叔 提交于 2019-12-17 02:23:24
问题 How can I implement Marquee effect in Java Swing 回答1: Here's an example using javax.swing.Timer . import java.awt.EventQueue; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; /** @see http://stackoverflow.com/questions/3617326 */ public class MarqueeTest { private void display() { JFrame f = new JFrame("MarqueeTest"); f

HTML之marquee实现文字滚动显示

白昼怎懂夜的黑 提交于 2019-12-14 07:32:20
滚动效果: <div id="info" style="margin-top: 6px;"> <i class="fa fa-volume-up" aria-hidden="true" style="position: relative;top: -5px;"></i> <marquee width="20%" id="scrollText" οnmοuseοver="this.stop();" οnmοuseοut="this.start();" scrollAmount="5" direction="top"> <span id="noticeContent" οnclick="showEvlDialogWindow()">您有知识评价回复待查看</span> </marquee> </div> scrollAmount="5" 数值越大滚动越快; <i class="fa fa-volume-up" aria-hidden="true"></i> 图标,使用的话要引包; 资料: 语法: <marquee></marquee> 以下是一个最简单的例子: 代码如下: <marquee><font size=+3 color=red>Hello, World</font></marquee> 下面这两个事件经常用到: onMouseOut="this.start()"

Setting of TextView stops marquee scrolling of other TextView

扶醉桌前 提交于 2019-12-14 00:45:46
问题 This was asked elsewhere, but the solution did not work for me. So posing it again with more context. The issue is that an activity contains a scrolling music title text view which is disrupted by an updating elapsed time counter text view. I have these two TextView widgets in my activity layout (although they are encompassed by other layout containers). <TextView android:id="@+id/v_current_time" android:minWidth="26dp" android:layout_width="wrap_content" android:layout_height="wrap_content"

Marquee TextView not working in Android Layout

二次信任 提交于 2019-12-13 20:16:39
问题 I'm trying to get @+id/trackname and @+id/artist_and_album to use the marquee setting in the following layout but they won't scroll. I also tried using setSelected(true) and setFocusable(true) in the actual Activity but that didn't work. Here is a picture of the layout: and the XML: <LinearLayout android:id="@+id/player_actionbar" android:layout_width="fill_parent" android:layout_height="48dip" android:layout_alignParentTop="true" android:gravity="center_vertical" android:orientation=

How To Create Dynamic more than one uiview with Marquee Effect in iphone

北城以北 提交于 2019-12-13 01:24:14
问题 I need to create more than one UIView with MARQUEE effect like HTML <marquee> tag. I first need to create UIView dynamically. After add a MARQUEE effect for dynamically created UIView. Any help will be appreciated. 回答1: Do you mean a view that can display a collection of strings that are wider than the view's width which it displays by slowly scrolling them from right to left? You'd need to build it. I did once, by subclassing UIScrollView like this: // CrawlView.h #import <UIKit/UIKit.h>

jQuery-Marquee only working in Firefox

那年仲夏 提交于 2019-12-12 18:32:03
问题 I'm using jQuery-Marquee to simulate a marquee effect for a 'latest tweet' div. But it only works in Firefox. It outputs correctly in Chrome but the marquee doesn't scroll for some reason. Can someone help me figure out what's going on? HTML (this is what outputs) <div class="latest-tweets"> <ul class="sf-js-enabled"> <li> <p class="tweet-text"> <div style="width: 100000px; margin-left: 0px;" class="js-marquee-wrapper"> <div class="js-marquee" style="margin-right: 0px; float: left;">RT <a

html 5 marquee tag error in w3c validation

夙愿已清 提交于 2019-12-12 14:27:24
问题 I have some text in marquee tag. <marquee direction="left" scrollamount="4"> Test Test Test Test Test </marquee> I am using html 5 and css 3. When i check my html in w3c validator, it shows the following error. Element marquee not allowed as child of element div in this context. (Suppressing further errors from this subtree.) <marquee direction="left" scrollamount="4"> How to fix this? 回答1: Marquee tag is not html5 (is not html at all, but Microsoft proprietary tag from 1995) you can : use