Upload moveobjectslib.js file to your server.
Geocitizens are welcome to use script directly from my
directory by changing script SRC attribute in example below to "/SiliconValley/Lakes/8620/moveobjectslib/moveobjectslib.js"
Edit your HTML source with any TEXT editor like Notepad.exe and
add lines which are in bold blue in example below. Be sure that you
place each on the right place. First part must go between <head> and </head>
tags. Second ( onUnload and onLoad handlers ) must be inside <BODY ...
> tag. And last one must go just before </BODY> tag of HTML.
Don't use HTML editors,
in most cases they are too dumb to handle scripts correctly. use TEXT editors
only.
Most of the complaints like
"your script doesn't work" that I receive from users are those who use FrontPage and Adobe PageMil. Be careful! FrontPage sometimes change
scripts so, that it works only in MIE and won't work in Netscape. So you think it works fine, but your visitors who use Netscape might have
problems...
|
Customizing of script
There are 2 functions in the above example which creates 2 different sorts objects, createStarChips function creates objects which
moves from the center of the screen, createRandomChips function creates randomly moving objects. Both functions have a first
boolean parameter which can be true or false, If it is true then the images will be resized while moving. If it is false then the
images will always have the same original size. Note that Image rescaling is a CPU time consuming process and a large number of
resizable objects will slow down the browser. Next to this parameter, pairs of imageFileName and linkURL follows. One can
specify as many pairs as needed. If you don't need to have an image linked to a URL, then place null instead of link.
Support
Yes, I'm ready to help if you have problems with any of my scripts. I'd prefer it if you would ask these questions in my Help
forum. And please, before asking, check above headlines as you might find a similar question already answered.