Advertisement
It is currently Wed Sep 08, 2010 12:14 am


Information
Bot Tracker

Google [Bot]
Wed. Sep. 08 2010, 00:08
Yahoo [Bot]
Wed. Sep. 08 2010, 00:08
MSN [Bot]
Tue. Sep. 07 2010, 23:36
Google Adsense [Bot]
Tue. Sep. 07 2010, 22:42
Baidu [Spider]
Tue. Sep. 07 2010, 17:10
Exabot [Bot]
Tue. Sep. 07 2010, 10:30
Ask Jeeves [Bot]
Mon. Sep. 06 2010, 21:38
Gigabot [Bot]
Mon. Sep. 06 2010, 15:01
Alexa [Bot]
Sun. Sep. 05 2010, 22:07
psbot [Picsearch]
Thu. Sep. 02 2010, 18:24

Search

Left Ads

Post a new topic Post a reply 
Page 1 of 1      [ 5 posts ] Next topic Bottom of the page. Who posted in this topic. Print view Bookmark topic Previous topic
Go to page    
Author Message
Offline
Site Admin
User avatar

Joined: Sat Mar 11, 2006 4:46 pm
Posts: 3770
Location: Seattle Wa
Flag
Cash:1332
Male
   
Post test


 
test

_________________
Image

Please do not PM for support


Tue May 19, 2009 12:17 pm
Top
Profile    E-mail  FacebookLinkedInMySpaceNetLogTwitter
Offline
Sr Integra Member|Sr Integra Member|Sr Integra Member
User avatar

Joined: Mon Mar 27, 2006 1:46 pm
Posts: 420
Location: Oostende
Flag
No gender specified
   
