budapestnori
Technical User
Ok, I am sure this will be easy for some, but is has me stumped. I had had a web page with a call to a javascript function in the body tag working great. The function passed some params to an included js file which was inserted up in the body. Next, I came across a high-tech site that had a cool sroll effect to a clipped paragraph div on the page. Are you with me? I cut out this feature and was able to get it to work in and by itself on a page. Good for me I thought, but when I copy all the code into one of my existing pages, the clipped pararaph appears but doesn't scroll. I located the problem, but don't know how to fix it. Apparently, in the head tag, there is this code:
window.onload = function(){
myScroll = new Scroller(10,18,76,'track','up','down','drag','contentMask','content');
};
Further down in my body tag I have this code:
onload="mbSet('mb2', 'mbh');"
When I take the body onLoad call out code out, the scroll one works, leave it in, and the scroll one won't scroll. Is this an easy fix? I hope so.
window.onload = function(){
myScroll = new Scroller(10,18,76,'track','up','down','drag','contentMask','content');
};
Further down in my body tag I have this code:
onload="mbSet('mb2', 'mbh');"
When I take the body onLoad call out code out, the scroll one works, leave it in, and the scroll one won't scroll. Is this an easy fix? I hope so.