ComputersProgramming

Attractive pages, or About how in HTML to make a running line

Exposure balance between attracting the attention of visitors and the animation of the pages of the site is essential. The modern Internet user is experienced enough and follows his specific plans, which fit into certain forms of presentation. It is the numerous advertising technologies of developers and site designers that have generated an adequate response from visitors. This is important to consider. If the plans do not have the goal of creating a truly active site that is able to respond individually to everyone who has visited the page, offering a dialogue that he expects, it is better not to show excessive diligence in the field of advertising in general and the dynamics of the pages in particular.

Obsessive animation as an unexpected soundtrack or a sentence "write a phone number and you will be called a minute later" no longer attracts the visitor, but in most cases reduces the interest in the resource, whereas you can draw a running line in HTML code in order to draw attention to the necessary elements Site.

JavaScript or HTML

The capabilities of HTML and CSS allow you to quickly get different original effects of moving elements, and often you can do without simple JavaScript code, because to make the running line and the running image allows the marquee tag, and at no extra cost. Originally it appeared in Internet Explorer, then it was implemented in other browsers.

Interest in simple animation has recently been reduced, and the options describing how to make a running line in HTML have come to be considered a relic of the past. Although it is not known that it's time to relate to history and consign to oblivion. Another historical relic can be so taught to contemporaries that interest will be higher than from the gadgets of the most expensive smartphone or nanorobot's intellect.

Marquee tag

The marquee tag allows you to set the movement up / down, from left to right or, conversely, inside the entire page or a separate block. There are attributes of color, size, speed. The developer has a full-featured tool palette to make the appearance and movement of content on the page meaningful, attractive and unobtrusive. Before you make a running line in HTML, you need to understand that this is primarily the result of the developer's interest in the visitor, his desire to attract the latter with good content, suggested properly. However, it's not at the running lines, but how the page is executed and its elements are interconnected.

The idea of how to make a running line in HTML unobtrusive in order to make a live page comes to the head of every developer. In this element, you can note the current information, show the movement of shares, price changes, the appearance of discounts and so on.

Basic attributes of Marquee

Marquee does not offer a particularly large selection of options that describe how to create a running line in HTML:

  • The behavior attribute specifies the movement between the sides of the element (alternate);
  • Scrolling, in which the content in a circle comes out from one element boundary and goes to another (scroll);
  • You can output words and "glue" them to each other (slide).

The direction of motion determines the direction attribute, which allows you to define left-right movement (left | right) or up-down (up | down).

The boundaries of the area in which the content moves are determined by the width and height attributes, with which you can specify "fine" effects. это не всегда именно перемещение информации. After all, the idea of how to make a running line in HTML is not always the movement of information. You can set very small borders for one character (for example, "o", "x", "!", ...) and get completely unexpected and attractive composition of elements without having to spend a single byte of JavaScript code.

Inserting an image

You can move not only information, but also other elements of HTML markup. You can achieve original effects when moving, for example, * .gif images. Unlike the PNG and JPG formats, GIF drawings can be animated by themselves. For example, you can draw a spinning wheel of a car or a drop that changes when it flies to the ground. Having set the movement along the horizontal of the wheel, which itself rotates, you can create the illusion of motion. Well, four wheels are already a living car without a single line of JavaScript code.

Similarly, you can set the droplet movement from top to bottom. While the image "falls", if its change corresponds to the aerodynamics of the process, the desired effect will be achieved by completely insignificant actions.

How to make a running line in HTML optional means simple and effective? You can come up with interesting options for using non-traditional ways. It is known that changes in the colors of characters, backgrounds, loading images, manipulating the size of elements are allowed on pages in dynamics. This makes it possible to create running lines, for example, as a sequence of elements that appear on the screen with varying degrees of transparency, change their size or position on the page.

Hypertext and programming: everything is formally and strictly written, but even strict formal designs do not limit the possibilities for convenient, efficient and dynamic presentation of information.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.atomiyme.com. Theme powered by WordPress.