There are several variations/types of ways to assign a function to the onload event. Some of these are mutually exclusive. If you only use that type, whichever one is seen last by the browser is the only one that will be executed.
If you look inside the motiongallery.js script, you will see this line near the end:
Code:
window.onload=fillup;
That's one of the exclusive ways I was talking about. Using onload in the body tag is another. But you can combine them into one onload in the body tag -
Get rid of this:
Code:
onpageload="javascript:getFilenameFromURL();"
That actually does nothing.
and get rid of the:
Code:
window.onload=fillup;
from the other script.
Now you can put them together in the body tag:
Code:
<body style="background-image: url('background.jpg');" onload="fillup();getFilenameFromURL();">
Bookmarks