Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

embedded video?


  • Please log in to reply

#1
craiggster123321

craiggster123321

    Member

  • Member
  • PipPip
  • 36 posts
hi.
ive been trying for a while now to change the source of an embedded video through javascript but still i cant seem to get it to work

heres the function ive been using:

function change_video()
{
document.getElementById('embed_id').src="new_filename.mpg";
}

can someone please correct this statement so that when i call the function the video will change to a different one?
  • 0

Advertisements


#2
craiggster123321

craiggster123321

    Member

  • Topic Starter
  • Member
  • PipPip
  • 36 posts
i have also tryed using these statements in the fuction:

document['embed_Id'].src="new_filename.mpg";

&

document.all['embed_Id'].src="new_filename.mpg";

thank you to anyone who will reply to this post
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP