...

View Full Version : Help Please !!!



Christianotutti
07-29-2006, 06:19 AM
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!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum