Jump to content

dropdown box youtube video

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic

#1
cjc1867

cjc1867

    Newbie

  • Members
  • Pip
  • 3 posts
Hi
Been trying all day, how can I add a dropdown box to a web page that will enable me to select a youtube video and play it on the same web page.

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Moved to correct section.

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
For the dropdown box, you just need the HTML <select> tag. You are going to need some sort of client-side script to play the video on the same page.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#4
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
Create a function that displays a pop-up box in JavaScript. Then create a button in the HTML, when the button is clicked open the pop-up box.

In the pop-up box, enter the embed code supplied by YouTube on the video you are watching. Should work, need further help, just ask ;)
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#5
ReekenX

ReekenX

    Programmer

  • Members
  • PipPipPipPip
  • 134 posts
I can write simple test page for you, if you want :)
www.jarmalavicius.lt | www.github.com/reekenx | www.twitter.com/reekenx

#6
cjc1867

cjc1867

    Newbie

  • Members
  • Pip
  • 3 posts
Hi
I have some code but I'm not experienced enough to put both parts together. If you have the time to put something together I would be very grateful indeed.

Thanks

#7
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
I would love to help, and I would, but I need to go to sleep. If you post your code, it will make it easier for ReekenX to help you. If not;

I believe that Xav will be here in a few hours, and he will be able to help you :) Night mate ;)
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts

Quote

I believe that Xav will be here in a few hours, and he will be able to help you

I wouldn't bank on it.. mate. :rolleyes:
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
hehe Why not?
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#10
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Because I am a mean guy. :mad:
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#11
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
LOL, far from Xav :)
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#12
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
You are too kind. :)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums