ÿþ<? $title = "Cursors > Smileys"; include("../../_header.php"); ?> <div id="middle"> <? include("../../inc/ads1.php"); ?> <h1><? print $title; ?></h1> <p>Here are smiley cursors.</p> <span class="adsensebox"> <script type="text/javascript"><!-- google_ad_client = "pub-1812224653830229"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "c6def0"; google_color_bg = "f8fcfe"; google_color_link = "626161"; google_color_text = "626161"; google_color_url = "626161"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </span> <? $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"); ?>