Post Re: test


 
HelterSkelter wrote:
test


  1.  
  2.  
  3. function add_ending_slash($path){
  4.  
  5.     $slash_type = (strpos($path, '\')===0) ? 'win' : 'unix';
  6.  
  7.     $last_char = substr($path, strlen($path)-1, 1);
  8.  
  9.     if ($last_char != '/' and $last_char != '\') {
  10.         // no slash:
  11.         $path .= ($slash_type == 'win') ? '\' : '/';
  12.     }
  13.  
  14.     return $path;
  15. }
  16.  
  17.  


:grin: Very, very nice:
- numbering ON/OFF
- select ALL

:( Unfortunatly no syntax-highlighting


I've been using the chilli syntax-highlighter for some of my work...
It's not perfect, but I managed to make it work perfectly there.

_________________
Image
Always remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.


Fri May 22, 2009 6:28 am
Top
Profile    E-mail 
Offline
Site Admin
User avatar

Joined: Sat Mar 11, 2006 4:46 pm
Posts: 3770
Location: Seattle Wa
Flag
Cash:1332
Male
   
Post Re: test


 
there is a syntax highlighter but it defaults to code=text. you have to edit it with your code name. I think it is supposed to recognize it and do this automatically, but I have not gotten too deep into the Geshi mod to see if this is correct.

  1.  
  2.  
  3. function add_ending_slash($path){
  4.  
  5.     $slash_type = (strpos($path, '')===0) ? 'win' : 'unix';
  6.  
  7.    $last_char = substr($path, strlen($path)-1, 1);
  8.  
  9.    if ($last_char != '/' and $last_char != '\') {
  10.        // no slash:
  11.        $path .= ($slash_type == 'win') ? '\' : '/';
  12.    }
  13.  
  14.    return $path;
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  


  1.  
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <title></title>
  7. <link href="style.css" rel="stylesheet" type="text/css" />
  8. <script src="rollover.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. <!--
  11. function MM_swapImgRestore() { //v3.0
  12.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  13. }
  14.  
  15. function MM_preloadImages() { //v3.0
  16.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  17.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  18.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  19. }
  20.  
  21. function MM_findObj(n, d) { //v4.01
  22.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>
  23.  
  24.  
  25. 0&&parent.frames.length) {
  26.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  27.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  28.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  29.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  30. }
  31.  
  32. function MM_swapImage() { //v3.0
  33.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  34.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  35. }
  36. //-->
  37. </script>
  38. </head>
  39. <body id="page1" onload="MM_preloadImages('images/m1_1.gif','images/m2_2.gif','images/m3_3.gif','images/m4_4.gif','images/m5_5.gif')">
  40.  
  41. <table class="main_table">
  42.     <tr>
  43.         <td  class="site_center">
  44.             <table class="site_center1">
  45.                 <tr>
  46.                     <td>
  47.                         <table id="header">
  48.                             <tr>
  49.                                 <td class="row1"></td>
  50.                             </tr>
  51.                             <tr>
  52.                                 <td>
  53.                                     <table class="row2">
  54.                                         <tr>
  55.                                             <td class="col1">
  56.                                                 <div>
  57.                                             <a href="index.html"><img alt="" class="title" src="images/logo.gif" /></a><img alt="" src="images/w1.gif" /></div>                                         </td>
  58.                                             <td class="col2">
  59.                                               <a href="index-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/m1_1.gif',1)"><img src="images/m1.gif" alt=""  id="Image4" class="indent" /></a><br />
  60.                                               <a href="index-2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/m2_2.gif',1)"><img src="images/m2.gif" alt=""  id="Image5" /></a><br />
  61.                                               <a href="index-3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/m3_3.gif',1)"><img src="images/m3.gif" alt=""  id="Image6" /></a><br />
  62.                                               <a href="index-4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/m4_4.gif',1)"><img src="images/m4.gif" alt=""  id="Image7" /></a><br />
  63.                                               <a href="index-5.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/m5_5.gif',1)"><img src="images/m5.gif" alt=""  id="Image8" /></a><br />
  64.                                             </td>
  65.                                         </tr>
  66.                                     </table>
  67.                                 </td>
  68.                             </tr>
  69.                         </table>
  70.                     </td>
  71.                 </tr>
  72.                 <tr>
  73.                     <td>
  74.                         <table id="content">
  75.                             <tr>
  76.                                 <td class="row1"></td>
  77.                             </tr>
  78.                             <tr>
  79.                                 <td>
  80.                                     <table class="row2">
  81.                                         <tr>
  82.                                             <td class="col1"></td>
  83.                                             <td>
  84.                                                 <table class="col2">
  85.                                                     <tr>
  86.                                                         <td style="height:314px; width:233px" class="bg_color">
  87.                                                           <div style="margin:34px 15px 20px 39px">
  88.                                                                 <img alt="" src="images/1_w1.gif" class="title" /><br />
  89.                                                                 <b>_18.05.08</b><br />
  90.                                                                 <p style=" margin:4px 0 12px 1px">Lorem ipsum dolor sit amet ut diam consectetuer adipiscing elit. Nullam consequat...</p>
  91.                                                             <a href="#" style="margin:0 0 0 103px"><img alt="" src="images/more.gif" /></a>                                                         </div>
  92.                                                                 <img alt="" src="images/li.gif" /><br />
  93.                                                           <div style=" margin:10px 15px 10px 39px">
  94.                                                                 <b>_18.05.08</b><br />
  95.                                                                 <p style=" margin:5px 0 12px 1px">Lorem ipsum dolor sit amet ut diam consectetuer adipiscing elit. Nullam consequat...</p>
  96.                                                             <a href="#" style="margin:0 0 0 103px"><img alt="" src="images/more.gif" /></a>                                                         </div>
  97.                                                         </td>
  98.                                                     </tr>
  99.                                                     <tr>
  100.                                                         <td style="height:28px"></td>
  101.                                                     </tr>
  102.                                                 </table>
  103.                                             </td>
  104.                                             <td>
  105.                                                 <table class="col3">
  106.                                                     <tr>
  107.                                                         <td class="box1">
  108.                                                             <div>
  109.                                                                 <img alt="" src="images/1_w2.gif" /><br />
  110.                                                                 <p><strong>Ipsum dolor sit</strong> amet, consectetuer adipiscing elit. Nullam consequat diam arcu. Donec sit amet orci sit <a href="#">amet lorem nonummy</a> congue. In hac habitasse platea dictumst. Proin hendrerit pharetra nisl. Sed vestibulum porta augue suada justo eget aliquam volutpat ed vestibulum porta augue suada justo eget aliquam volutpat.</p>
  111.                                                                 <a href="#" style="margin:0 0 0 343px"><img alt="" src="images/more.gif" /></a><br />
  112.                                                                 <img alt="" src="images/li_long.gif" class="indent" />                                                        </div>
  113.                                                         </td>
  114.                                                     </tr>
  115.                                                     <tr>
  116.                                                         <td>
  117.                                                             <table class="box2">
  118.                                                                 <tr>
  119.                                                                     <td style="width:220px">
  120.                                                                         <div style="margin:0 30px 10px 28px">
  121.                                                                             <img alt="" src="images/1_w3.gif" /><br />
  122.                                                                             <ul style="margin:23px 0 17px 0px">
  123.                                                                                 <li><a href="#">Lorem ipsum dolor sit amet ut</a></li>
  124.                                                                                 <li><a href="#">Tonsectetuer adipiscing elit sit</a></li>
  125.                                                                             </ul>
  126.                                                                       <a href="#" style="margin:0 0 0 88px"><img alt="" src="images/more.gif" /></a>                                                                      </div>
  127.                                                                     </td>
  128.                                                                     <td style="width:1px" class="bg_li_bot"><img alt="" style="margin-top:79px" src="images/li_bot.gif" /></td>
  129.                                                                     <td style="width:295px">
  130.                                                                         <div style="margin:0 65px 10px 46px">
  131.                                                                             <img alt="" src="images/1_w4.gif" /><br />
  132.                                                                             <p style="margin:25px 0 12px 0px; color:#91908d"><strong>Lorem ipsum dolor</strong> sit amet sit consectetuer adipiscing elit. Nullam consequat commodo.</p>
  133.                                                                       <a href="#" style="margin:0 0 0 104px"><img alt="" src="images/more.gif" /></a>                                                                     </div>
  134.                                                                     </td>
  135.                                                                 </tr>
  136.                                                             </table>
  137.                                                         </td>
  138.                                                     </tr>
  139.                                                 </table>
  140.                                             </td>
  141.                                         </tr>
  142.                                     </table>
  143.                                 </td>
  144.                             </tr>
  145.                         </table>
  146.                     </td>
  147.                 </tr>
  148.                 <tr>
  149.                     <td>
  150.                         <table id="footer">
  151.                             <tr>
  152.                                 <td class="row1"></td>
  153.                             </tr>
  154.                             <tr>
  155.                                 <td class="row2">
  156.                                 <div>
  157.                                 Fresh Group. &copy; 2008. <a href="index-6.html">Privacy Policy</a><img alt="" src="images/li_foot.gif" class="indent" />Contact phone: +1 800 658 4452                             </div>
  158.                                 </td>
  159.                             </tr>
  160.                         </table>
  161.                     </td>
  162.                 </tr>
  163.             </table>
  164.         </td>
  165.     </tr>
  166. </table>
  167.  
  168.  
  169. </body>
  170. </html>
  171.  


You do not have the required permissions to view the files attached to this post.

_________________
Image

Please do not PM for support


Fri May 22, 2009 7:43 am
Top
Profile    E-mail  FacebookLinkedInMySpaceNetLogTwitter
Offline
Sr Integra Member|Sr Integra Member|Sr Integra Member
User avatar

Joined: Mon Mar 27, 2006 1:46 pm
Posts: 420
Location: Oostende
Flag
No gender specified
   
Post Re: test


 
Ah, thanks...
...I didn't know

However, it doesn't seem to work very well with PHP:
  1.  
  2.  <?php
  3. function add_ending_slash($path){
  4.  
  5.     $slash_type = (strpos($path, '')===0) ? 'win' : 'unix';
  6.  
  7.    $last_char = substr($path, strlen($path)-1, 1);
  8.  
  9.    if ($last_char != '/' and $last_char != '\') {
  10.        // no slash:
  11.        $path .= ($slash_type == 'win') ? '\' : '/';
  12.    }
  13.  
  14.    return $path;
  15. }
  16. ?> 
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  



OK with xml / xhtml

And... javascript (between JS tags, then)
  1. function MM_swapImgRestore() { //v3.0
  2.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  3.  }
  4.  
  5. function MM_preloadImages() { //v3.0
  6.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  7.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  8.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  9. }
 

And even works with MySQL (between mysql tags, then)

_________________
Image
Always remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.


Fri May 22, 2009 9:08 am
Top
Profile    E-mail 
Offline

Joined: Sun Apr 29, 2007 1:46 am
Posts: 2
No gender specified
   
Post Re: test


 
Hmmm ok test


Sun Feb 07, 2010 2:17 pm
Top
Profile    E-mail 
Display posts from previous:  Sort by  
Page 1 of 1      [ 5 posts ] Next topic Top Who posted in this topic. Print view Bookmark topic Previous topic
Go to page    
Post a new topic Post a reply 
Digg It Slash Dot Google 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Advertisement