ScreenGlide

1. Banner summary

ID Number: 26H039.
Description: banner expands, closing a web page content, on mouseover the banner.
Type of a code: ajax, poster, extension.
Examples: MTS banner.
Third party tracking: Flash banner preparation for further AdRiver pixel insertion.
Specification: initially ScreenGlide banner has a small size. When an user moves mouse on the banner it expands in large size covering a content of the web page. When an user moves a mouse from the banner, it takes the initial size. Images can be used for this banner. If file doesn’t have the .swf extension it is considered as image.

One recommends using a poster code only if a banner is situated at the second screen and should be displayed when an user scrolls to it. On this code banner is displayed after complete loading of the webpage. In other cases one strongly recommends using an extension code.

2. Flash-movie preparation (all types of code)

You should prepare two flash-movies: small sized and big sized. You should also prepare an image which is shown to those users who do not have a compatible version of flash player installed. The image and small flash-movie should have the same size.

The first frame of flash-movie should contain the following ActionScript:


if(ar_init == undefined){
 ar_init = true;
 System.security.allowDomain('*');
}

For button element use the following ActionScript:


on (release) {
       getURL(_root.link1, "_blank");
}

To open advertiser’s website in a new window use the _top parameter.

3. JavaScript preparation (an ajax type of code)

Download an example. Open a script.js file with text editor. You may change only an editable block.


var 	ar_img_name	= '0.gif',
	smallflashname	= '1.swf',
	ar_width_small	= '240',
	ar_height_small	= '400',
	bigflashname	= '0.swf',
	ar_width_big	= '480',
	ar_height_big	= '400',
	ar_valign	= '1',
	ar_align	= '1',
	ar_flashver	= '8',
	ar_alt_link	= '',
	ar_zeropixel	= '',
	ar_wmode	= 'opaque';

Variables:

  • ar_img_name — an image name, may contain ‘http://’, in this case will be loaded from location.
  • smallflashname — a small flash-movie (or image) name, may contain ‘http://’, in this case will be loaded from location.
  • ar_width_small — a small flash-movie width.
  • ar_height_small — a small flash-movie height.
  • bigflashname — a big flash-movie (or image) name, may contain ‘http://’, in this case will be loaded from location.
  • ar_width_big — a big flash-movie width.
  • ar_height_big — a big flash-movie height.
  • ar_valign — vertical alignment. Zero (0) — the banner expands up; 1 — the banner expands down; 3 — the banner expands center.
  • ar_align — alignment. Zero (0) — the banner expands left; 1 — the banner expands right; 3 — the banner expands center.
  • ar_flashver — version of a Flash Player on an user’s PC.
  • ar_alt_link — alternative link if need.
  • ar_zeropixel — third party tracking URL.
  • ar_wmode — you can use one of the values:
    • transparent — the background of the HTML page shows through all transparent portions of the movie. This option can slow animation performance.
    • opaque — the movie hides everything on the page behind it.
    • window — movie plays in its own rectangular window on a web page.

Save the script.js file.

4. Requirements

Names of the files can consist of numbers, Latin letters or underscore symbols only and can’t contain any Russian letters, space symbols, quotes or other special symbols. Size of the flash banner and the image should be the same.

5. The limit of the file size for banners in AdRiver

  • gif, jpeg, png-files (img width x height banners on AdRiver) — 600К;
  • swf-files (flash width x height banners on AdRiver) — 600K;
  • other file types — 600K;
  • for multicomponent banners the limits are checked for each one component.

To download in the banner files with extra-limit size you can use the box Расположение на стороннем сервере, in which you should insert the pathname to an external server.

For the banners that can’t be loaded from an external server it is possible to increase the limits of the file size. It comes to agreement with sales and support departments.

Last modified on 29.03.2016