creatives:ehtml-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
creatives:ehtml-en [2015/09/29 16:54] – [HTML example] avarga | creatives:ehtml-en [2015/12/08 14:48] (current) – [Handling clicks in case of multiple URLs] avarga | ||
---|---|---|---|
Line 45: | Line 45: | ||
</ | </ | ||
- | **3.** All files have to have unique names, related to the banner, because they will be copied in teh same folder as the other banners running in the same campaign. | + | **3.** All files have to have unique names, related to the banner, because they will be copied in the same folder as the other banners running in the same campaign. |
**4.** All file size has to be under 300KB! | **4.** All file size has to be under 300KB! | ||
+ | |||
+ | ==== Prepare for serving | ||
+ | |||
+ | We have to prepare for the fact, that our banner will be served in an iframe. This document will not contain anything other then what we insert, so we have to make sure that CSS margins, paddings, etc. are reseted, and hide the scroll bars in certain cases. | ||
+ | |||
+ | For this, we recommend using the snippet below, but other properties might be needed in some banner structures. This should be placed before any other CSS, to avoid overwriting of other CSS properties the banner needs. | ||
+ | |||
+ | <code html> | ||
+ | |||
+ | < | ||
+ | body { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | border: none; | ||
+ | | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
==== Including goa-helper.js ==== | ==== Including goa-helper.js ==== | ||
- | To include '' | + | To include '' |
<code html> | <code html> | ||
Line 93: | Line 114: | ||
< | < | ||
(function(){ | (function(){ | ||
+ | | ||
var cT = document.getElementById(' | var cT = document.getElementById(' | ||
cT.href = goa.clickTAG; | cT.href = goa.clickTAG; | ||
Line 118: | Line 140: | ||
Handling multiple CT URLs shoud **not** be done through '' | Handling multiple CT URLs shoud **not** be done through '' | ||
- | We have to attach a '' | + | We have to attach a '' |
- | :!: **It is essential that the '' | + | :!: **It is essential that the '' |
:!: **Further neccesity is that the both the keys and values are written in double quotes. To check the validity of the object, we can use the following site: [[http:// | :!: **Further neccesity is that the both the keys and values are written in double quotes. To check the validity of the object, we can use the following site: [[http:// | ||
<code javascript> | <code javascript> | ||
- | {" | + | {" |
</ | </ | ||
While displayment, | While displayment, | ||
- | === HTML Example | + | === HTML example |
- | + | ||
- | Managing the first URL: | + | |
<code html> | <code html> | ||
- | <a id=" | + | <a id=" |
+ | < | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </script> | ||
</ | </ | ||
- | |||
=== JS example === | === JS example === | ||
Line 164: | Line 191: | ||
**On the topic of available functions of display modules:\\ | **On the topic of available functions of display modules:\\ | ||
- | [[https://wiki.adverticum.net/html-doc:start#display_sablonok_funkcioinak_hasznalata]]** | + | [[http://dev.adverticum.com/creatives:html-en#using_display_module_functions]]** |
==== Close ==== | ==== Close ==== | ||
Line 202: | Line 229: | ||
<div id=" | <div id=" | ||
< | < | ||
- | document.getElementById(' | + | document.getElementById(' |
</ | </ | ||
Line 243: | Line 270: | ||
<div id=" | <div id=" | ||
< | < | ||
- | document.getElementById(' | + | document.getElementById(' |
</ | </ | ||
Line 286: | Line 313: | ||
<div id=" | <div id=" | ||
< | < | ||
- | document.getElementById(' | + | document.getElementById(' |
</ | </ | ||
Line 333: | Line 360: | ||
<code javascript> | <code javascript> | ||
- | {" | + | {" |
</ | </ | ||
This will be recieved by the tamplate and passed to the banner. If there is a need for extra parameters, please consult the developer to use the proper variable names. | This will be recieved by the tamplate and passed to the banner. If there is a need for extra parameters, please consult the developer to use the proper variable names. | ||
+ | |||
+ | :!: **Attention! This example won't measure clicks, it's just a sample, or if we want to use 3rd party measure links. To measure clicks please use the example below. | ||
In the example the two parameters are '' | In the example the two parameters are '' | ||
Line 348: | Line 377: | ||
<code javascript> | <code javascript> | ||
- | {" | + | {" |
</ | </ | ||
- | :!: It very important to use double quotes, and '' | + | :!: It very important to use double quotes |
When done in reality, the numbers will be the URL IDs. | When done in reality, the numbers will be the URL IDs. | ||
---- | ---- |
creatives/ehtml-en.1443538445.txt.gz · Last modified: 2015/09/29 16:54 by avarga