Home
Articles
Forums
Resources
Downloads
Search
Last Visit
Get Album Art
Embed Codes
Music Playlists
Music Search
Member Links
Login Form
Username: Password:
Login with username, password and session length

Forgot your password?
Support The Cause
Acts Of Kindness
You are a conspicuously incorrigible mauvais sujet, and a infamous, chromosome deficient failure to endure the scrutiny of those with distinction.


Syndicate

Welcome to JasonLau.biz

Thank you for visiting!
The primary purpose for this website is to provide a place for anyone to access and download my various and sundry web development projects, code snippets, articles, and whatnot. If you're looking for some of my PHP-Nuke modules, check in the downloads section. If you need technical support related to any of my php modules, such as Last Visit for PHP-Nuke, post your questions in the forums. Check back as I'll be updating periodically with new articles, code snippets, downloads, etc ...

Recent Articles
Most Read Articles
Music Playlists And Music Search Engine
User Rating: / 4
Written by Jason   
Feb 01, 2008 at 09:00 PM
Try out my Music search engine to find and listen to your favorite titles and artists! Members can add the search results to custom music playlists. Get the HTML code for your playlist so you can embed music into your profile or webpage. Share your playlist or HTML code with your friends!
Write Comment (0 comments)
Music & Video HTML Code Generator
User Rating: / 8
Written by Jason   
Jan 29, 2008 at 08:28 AM
How to make a music code or video code with your own file?

It's easy to make a custom media embed code with my music code HTML generator . All you have to do is upload your file to your web host, fill-in the form blanks with your file's URL address and your custom settings, and the HTML code is generated for you. Adobe Flash, Real Player, Quicktime, and Windows Media Player codes are made to meet your specifications to be used on your webpage, blog, board, or profile. Music codes and video codes for MySpace, Friendster, Piczo, Xanga, Tagged, Hi5, Blogger, and more ... Embedded media player codes on demand!

Write Comment (0 comments)
Show Or Hide Layers (DIVs)
User Rating: / 2
Written by Jason   
Jan 04, 2008 at 09:40 AM
This code allows you to toggle the visibility of any div layer on a webpage.
Insert the following code into your HTML head section before the </head tag.

<script type="text/javascript">
<!--
// Toggle Divs
// http://jasonlau.biz
function jlToggleDivs(jlDivID, jlState) // 1 visible, 0 hidden
{
if(jlState == 0)
{
// optional message when toggled off
// alert('');
}
else if(jlState == 1)
{
// optional message when toggled on
// alert('');
}
if(document.layers) //NN4+
{
document.layers[jlDivID].visibility = jlState ? "show" : "hide";
}
else if(document.getElementById) //gecko(NN6) + IE 5+
{
var obj = document.getElementById(jlDivID);
obj.style.visibility = jlState ? "visible" : "hidden";
}
else if(document.all) // IE 4
{
document.all[jlDivID].style.visibility = jlState ? "visible" : "hidden";
}
}
// -->
</script>


To use this script, simply call the function jlToggleDivs('{DIV ID}',{VISIBILITY STATE}) where {DIV ID} is the id attribute of the layer and {VISIBILITY STATE} is either 1 for visible or 0 for hidden.

Usage Examples:

Show it! Hide it!
Cool

Create a div layer in the document's body and id it with a unique name.
<div id="example" style="visibility:hidden">Test</div>
In the above example div, I have set the visibility to be hidden initially, but the style attribute is optional and can be deleted if desired.

Create links to toggle the layer visibility.
<a href="javascript:void(0)" onClick="jlToggleDivs('example',0)">Hide</a>
<a href="javascript:void(0)" onClick="jlToggleDivs('example',1)">Show</a>

Hide a layer when the page loads by calling the script in the document's body tag:
<body onLoad="jlToggleDivs('example',0);">
or by using javascript in the document's body:
<script type="text/javascript">window.onload  = "jlToggleDivs('example',0); </script>


Write Comment (0 comments)