ÿþ<? $title = "Cursors > Smileys"; include("../../_header.php"); ?> <div id="middle"> <? include("../../inc/ads1.php"); ?> <h1><? print $title; ?></h1> <p>Here are smiley cursors.</p> <? $path = "smileys"; //using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo "<table width=\"100%\" align=\"center\"> <tr> <td style=\"padding-right: 10px;\">Simply copy and paste the codes into the 'about me' section of your profile!<br/><br/>Hover over the code box for a preview of the cursor.<br/> <br/>"; //running the while loop while ($file = readdir($dir_handle)) { if($file!="." && $file!="..") echo "<table width=\"88%\" align=\"center\"> <tr> <td class=\"bluebox\"> <table width=\"325\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td style=\"padding-right: 10px;\" align=\"center\"> <textarea name=\"textarea2\" cols=50 rows=2 class=\"bginput\" style=\"cursor:url(http://www.layouts-backgrounds-graphics.info/graphics/cursors/smileys/$file);\" onclick=\"this.focus();this.select()\">&lt;style type=&quot;text/css&quot;&gt;body {cursor: url(http://www.layouts-backgrounds-graphics.info/graphics/cursors/smileys/$file); }&lt;/style&gt;&lt;a href=&quot;http://www.layouts-backgrounds-graphics.info/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.layouts-backgrounds-graphics.info/support.gif&quot; alt=&quot;Myspace Layouts&quot; style=&quot;position:absolute; left:0px; top: 0px;&quot; border=&quot;0&quot;&gt;&lt;/a&gt; </textarea> </td> </tr> </table></td> </tr> </table> <br />"; } echo " </td> </tr> </table>"; closedir($dir_handle); ?> <? include("../../inc/ads2.php"); ?> </div><!-- end middle --> <? include("../../_footer.php"); ?>