SmartXSP
  • Welcome to SmartXSP
  • How to create your first campaign
  • SmartPulse
    • Advanced Tracking
  • Transition Effects
  • Social Generator
  • Ad Serving
    • Getting Started for Publishers
      • [ENG] Publishers : Testing Guide
      • [FRA] Editeurs : Manuel d'intégration
  • Settings
    • Site custom settings
    • Macro in Creative URL
  • API Documentation
    • Starter Guide
    • Campaign
    • Creative
    • Account
  • Looker Studio Connector
    • Looker Studio : what is this connector
    • Support
  • Register SmartXSP
  • Terms & conditions
    • Privacy
    • Terms
  • Troubleshooting
    • No URL
Powered by GitBook
On this page
  • SmartCover
  • SmartScroll
  • SmartRead
  • SmartSkin
  1. Settings

Site custom settings

SmartCover

Code
Default
Values
Description

mode

progressive

blank header footer banner progressive (default)

The display mode for the web site

progressive_autostart

0

integer

Number of seconds before progressive mode automaticaly start displaying.

progressive_scroll

200

integer

Number of pixel before to display (also number of pixels for scroll up)

hide_1_min

0

integer

seconds of the start of the first period

hide_1_max

5

integer

secondes of the end

hide_1_dist

1600

integer

pixels to scroll to hide

hide_2_min

6

integer

seconds of the start of the second period

hide_2_max

15

integer

secondes of the end

hide_2_dist

1000

integer

pixels to scroll to hide

hide_3_min

16

integer

seconds of the start of the third period

hide_3_max

360

integer

secondes of the end

hide_3_dist

600

integer

pixels to scroll to hide

close_button

false

bool (false / true)

Add or not a close button on every campagne

// Some code

SmartScroll

Code
Default
Value
Description

final_close

false

bool (false/true)

Enable when the "minimized" button is clicked to never open the ad again.

SmartRead

Code
Default
Value
Description

disable_pip

false

bool (false/true)

Disable the Picture in Picture experience

disable_vision

false

bool (false/true)

Disable the Vision experience

SmartSkin

Code
Label
Default
Value
Description

sm

Sticky Mode

c

c : class t : transform cs : custom

Manage the sticky mode by using a specific class "smk_top" or by managing transform on main element.

tit

Transform Initial Top

0

integer

Distance in pixels to the top of the website when the scroll is at the top. * Only in transform mode

tst

Transform Scrolling Top

0

integer

Distance to keep on top when scrolling. * Only in transform mode

tee

Transform Exist Element

string

Query identifier to have alternate initial and scrolling top value if the element is present. * Only in transform mode

teeit

Transform Exist Element Initial Top

0

integer

Distance in pixels to the top of the website when the scroll is at the top and when element is present. * Only in transform mode

teest

Transform Exist Element Scrolling Top

0

integer

Distance to keep on top when scrolling and when element is present. * Only in transform mode

bck

Background Element

body

string

Query identifier of the element to apply the background color.

You can also have you own custom sticky javascript function :

smxDeep._window._run_id_scrollCustom = function() {
    //Your own function
}

//Example detecting sub navigation
smxDeep._window._run_id_scrollCustom = function() {
    var subNav = smxDeep._document.querySelector(".sub-nav-wrapper");
    var contentDiv =  smxDeep._document.body;
    var smk =  smxDeep._document.getElementById("_run_id_smk");

    if(subNav != null) {
        var initialTop = 179;
    } else {
        var initialTop = 139;
    }
    var scrollingTop = 40;

    var rect = contentDiv.getBoundingClientRect();

    if(smk != null) {
        smk.style.position = "fixed";
        if( rect.top + parseInt(initialTop) > scrollingTop) {
            smk.style.transform = "translateY(" + ( rect.top + parseInt(initialTop)) + "px)";
        } else {
            smk.style.transform = "translateY("+scrollingTop+"px)";
        }
    }
}

Previous[FRA] Editeurs : Manuel d'intégrationNextMacro in Creative URL

Last updated 2 months ago