javascript - Java Script - Loading image into a property -
i using snowstorm.js javascript file webpage.
current source allows change character 'snowflake' displayed as. however, able change property of snowflake image of snowflake have created.
you able edit source , line sets character displayed.
this.snowcharacter = '•'; // • = bullet, · square on systems etc.
is there way can change display image instead of character , if so, how done? have never worked javascript before or pointers greatful.
it looks snowstorm.js might have functionality already. have seen information posted @ http://www.bozo.us/javascript/snowstorm/? page suggests:
file structure
the script looks snow images under ./image/snow/ default shown below. if desired, can changed in user-configurable section.
this seems correspond update mentioned @ bottom of page linked, says:
1.2.20041121a
script moved 1 file (snowstorm.js) simplicity
addeventhandler , png support functions updated
there's ton of hacky ways in javascript, maybe lead clean solution. luck!
Comments
Post a Comment