<?php
require_once("aim_status.php"); // replace with the path to the aim_status.class.php file
$IMstatus = new im();
$screenname = "your_screen_name_here"; # insert your screen name here
# If you use iChat or a .Mac account, make sure you enter
# the full screen name: your_name@mac.com
$aim_status=$IMstatus->getaim($screenname);
if($aim_status == true) {
// everything here is customizable.
echo('<a href="aim:goim?screenname=$screenname" title="iChat/AIM with $screenname" class="header_bar"><img src="ichat_online.gif" alt="online" width="14" height="14" hspace="0" vspace="2" border="0" align="top" /> <span style="padding: 0px 3px 0px 3px; font-family:verdana; color:#093; text-shadow:1px 1px #000; font-size:9pt; margin-top:1px;"><b>online</b></span></a>');
} else {
echo('<a href="javascript:alert(\'$screenname is currently offline.\');" title="Currently Offline" class="header_bar"><img src="ichat_offline.gif" alt="offline" width="14" height="14" hspace="0" vspace="2" border="0" align="top" /> <span style="color:#999; font-size:9pt;"><b>offline</b></span></a>');
}
?>
|