PC SOFT
ONLINE REPOSITORY
FOR WINDEVWEBDEV AND WINDEV MOBILE

Home |  | Sign in | English US
WEBDEV Exemplo WW_Overview_Mobile_Application
Published by Boller
in the category Tools
New features



Description
WEBDEV Exemplo WW_Overview_Mobile_Application

Javascript

Move Scroll Anime

// Scroll to a position
function ScrollToAnime(nPosition){
$('html, body').animate({scrollTop:nPosition}, 'slow');
}

//--------------------------------------------------------------------------------------------------

// Summary: Displays an area
// Syntax:
//AreaDisplay (<nSubscript> is int)
//
// Parameters:
// nSubscript (integer): Subscript of the area to display
//
PROCEDURE AreaDisplay(nSubscript is int)

nMargin is int = ZONE_Header..Height

BRW_Bar..Collapsed = True

SWITCH nSubscript
CASE 1
ScrollToAnime(ZONE_1..Y - nMargin)
CASE 2
ScrollToAnime(ZONE_2..Y - nMargin)
CASE 3
// YouTube video
ScrollToAnime(ZONE_3..Y - nMargin)

// Start the video playing
EXTERN player
IF player THEN
player.playVideo()
END
CASE 4
ScrollToAnime(ZONE_4..Y - nMargin)
CASE 5
ScrollToAnime(ZONE_5..Y - nMargin)
END
Illustrations, screen shots
none
none
User reviews
(To evaluate this resource, click 'Write a review')
No review or comment? Be the first one!