View Single Post
Old 07-12-2012, 04:46 PM   PM User | #3
savagebeauty
New Coder

 
Join Date: Jul 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
savagebeauty is an unknown quantity at this point
I've managed to get this working with:

Code:
<script type="text/javascript" language="javascript" charset="utf-8">

<!--
function resettoggle() {
document.getElementById('imagecarousel').style.display = 'none';

}

function displayImages() {
                    document.getElementById$('#imagecarousel').style.display="block";
                    
                }

  $('#imagecarousel').fadeIn("slow", function() {
	  // Animation complete

	  
	    $('#portfolio').click(function () {
  $("#imagecarousel").toggle();
	
		
});
});

-->
</script>
and adding onLoad="resettoggle()" to the body tag

I now only need help with 2 things:

1. I have the div set to fadeIn, but it seems to be flying in at the speed of light.

2. When the page loads, you see a flicker of the slideshow before it disappears. Not sure how to implement the resettoggle function in a way that keeps the hidden div completely out of view?

Last edited by savagebeauty; 07-13-2012 at 12:47 AM.. Reason: update
savagebeauty is offline   Reply With Quote