Need a code for a sliding flash object

  • 1
  • Problem
  • Updated 8 years ago
  • In Progress
I'm having an issue with a website. I've tried to use an iframe to make a flash object appear over an other iframe, but that isn't working for other browsers. Only chrome. I can't find any other code that will allow for the flash .swf object to be able to slide down on the left side of the page wherever you scroll to. Is there a code for this? I will be able to edit it from there, I'm pretty sure. Thank You in advance!
Photo of Minecrafter


  • 15 Posts
  • 0 Reply Likes
  • frustrated

Posted 8 years ago

  • 1
Photo of Shawn Holman

Shawn Holman

  • 486 Posts
  • 26 Reply Likes
You should just use jQuery. It seems that you know the basics of Javascript so Ill just give a short explanation.

So here is what you can do.

Put the swf object on the page. Give it an Id called: #swf.

Then use jQuery and try this:

<script type="text/javascript">

top: ($(document).height()-$(this).height())/2,
left: (0 - $(this).height()) + 20
left: $(this).height();


This is what it does:

When the window loads, the swf element will position in the center part of the screen. But it will be hidden. Then the page will wait 1 second. And it slides the swf will slide out from the left side of the screen.
Photo of Shawn Holman

Shawn Holman

  • 486 Posts
  • 26 Reply Likes
Could you give me the link of your .swf so I can make an example.