This article reprinted to http://blog.csdn.net/iunion/article/details/19080259 there are a lot of apps that are starting to use some rolling banner, and I've done it myself, and part of the algorithm is not thoughtful,Just for the sake of realizing the function, after all it was just a few hours of work.Scrolling made 2 types for horizontal and vertical, automatic scrolling interval can be set, rounded corn
object relative to the layout or the parent coordinate specified by the OffsetTop property
Offsetwidth: Gets the width of the object relative to the layout or the parent coordinate specified by the parent coordinate OffsetParent property
When you can figure this out, take a look at a scrolling example:
I have inserted a picture above, the effect is dynamic, not very good-looking, but we also want to see,
This is a seamless
Details about HTML scrolling subtitle code and parameters, and details about scrolling subtitle ParametersHtml text scrolling code
Marquee parameters:BGColor: the background color of the scroll text box.Direction: Set the scrol
time. I've done a lot of scrolling subtitles and I'm not excited about it, so I'm not using it much anymore. A lot of friends often ask how this is done, now do a detailed topic, so that you can get a more comprehensive understanding.Scrolling subtitles are available in the FrontPage component, but FrontPage can only support single-line text, and it can do nothing with multiple lines of text, and it will only support one line of
Recently in doing a front-end development of the project, need to achieve seamless scrolling effect, up and down seamless scrolling. The following small series to realize the code to share the cloud Habitat community Platform, the need for friends can refer to, there are bugs welcome to put forward, common learning progress.
The specific
First of all, we know that the ScrollView has the Contentsize attribute, set to drag, set this property to 3 Imagevie width.When the initialization is displayed, the direct setting of the contentsize is displayed in the position of the second ImageView, in the ScrollView proxy method, we can determine the value of the contentoffset.x, if the decrease is dragged to the left, and if it is increased, drag to the right.If you drag to the left for 0 to finish, if twice times the width of the imgaevie
On some e-commerce sites can often see a number of scrolling banner, many software in the first use of the same advertising bar, as shown:
In fact, there are controls to implement this effect on the GitHub, but it's also very simple to do, so let's see what we can do today.
Let's take a look at the layout file:
The top of the layout file is a viewpager, using Viewpager to achieve the
. OnDestroy (); }}The comments in the code have been described in detail, and I will not repeat them.Unselected Small dot pointer_disable.xml: shape xmlns: Android = "http://schemas.android.com/apk/res/android" android:shape =" oval "; corners android:radius =/> solid android: Color = "#55000000" /> shape ; Small dot Pointer_focus.xml When selected:shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="ova
jquery left and right scrolling focus map banner picture, mouse over show page down
For pages with wide and high widths
Demonstrate
Copy Code code as follows:
Copy Code code as follows:
@cha
Achieve resultsImplementation steps
Mouse into Li, the box becomes wider, the other boxes become narrower, the mouse moves away from the large box and reverts to the originalImplementation steps1. Add a background to Li2. Bind the onmouseover event, mouse into Li, the box becomes wider, the other box narrows3. Remove the box and return to the original
Implementation code "Front-end" javascript+jquery for accordion-style
Banner in the Web page of the concept must have some understanding of it, the following article through the HTML div+css simple implementation, like friends can refer to the next OH
HTML div+css Making Banner
Copy Code code a
in the same line, but it should be able to fit.
Save the HTML of the Forum webpage and open it with FrontPage. It is found that the DIV of the logo is too wide, longer than the width required by the logo, occupying many positions on the top, so the banner cannot display it, to the second line. You just need to set the DIV width of the logo. However, you need to find out where the width is set, and return t
Example of jquery text vertical scrolling code and jquery scrolling code
Jquery text vertical scroll code example:
Vertical text scrolling is applicable to a large number of websites, especially in functional structures such as ne
entry Style:When the mouse through the navigation column, even if you do not touch the text part of the link, you should be able to jump. So you need a CSS style for the When the mouse passes, you want the background color (Background-color property) and the text color (color property) to change.The CSS code when the mouse is linked is as follows:
#nav. navcontent ul Li a:hover{
Background-color: #ff5857;
Color: #ffffff;
}
S
invalidate the scrolling attribute of the IFRAME element, and the IFRAME element will not display a scroll bar.
InChrome SafariIn, although the scrolling attribute of the IFRAME element is "no", if the 'overflow' attribute of the HTML or BODY element of its child pages is 'scroll ', the IFRAME will still be rendered to the scroll bar.Impact
The differences betwe
The code of the multi-line scrolling jQuery loop News list includes the following functions: automatic playback starts when the playback stops automatically when the mouse slides onto the focus chart and horizontal or vertical scrolling is performed, if you are interested, you can find out.
Html fileGundong-0.1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.