
code i'm working on
Code: Select all
<?php
$path = "./dataStorage";
$dir_handle = @opendir($path) or die("Unable to open folder");
while (false !== ($file = readdir($dir_handle))) {
if($file == "index.php")
continue;
if($file == ".")
continue;
if($file == "..")
continue;
echo "
<a href=\"\" onclick=\"player.sendEvent('LOAD', 'dataStorageVideo/$file.flv'); return false;\" class=\"addToolTip\" title=\"<div id='ToolTipTextWrap' > File Information</div><p>dataStorage/$file</p>\"> <img class=\"thumbnail\" src=\"./dataStorage/$file\" alt=\"./dataStorage/$file\" style=\"opacity:0.4;filter:alpha(opacity=90)\" onmouseover=\"this.style.opacity=1;this.filters.alpha.opacity=100\" onmouseout=\"this.style.opacity=0.4;this.filters.alpha.opacity=91\" /> " ;
}
closedir($dir_handle);
?>
