/    Sign up×
Community /Pin to ProfileBookmark

slightly tecknical problem, HELP!!!!

hi, i am trying to write this basic embed script that changes its source but it doesn’t work and i dont know why….
can you help me?????

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title></title>
<meta name=”description” content=””>
<meta name=”keywords” content=””>
<meta name=”author” content=”JAM”>
<meta name=”generator” content=”AceHTML 5 Pro”>
<script language=”javascript”>
<!–

function movie(source){
document.getElementById(‘movie’).src = source;
}

//–>
</script>
</head>
<body>
<form id=”movieForm”>
<embed align=”absmiddle” src=”” alt=”ACTIVEX IS NOT ENABLED ON YOUR BROWSER” id=”movie” loop=”false” title=”Movie” type=”video/msvideo” autostart=”true”>
<input type=”button” value=”Movie1″ onClick=”movie(‘Footage.wmv’)”>
<input type=”button” value=”Movie2″ onClick=”movie(‘Tailwhip.wmv’)”>
</form>
</body>
</html>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @jam spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...