1.html
The code is as follows
Copy Code
2.css
The code is as follows
Copy Code
. box{width:150px;height:25px;line-height:25px;border: #bbb 1px solid;Overflow:hidden;}. box ul{margin:0; padding:0}. Box li{he
Support left and right scrolling code
The direction parameter can be set: Up Down left right (control scrolling direction)
scrolldelay = 100 (100 is the speed, the larger the value the faster the scrolling ...)
Onmouseout=this.start () ... Mouse move out of state scroll
Onmouseover=this.stop () ..... Stop
Jquery sample code for multi-line text image scrolling
Today, I will share a jquery file to implement multi-row scrolling.
I have read a lot of announcements on some Forum websites.
The Code is as follows:
// Multi-row scrolling (function ($) {$. fn. extend ({Scroll: functio
Core code
Please refer to the notes for detailed explanation.
The code is as follows
Copy Code
$ (function () {var _wrap=$ (' Ul.line ');//define scrolling areavar _interval=2000;//defines the scrolling gap timeThe Var _moving;//need to erase the
Bxcarousel is an easy-to-use jquery image scrolling plug-in with many configurations, featuring:
You can specify the total number of elements to display
You can specify the number of elements to scroll each time
Auto Playback mode
Previous/Last button controls picture flow
parameter meaning:
Display_num: Displays the number of elements, several pictures
Move: The number of elements that are moved when you click the left and right control keys, where
This article mainly introduces you to the page HTML text scrolling code effect how to write? When we browse the news broadcast page, we always see a section of the bottom of the real-time news scrolling, such as the effect can usually be JS or CSS to complete the operation. Here is a detailed introduction to the two wa
object: innerHTML: set or obtain the HTML scrollHeight located in the start and end labels of the object: get the scroll height of the object.
ScrollLeft: sets or obtains the scrollTop distance between the left edge of the object and the leftmost end of the currently visible content in the window: set or get the scrollWidth between the top of the object and the top of the visible content in the window: get the scroll width of the object offsetHe
Presumably we all notice that the On the basis of the original author made a certain change, mainly in the style above, the table to replace the label. and standardize JavaScript to run in all browsers.Take a look at several properties of the object: InnerHTML: Sets or gets the HTML scrollheight that is inside the start and end tags of an object: Gets the scrolling height of the object.ScrollLeft: Sets or g
The HTML part is the simplest, as long as we simply write a few can be, mainly in the CSS and JS parts.
The code is as follows
Copy Code
CSS code is the control effect code required by this example, you can do it according to their own n
JQuery implements the method of scrolling the mouse to zoom in and out the image (with demo source code download), jquerydemo
This document describes how to zoom in and out images by using jQuery. We will share this with you for your reference. The details are as follows:
In the project production process, if you encounter such a requirement, you can develop one and record it.
First, you need to define
The principle of the CSS Implementation is very simple, and the following key CSS declarations work (red highlights):
code is as follows
copy code
. Container { /* Rolling container */ perspective:1px; padding:0; Height:calc (100vh-300px); overflow:auto; } . Box { /* The parent of the Parallax element requires a 3D perspective */ height:1280px; ; transform-styl
Oneself imitate the writing of JQ Plug-in wrote a circular scrolling list plug-in, support custom up, down, left, right four directions, support smooth scrolling or discontinuous scrolling two ways, are through the parameter setting. There are some repetitions in the JQ, and there is no better way to streamline it for the time being. However, the effect is still
We must have noticed that
Some modifications have been made based on the original author, mainly in the style above, replace the table with a label. And standardize JavaScript to run in all browsers.
First, let's take a look at several attributes of the object: innerHTML: set or obtain the HTML scrollHeight located in the start and end labels of the object: get the scroll height of the object.
ScrollLeft: sets or obtains the scrollTop distance betwee
Browsing the site often see the site, the sidebar of some content scrolling to the top of the page after the fixed in that position, no longer follow the scroll bar and scrolling. This effect is called "Side bar follow scrolling". It is useful for content that does not want to be scrolled out of the page.
Side column following the implementation of the rolling me
A lot of websites have announcements, and they all like to show in a way that scrolls horizontally. Recently I also wrote the text in jquery scrolling horizontally, to achieve a custom scrolling speed, the mouse after the pause function.
The HTML code is as follows:
JS
Html layout codeCopy codeThe Code is as follows: Js core codeCopy codeThe Code is as follows:// Call to scroll left// Toleft ("demo", "demo1", "demo2", 30, "ti1 ")// Call to scroll to the right// Toright ("demo0", "demo11", "demo22", 20, "ti2 ")Function $ (id){Return document. getElementById (id)}// The left-side scrolling
In this section, I will introduce some special tags in HTML code, which can scroll the text on the webpage and control its scrolling attributes. After learning this chapter, you can control the display methods of text in different sections. However, no matter how you set it, the text is static. In this section, I will introduce some special tags in
We must have noticed that Some modifications have been made based on the original author, mainly in the style above, replace the table with a label. And standardize JavaScript to run in all browsers.First, let's take a look at several attributes of the object: innerHTML: set or obtain the HTML scrollHeight located in the start and end labels of the object: get the scroll height of the object.ScrollLeft: sets or obtains the scrollTop distance between t
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.