[rz] Position Functions Caller

In this section you can announce self-made paid extensions.
*** THIS SECTION CONTAINS PAID EXTENSIONS ONLY ***
Post Reply
User avatar
[RZ]
 
 
Posts: 2150
Joined: Tue Nov 04, 2008 12:08 pm

[rz] Position Functions Caller

Post by [RZ] » Thu Jan 15, 2015 8:51 am

[rz] PFC v1.0

Page Position Functions Caller (aka "PFC").

This lightweight extension is the skeleton of the advanced algorithm for all the responsive and most acclaimed [rz] "position based" extensions.

This solution allows experienced users to interact programmatically -based on the browser scrollbar position- with all the [rz] plug-ins that support external access. It creates 13 advanced virtual events to trigger functions calls.

You can also access to internal variables related to the instance to let your code react accordingly.


HTML 4.01 Transitional
W3C compliant


DEMO


How to use?

Drag and drop the extension and resize it as you do in all [rz] "position based" extensions.

Available virtual events:

The "map" related events:

onscroll_before: The functions to call when scrolling before the selected area.
onscroll: The functions to call when scrolling within the selected area.
onscroll_changedir: The functions to call when the scrolling direction changes within the selected area.
onscroll_out: The functions to call when scrolling outside the selected area.
onscroll_after: The functions to call when scrolling after the selected area.

The "one-time" related events to the "map" boundaries:

onbound_before: The functions to call when the browser reaches a position before the selected area.
onbound: The functions to call when the browser reaches a position within the selected area.
onbound_out: The functions to call when the browser reaches a position outside the selected area.
onbound_after: The functions to call when the browser reaches a position after the selected area.

The browser related events:

ontop: The functions to call when the browser reaches its top position.
oncontent: The functions to call when the browser scrolls.
onchangedir: The functions to call when the scrolling direction changes.
onbottom: The functions to call when the browser reaches its bottom position.

Flags:

MyInstance.scrollingUp: The browser scrolled up.
MyInstance.scrollingDown: The browser scrolled down.

System values:

MyInstance.browserScrollTop: The browser scrollbar offset.
MyInstance.browserScrollMax: The maximum offset that the browser can reach based on the page contents.
MyInstance.browserHeight: The browser height.
MyInstance.mapTop: The position of the selected area in the current breakpoint.
MyInstance.mapHeight: The height of the selected area in the current breakpoint.

* Replace "MyInstance" with the actual instance name.


Enjoy!

sikhoonak2
 
 
Posts: 13
Joined: Thu Jul 31, 2014 12:36 pm

Re: [rz] Position Functions Caller

Post by sikhoonak2 » Thu Jan 15, 2015 9:07 am

nice ! thanx

User avatar
[RZ]
 
 
Posts: 2150
Joined: Tue Nov 04, 2008 12:08 pm

Re: [rz] Position Functions Caller

Post by [RZ] » Thu Jan 15, 2015 9:29 am

thank you for your feedback

User avatar
zinc
 
 
Posts: 1382
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom

Re: [rz] Position Functions Caller

Post by zinc » Thu Jan 15, 2015 10:57 am

You kept this one quiet!!! :) N-I-C-E!!!!!
Good news everyone!

User avatar
[RZ]
 
 
Posts: 2150
Joined: Tue Nov 04, 2008 12:08 pm

Re: [rz] Position Functions Caller

Post by [RZ] » Thu Jan 15, 2015 11:32 am

hi zinc
yes, this is a bit oldie lol
now you can squeeze the maximum of your position based collection with this toy and build even more sophisticated webs... i'm just here to help ( specially to loyal supporters :) )

Post Reply