Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!(getUrl.indexOf('watch?v=')+1)) {
- $('#previewYouTubeVideo').html('<object width="425" height="344"><param name="movie" id="movie" value="' + newUrl + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="' + newUrl + '" id="movieEmbed" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>').show();
- } else {
- alert("go home");
- }
Add Comment
Please, Sign In to add comment