I'm a little confused. You mentioned I should wrap my entire code block in a 'document ready' section. I also have three similiar blocks of code but with different heights. Do they also get wrapped in the document ready section?
More info - The function scrollTopTopS(){ is what I trigger with my swf using AS2. With your document ready section how does flash trigger the function? Could you give an example.
Here's my current script. Maybe you can spot an error.
<script type="text/javascript">
function scrollToTopS(){
$.scrollTo('0px', 800, {easing:'easeOutQuad'}, function() {
$("#flash").animate({'width':'500px','height':'800px'},500, function() {
document.getElementById('main').height="800";
});
})
}
</script>
Forgive my lack of intelligence on the above. This is my third week of jquery and more indepth html use. I mainly use flash timeline & AS2 although I'm trying to broaden my script knowledge.
Many Thanks