Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: Help Please !!!

  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help Please !!!

    Earlier this year I was surfing the web and I got to a site where a Flash movie(.swf) start playing and when i scrolled the page the movie moved to, so the movie position changed when i scrolled the page.
    Then I start looking for the Java Script source code to try it on my web site. That time I found a source code which was doing that, but unfortunately I've deleted it and now i can't find anymore that site where i found it.

    My problem is the following
    I've succeded to reposition an image(picture) with the following code

    <html>
    <head>
    <script language="JavaScript" type="text/javascript">
    function funtie()
    {
    document.getElementById("img").style.left=500
    }

    </script>
    </head>

    <body bgcolor="yellow">
    <div id="img" style="position:absolute;">
    <img src="mama.jpg" height="200" width="200" onMouseDown="funtie()">
    </div>

    </body>
    </html>
    But I tried to use the same code for an embeded movie(.swf) but it doesn't work (When i push down the mouse button it doesn't happen anything, it remains in the same position)

    <html>

    <head>
    <script language="JavaScript" type="text/javascript">
    function funtie()
    {
    document.getElementById("mov1").style.left=500
    }

    </script>
    </head>

    <body bgcolor="yellow">
    <div id="mov1">
    <embed src="arno1f.swf" width="200" height="200" onMouseDown="funtie()">
    </body>
    </html>

    Why doesn't work the code for embeded movies? Please Help! Thanks!
    Last edited by Christianotutti; 07-29-2006 at 05:21 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •