views:

127

answers:

1

Im trying to recreate the functionality on google video where you can access certain parts of a video by putting #1h1m1m in the url

So i have an embedded google video and links to the right that i want to link to certain times in that video.

I can do this with a page refresh but im trying ot do it via javascript so i don't have to.

I can't seem to get the src of an embed element via javascript for whatever reason (Im not too good with javascript)

Thanks

EDIT I don't really know what to show. I don't have a link because i haven't figured it out yet. I just want to skip to a different section of a google video without reloading the page.

+1  A: 

If the google video you are embedding is a YouTube video, there are documented APIs for causing the player to seek to a specified time (expressed in secondes).

See: YouTube Javascript API Reference

J5