ComputersProgramming

The jQuery pop-up window, general information for creating

Pop-up windows are one way to attract users to the site. Of course, this does not give a 100% guarantee of increasing attendance, but still they attract attention to information for a while.

Create a pop-up window jquery - the task is not easy, but if desired, it is completely feasible. And yet, before you start creating such a work, you have to visualize what it is and how it looks.

The site page is created using the HTML language. On it, in the order that the resource owner likes, the buttons are placed. They can be several pieces (from one to ...), at the discretion of the creator. By clicking on such a button, the visitor will see a popup window of jquery. The content of these can be completely different, for example, an attractive picture or a new form of registration, advertising, communication, anything. Fantasy in this matter is not limited to any limits. Pop-up windows often overlap the page of the site with a transparent dark background and on each of them there is an icon, usually understood by users at the level of intuition. The possibilities of this function are unlimited.

At first glance, it is difficult to create such a thing, but this is an erroneous impression. If there is a desire and there is a need, why not go into this in more detail? Even if much is unclear, there is always the opportunity to study the process by contacting professionals. Let's, for example, create and place buttons that will call the registration windows, pictures or photos and tabs. Using a javascript pop-up window, or rather a button, make out a link and set a common class for all of them. The links are placed inside the div tag.

The rel attribute added to each exactly corresponds to the class name of the window and makes it possible to open the desired one, just by clicking on the link. All the jQuery popup window we created. Now it remains to make it neat and attractive. This requires the use of styles.

Work in styles of complexities does not cause: everything is simple and understandable. You only need to know the HTML language a little. But even if the user does not understand it, the necessary information is easily found on the Internet. In order for the jquery buttons, the pop-ups look the same in all known browsers to date, beautifully and accurately: a) center link units; B) round the corners; C) connect the PIE for IE 7-8.

In general, HTML markup will be the same for all pop-ups. Therefore, when using tags, do not get hung up: if you do not know, it's enough to remember a few basic ones. The difference is only in the design of the dimensions, that is, one jquery pop-up window will look different in width. The same goes for the content.

To place the registration form in the above tag, you need to write down the following:

Close

registration on the site

Enter login: Enter password:

In this entry reg_form coincides with the attribute of the first rel button, and the double class of the wrapper block is set to popup reg_form (a space is required). Such an inscription allows you to create both a general style for all pop-up windows, and to specify specific parameters for each individual.

Next we begin to place the button responsible for the pictures. Here too: the double class is indicated and the path to the folder where these images are located is indicated. Well, further in the same spirit.

After the creation it will only be necessary to correct the overall appearance of the page of the site, prescribe the rules for the windows. That is, they will all be identically decorated, edited horizontally, and each will have a button responsible for closing the window itself and its title. In addition, when you download the resource page, they will all be hidden.

If there is no desire to do it yourself, there is always the possibility to download a script that allows you to create a pop-up window automatically, only slightly adjusting the actions of the program.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

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