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=http://webdesign.about.com">

Content:
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"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">

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

<embed type="video/divx" src="../../videos/video1.divx"
width="320" height="212"
pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object>

Wednesday, May 9, 2007

A Little Flash MP3 Player

Your mp3 links (<a href="my_file.mp">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="http://googlepage.googlepages.com/player.js"></script>


Example:

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

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="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="15" id="xspf_player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.yourdomain.com/xspf_player_slim.swf?playlist_url=http://www.yourdomain.com/DCTalk.xspf&autoplay=true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#e6e6e6" />
<embed src="http://www.yourdomain.com/xspf_player_slim.swf?playlist_url=http://www.yourdomain.com/DCTalk.xspf&autoplay=true" quality="high" bgcolor="#e6e6e6" width="400" height="15" name="xspf_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>

Before that, you have to download the XSPF Web Player from http://musicplayer.sourceforge.net/ 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 = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.yourdomain.com/file1.mp3</location>
<image></image>
<annotation>DC Talk - Betweek You and Me</annotation>
</track>
<track>
<location>http://www.yourdomain.com/file2.mp3</location>
<image></image>
<annotation>DC Talk - In the Light</annotation>
</track>
</trackList>
</playlist>

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

For more information, visit: http://musicplayer.sourceforge.net/

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

How to Create a Pop-up on Page Exit

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

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function leave(){
window.open('yoururl.com','','toolbar=no,menubar=no,location=no,height=500,width=500');
}
// End
-->
</SCRIPT>

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(){
var myWin=window.open('http://code4fun.blogpspot.com',
'info','width=350,height=350,menubar=0,toolbar=0,location=0,scrollbars=yes,
resizable=yes,status=0');
myWin.blur();}
// -->
</script>

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

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