» home
» contact
» terms of use

FREE SCRIPTS
» new
» text
» image
» utility
» background
» animation
» date/time

FREE ONLINE TOOLS
» code generators
» text animator
» drawing animator
» color animator
» slideshow factory
» javascript speed test

FREE BASIC SNIPLETS
» alert box
» image: multi-rollover
» pop-up: centering
» more

FREE'N'CRAZY
» realtime death counter
» eyeQ
» fun ticker

RECOMMENDED LINKS
» www.dynamicdrive.com
» www.hotscripts.com

Free JavaScript: floating YouTube Video
This fun JavaScript makes youTube videos float and fly all over your webpage. True copy-and-paste installation. Internet Explorer 5x/6x/7x/8x and Firefox 2x/3x, Opera 7x/8x/9x/10x and Google Chrome 3x/4x/5x/6x/7x


Configuration

Step 1: Open your webpage and paste the following code right above the </body>-tag, close to the bottom of the page:


IMPORTANT: Do not paste this code into any tables or <DIV> and </DIV> or between any other container!

Step 2: Visit www.youtube.com, select a video, click button "embed" (just below the video-player) and copy the code. Now you have to extract the URL, the width and the height of video (highlighted red):

<object width="480" height="385"><param name="movie" value="http://www.youtube-nocookie.com/v/bQREhd9iT38?fs=1&hl=de_DE<;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/bQREhd9iT38?fs=1&hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>


Step 3: Go to the top of the script and configure the URL, the width and the height of the video: