Settings
Get Code
Navigation:
-- select a location --
Back to Scripts & Tutorials
Cover Windows Generator
Dialog Windows Generator
Popup Windows Generator
Full Windows Generator
Confirm Windows Generator
Subscribe Windows Generator
Mail Windows Generator
Bookmark Windows Generator
Home Page Windows Generator
Alert Windows Generator
Launch Trigger:
Scroll View
Page Exit
Alert Window Text:
Launch Time Delay:
minute(s)
second(s)
Display Frequency:
Show no more than once per page visit
Show no more than once per browser session
Show no more than once every
day(s)
hour(s)
minute(s)
second(s)
Code Insertion 1 of 2
Insert the following code just above the closing BODY tag (</body>) on your web page.
If you prefer to have less code appear directly on your web page, you can load this code via an external .js file.
To do so, simply copy the above code [excluding the SCRIPT tags - copy only the portion between the SCRIPT tags (<script> </script>)] then save the code in a separate file by itself.
The filename can be any name of your choice and should end with a .js file extension. Example: svcode.js
Then insert the following code just above the closing BODY tag (</body>) on your web page.
NOTE: Be sure to upload the .js file to your site's server. The .js filename within the quotes should be either the full or relative web page location of the .js file where you stored the code.
Code Insertion 2 of 2
Insert the following code within the BODY tags (<body> </body>) at the location in your web page where you want the ScrollView trigger point to "secretly" appear. Whenever someone scrolls past this point, the ScrollView trigger will be launched.
You can also add a bottom range trigger point, to limit the trigger point area to a range of your choice. If no bottom trigger point is inserted on the page, then the ScrollView trigger point area will be from where you insert the main trigger point (above) to the bottom of the page.
To use the bottom range trigger point, simply insert the following code within the BODY tags (<body> </body>) at a location of your choice
below
where you inserted the main trigger point above.
Code Insertion 1 of 1
Insert the following code just above the closing BODY tag (</body>) on your web page.
If you prefer to have less code appear directly on your web page, you can load this code via an external .js file.
To do so, simply copy the above code [excluding the SCRIPT tags - copy only the portion between the SCRIPT tags (<script> </script>)] then save the code in a separate file by itself.
The filename can be any name of your choice and should end with a .js file extension. Example: pecode.js
Then insert the following code just above the closing BODY tag (</body>) on your web page.
NOTE: Be sure to upload the .js file to your site's server. The .js filename within the quotes should be either the full or relative web page location of the .js file where you stored the code.
How To Turn Off The Page Exit Trigger When A Certain Link Is Clicked:
If you would like the Page Exit trigger to be disabled if a certain link is clicked (such as an order link), simple insert the following code within the link tag.
Example: If your link is...
<a href="order.htm">Click Here To Order</a>
...you would insert the above code so that it appears like this...
<a href="order.htm"
onClick="peoff=1"
>Click Here To Order</a>