CSS vertical align

Understandable code: <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”> <html> <head> <title>Universal vertical center with CSS</title> <style> .greenBorder {border: 1px solid green;} /* just borders to see it */ </style> </head> <body> <div class=”greenBorder” style=”display: table; height: 400px; #position: relative; overflow: hidden;”> <div style=” #position: absolute; #top: 50%;display: table-cell; vertical-align: middle;”> <div class=”greenBorder” style=” #position: relative; …

How to embed a sound file in your web page

To embed a single Midi file, Insert the following HTML code in the <BODY> section of the page: <embed src=”your_midi_file.mid” autostart=”true” hidden=”true” loop=”true“> With a WAV or MP3 file: <embed src=”your_wave_file.wav” autostart=”true” hidden=”true” loop=”true“> or <embed src=”your_mp3_file.mp3” autostart=”true” hidden=”true” loop=”true“> The sound file starts on page load, it’s hidden and repeats. To change this so …

Print DIV

<script> function go() { var a = window.open(”,”,’width=300,height=300′); a.document.open(“text/html”); a.document.write(document.getElementById(‘foo’).innerHTML); a.document.close(); a.print(); } </script> <div id=”foo”>This is a test</div> <input type=”button” onclick=”go()” value=”Print this Page”>

Detect web plug-ins Flash, Media PLayer and more…

Cut & Paste Detect Plugin (Flash, Java, RealPlayer etc) script Credit: Frederic Description: Frederic’s versatile plugin detector can be used to detect most of the important browser plugins. They include: – Flash – Windows Media Player – Java – Shockwave – RealPlayer – QuickTime – Acrobat Reader – SVG Viewer Working in both IE and …