Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/script-loader.php on line 758

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/script-loader.php on line 758

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/load.php on line 926

Notice: Trying to access array offset on value of type bool in /home/users/2/ymd3004/web/3004.jp/wp-includes/theme.php on line 2360

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798
複数のYouTube動画をページを変えず、そのエリアで切り替えて再生してみる | Yamada3004(やまだみちよ)Yamada3004(やまだみちよ)
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

複数のYouTube動画をページを変えず、そのエリアで切り替えて再生してみる


Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

DVDのチャプターメニューのように選んで再生させることはできないか?
という要望があり、YouTubeの埋め込みタグってば、iframeだしJavaScriptで切り替えればできそうかな・・・と
ぼんやりと考え、まずはざっくりとこんな感じにしてみた。


できることはできたのだが、これだとボタンを押してiframe内に動画が切り替わるだけで、再生されない。そうするとボタンを押してさらに再生ボタンを押してとユーザーに2回押させることになってしまう。

これでは、ダメだー!切り替わって再生させなきゃいけないわけです。
YouTube JavaScript Player APIでいろいろ制御できるということがわかってるんだけど、いまいちよくわかんないw

というわけで、コチラのサイトが参考になったので、コチラの方法にしました。

で、出来上がったのがコレ↓デザイン&コーディングで1日作業
http://www.century.co.jp/athome_movie.html

あぁ、jQueryってステキング
もっと、ちゃんと勉強しまふ(=゚ω゚)ノ

この記事をシェアする

関連記事

CATEGORY

SEARCH

PROFILE

歌って踊れる、人見知りなWeb屋。
服とお酒と音楽がスキである(`・ω・´)
PROFILEを見る →

TAGS


Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/users/2/ymd3004/web/3004.jp/wp-includes/formatting.php on line 4798