最終更新:
namacha5959 2011年04月05日(火) 14:55:17履歴
<input type="text" value="" id="url"> <input type="button" onclick="window.open(document.getElementById('url').value,'_blank','');" value="URL先を開く">
<form action="/hoge"> <select onchange="javascript:submit();"> <option value="a">A</option> <option value="b">B</option> <option value="c">C</option> </select> </form>
Flash Playerのエラーが出る可能性アリ
<div id="video3" class="media" style="opacity: 1;"> <a onclick="playVideo(this);return false;" href="http://www.youtube.com/v/JqTO7LMet6Q"><img src="http://www.google.co.jp/intl/ja_ALL/adwords/watchthisspace/images/video/creativity.png"></a> </div> <script> function playVideo(el) { if (!el) { return; } el.parentNode.innerHTML = '<embed allowfullscreen="true" allowscriptaccess="always" src="' + el.href + '&autoplay=1&rel=0&fs=1&showinfo=0&hd=1" type="application/x-shockwave-flash" height="450" width="750" id="video-player" />'; } </script> </body>
- カテゴリ:
- パソコン
- javascript
タグ
このページへのコメント
PTfMS6 Thanks so much for the blog post. Great.