Sedang Disiapkan

flashlight

Modification to Javascript script 'Spotlight'

source page: [url removed, login to view]

demo page: [url removed, login to view]

we want to record the mousemoves over a pre-defined area of the screen. the background should be either a picture (stimulus, see below) or ideally also something like the drag'n'drop script or a webpage.

definitions

participant: person who attends in an experiment (see below)

stimulus: picture that is displayed as background of the script (800*600)

task: display of one stimulus. participant moves (searches with) mouse over and clicks on submit to get to next task

experiment: arbitrary number of tasks

background layer: in the demo example above a picter with digits from 0 to 10

top layer: in the demo example 'black'

functionality:

1) recording of the mouse moves during a task into the following table:

CREATE TABLE moves (

id INTEGER UNSIGNED ZEROFILL NOT NULL AUTO_INCREMENT,

participant_id INTEGER UNSIGNED NULL,

task_id INTEGER UNSIGNED NULL,

moves TEXT NULL,

time INTEGER UNSIGNED NULL,

timestamp INTEGER UNSIGNED NULL,

PRIMARY KEY(id)

);

participant_id: comes from referrer like in the drag'n'drop script

moves: should consist of x and y coordinate, and time (in msec), click of mouse button (comma separated). the coordinates should be recorded locally and sent to the database upon 'submit button' press. this means we get one entry for each task (and participant) with a large TEXT field.

time: time ellapsed for a task (from load to press of submit button)

task_id: foreign key from 'tasks' table

2) defining task parameters

at the moment i can only think of a parameter that defines the background image (stimulus). like an id added to a name: eg: [url removed, login to view] where XXX comes from the stimulus field. it mightbe necessary to use an actual html page as the background. therefore the field type 'text'.

visibility defines whether the top layer is black or transparent.

CREATE TABLE tasks (

id INTEGER UNSIGNED ZEROFILL NOT NULL AUTO_INCREMENT,

task_id INTEGER UNSIGNED NULL,

stimulus TEXT UNSIGNED NULL,

visibility INTEGER UNSIGNED NULL,

PRIMARY KEY(id)

);

additionally the parameters from the script itself should be added. either to 'tasks' or to a new table.

sCircleWidth = 168 //The width the script will clip to

sCircleHeight = 168 //The height the script will clip to

sStarty = 200 //Where do you want it to initially start

sStartx = 200 //Where do you want it to initially start

clipSpeed = 20 //Number of pixels for each step in the animation.

Kemahiran: Javascript

Lihat lebih lanjut: flashlight javascript, javascript flashlight, script flashlight, html script flashlight, javascript flashlight text, text flashlight html script, unsigned integer, michael page, defining you, flashlight animation javascript, javascript flashlight script, flashlight demo, flash light table script, bid flashlight, script flashlight html, flashlight unsigned, timestamp, think name, screen recording, primary, null, moment, javascript animation, get clicks, flashlight

Tentang Majikan:
( 20 ulasan ) New York, United States

ID Projek: #98494