Code for You

Internet and Programming are not only for the Genius.
Utilize Internet and Programming for Your Own Benefits. Have fun with it.


Friday, May 18, 2007

How to Redirect Your Website

<meta http-equiv="refresh" content="2; url=">

1st arguments = The number is the time, in seconds, until the page should be redirected
2nd arguments = The website where you want your website to be redirected to

How to Embed DivX

<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
width="320" height="212"

<param name="src" value="../../videos/video1.divx" />

<embed type="video/divx" src="../../videos/video1.divx"
width="320" height="212"

Wednesday, May 9, 2007

A Little Flash MP3 Player

Your mp3 links (<a href="">Link</a>) will automatically turned into a very simple player (mp3 player) that allows you to easily play mp3 files directly on your blog.

How to include

Copy the code below and place it in anywhere in your HTML:

<script type="text/javascript" src=""></script>


Suspicious minds
Mrs McGrath
Just A Gigolo
Deja Vu
One Night Only
Funky Town
Halo Theme
Smells Like Teen Spirit

Tuesday, May 1, 2007

How to Use XSPF Web Music Player

Do you want to have something like this on your website?

Here's the code to be embedded on your website:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="400" height="15" id="xspf_player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="" />
<param name="quality" value="high" />
<param name="bgcolor" value="#e6e6e6" />
<embed src="" quality="high" bgcolor="#e6e6e6" width="400" height="15" name="xspf_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="">

Before that, you have to download the XSPF Web Player from first, and upload them to your web server.

Then, you have to create the XSPF Playlist. Here's the XSPF Playlist code:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "">
<annotation>DC Talk - Betweek You and Me</annotation>
<annotation>DC Talk - In the Light</annotation>

NOTE: Make sure you have the MP3 files uploaded to somewhere (ex: on the Internet.

For more information, visit:

--  Rm 8 : 28; Is 55 : 8-13

How to Create a Pop-up on Page Exit

Put this between <HEAD> and </HEAD>:

<!-- Begin
function leave(){'','','toolbar=no,menubar=no,location=no,height=500,width=500');
// End

Put this in your <BODY> tag:

<body onunload="leave()">

Rm 8 : 28; Is 55 : 8-13

How to Create Pop-up on Timer

Put this between <HEAD> and </HEAD>:
<script language="JavaScript" type="text/javascript">
var allowpop=1;
function popWin(){
// -->

Put this in the <BODY> tag:
<body onload="setTimeout('popWin()',10000)" >

Rm 8 : 28; Is 55 : 8-13