<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5110058274413855494</id><updated>2024-11-01T03:37:24.179-07:00</updated><category term="Javascript"/><category term="PHP"/><category term="Blog Tutorial"/><category term="others"/><category term="Jquery"/><category term="Cakephp"/><category term="Moduls"/><category term="Online business"/><category term="Prestashop"/><category term="Visual Basic 6"/><title type='text'>By Webs</title><subtitle type='html'>&lt;b&gt;By Webs&lt;/b&gt;&lt;br&gt;live to share !!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-7206798880401916718</id><published>2013-04-10T00:08:00.003-07:00</published><updated>2013-04-10T00:11:25.723-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Jquery Add to Cart Fly ala Prestashop</title><content type='html'>Hi haloo,&lt;br /&gt;
On this post I will share an amazing Add to Cart jquery animation which use by Prestashop.&lt;br /&gt;
For an e-commerce website, it can mean a better shopping experience for customers where they can easy to use, beautiful animation which make the site more interesting, so they can concentrate more on the products which may result in better sales.&lt;br /&gt;
&lt;br /&gt;
Ok, Now I will let you know how the basic of the source.&lt;br /&gt;
1. We make a Html file with code below&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&amp;gt;&lt;/pre&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;    &amp;lt;tr&amp;gt;
     &amp;lt;td width=&quot;400px&quot;&amp;gt;
         &amp;lt;div&amp;gt;
                &amp;lt;div class=&quot;image&quot;&amp;gt;&amp;lt;img src=&quot;1.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;div&amp;gt;&amp;lt;a class=&quot;addCart&quot;&amp;gt;Add to Cart&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                &amp;lt;div class=&quot;image&quot;&amp;gt;&amp;lt;img src=&quot;1.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;div&amp;gt;&amp;lt;a class=&quot;addCart&quot;&amp;gt;Add to Cart&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;td width=&quot;100px&quot; valign=&quot;top&quot;&amp;gt;
         &amp;lt;div id=&quot;shoppingCart&quot;&amp;gt;
          &amp;lt;h3&amp;gt;Shopping Cart&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/td&amp;gt;
    &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Include the javascript code below your html code&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;script src=&quot;jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
$(document).ready(function(){&lt;/pre&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;    $(&quot;.addCart&quot;).click(function(){
 var imgsrc = $(this).parent().parent().children(&quot;.image&quot;).children().attr(&#39;src&#39;);
 var imgpos = $(this).parent().parent().children(&quot;.image&quot;).children().position();
 var imgsrcstyle = &quot;position:absolute;opacity:0.8;display:none;left:&quot;+imgpos.left+&quot;px;top:&quot;+imgpos.top+&quot;px;z-index:99999;&quot;;
 var this_parent = $(this).parent();
  
 // Ajax request
 $.ajax({
     type: &quot;POST&quot;,
     url: &quot;update.php&quot;,
     data: ({id:&#39;2&#39;}),
     dataType: &quot;json&quot;,
     cache: false,
     success: function(result){
  if(result[&#39;status&#39;] == &#39;true&#39;){
     // make clone image
     this_parent.append(&#39;&amp;lt;img src=&quot;&#39;+imgsrc+&#39;&quot; style=&quot;&#39;+imgsrcstyle+&#39;&quot; class=&quot;cloned&quot; /&amp;gt;&#39;);
     
     // call animate fly
     fly(result);
  } else {
     alert(&#39;Failed add product to cart&#39;);
  }
      }
 });   
});
&amp;nbsp;
function fly(result){
 var box = $(&#39;#shoppingCart&#39;).position();
 $(&quot;.cloned&quot;).show().animate({ &quot;opacity&quot;: 0.2,&quot;top&quot;:(box.top + 20),&quot;left&quot;:(box.left + 20),&quot;width&quot;:10},1500,function(){
    $(this).remove();
   
    // update action
    alert(&#39;yay success!&#39;);
 });&amp;nbsp;
}
 
});
&amp;lt;/script&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
For the complete source you can &lt;a href=&quot;http://www.4shared.com/zip/axwdtEMW/AddCartFlyPrestashop.html&quot; target=&quot;_blank&quot;&gt;download here&lt;/a&gt;.&lt;br /&gt;
Hope it can help you guys. &lt;br /&gt;
&lt;br /&gt;
Best regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/7206798880401916718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2013/04/jquery-add-to-cart-fly-ala-prestashop.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7206798880401916718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7206798880401916718'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2013/04/jquery-add-to-cart-fly-ala-prestashop.html' title='Jquery Add to Cart Fly ala Prestashop'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-1015913620787084578</id><published>2013-01-31T22:49:00.000-08:00</published><updated>2013-01-31T22:59:57.157-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Moduls"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Prestashop"/><title type='text'>Module Block User Online / Visitor Counter Prestashop 1.5</title><content type='html'>Hi guys,

Are you looking for block user online / visitor counter widget in prestashop 1.5?&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/zip/SzbQWmLA/blockuseronline1-5.html&quot; target=&quot;_blank&quot;&gt;Download module here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
1. unzip it. put blockuseronline directory module in prestashop\modules.&lt;br /&gt;
2. go to your admin panel. (www.myshop.com/adminxxx)&lt;br /&gt;
3. On main menu choose Modules -&amp;gt; Modules&lt;br /&gt;
4. All modules will appear.&lt;br /&gt;
5. On left side menu, choose other modules (on the bottom).&lt;br /&gt;
6. Install block user online modules then visitor counter widget will appear in your front page&lt;br /&gt;
&lt;br /&gt;
This is sample image of the result:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0gG_BfYOkHCKQ_gHV8ysODNSTvuIPAoa3vQNB_XHzuZPrDPO9ukNEsfkFnYdkloTBLQd0wBH4LmbEknmCHQ76pCyqizYhSUUNGQxv7auupdYlZYflbmilDMOyxrrCaeDAjnwh7WjtCo1/s1600/block-online-user-prestashop1-5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0gG_BfYOkHCKQ_gHV8ysODNSTvuIPAoa3vQNB_XHzuZPrDPO9ukNEsfkFnYdkloTBLQd0wBH4LmbEknmCHQ76pCyqizYhSUUNGQxv7auupdYlZYflbmilDMOyxrrCaeDAjnwh7WjtCo1/s320/block-online-user-prestashop1-5.jpg&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
Best regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/1015913620787084578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2013/01/module-block-user-online-visitor.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1015913620787084578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1015913620787084578'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2013/01/module-block-user-online-visitor.html' title='Module Block User Online / Visitor Counter Prestashop 1.5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM0gG_BfYOkHCKQ_gHV8ysODNSTvuIPAoa3vQNB_XHzuZPrDPO9ukNEsfkFnYdkloTBLQd0wBH4LmbEknmCHQ76pCyqizYhSUUNGQxv7auupdYlZYflbmilDMOyxrrCaeDAjnwh7WjtCo1/s72-c/block-online-user-prestashop1-5.jpg" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-9201265202614899289</id><published>2013-01-28T17:47:00.000-08:00</published><updated>2013-01-28T17:47:47.427-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cakephp"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>View Counter (Update field +1) - Cakephp</title><content type='html'>Hi Hallo,&lt;br /&gt;
This week (29 jan 2013), I still work in my current project with cakephp framework.&lt;br /&gt;
Today I find small problem but I will always share with you guys. I work on I called view counter, where if there any client view detail of any property in my site, it will update field count in database +1.&lt;br /&gt;Maybe it look easy if we do with php and sql. But how we can do it with cakephp framework?&lt;br /&gt;
&lt;br /&gt;
I&#39;m googling, and found this code below:&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;php&quot;&gt;$this-&amp;gt;Article-&amp;gt;updateAll(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&#39;Property.count&#39; =&amp;gt; &#39;Property.count + 1&#39;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&#39;Property.id&#39; =&amp;gt; 5)&lt;br /&gt;
);&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Hope it can help,&lt;br /&gt;But if you still have any question, write your comment below.&lt;br /&gt;&lt;br /&gt;Kind regard,&lt;br /&gt;Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/9201265202614899289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2013/01/view-counter-update-field-1-cakephp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/9201265202614899289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/9201265202614899289'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2013/01/view-counter-update-field-1-cakephp.html' title='View Counter (Update field +1) - Cakephp'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-7631873828361258031</id><published>2013-01-24T19:56:00.000-08:00</published><updated>2013-01-24T19:56:03.035-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Get date of one week based on week number - php</title><content type='html'>Hi, ,&lt;br /&gt;
There are many kind of php function you can use for datetime manipulation. But today I will share a short code that you can use for get date of one week based on your week number.&lt;br /&gt;
&lt;br /&gt;
I have created a function that you can use or develop&lt;br /&gt;
Let see my function below :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;?php
 function get_date_in_week($year,$week_number){
  $date = array();
  
  // 1 week 7 days
  for($day = 1; $day &amp;lt;= 7; $day++){
   
   $set_date = strtotime($year.&quot;W&quot;.($week_number&amp;lt;10?&#39;0&#39;:&#39;&#39;).$week_number.$day);
   
   if(date(&#39;Y&#39;,$set_date) == $year){
    $date[&#39;year-&#39;.$year][&#39;week-&#39;.$week_number][&#39;day-&#39;.$day] = date(&#39;j&#39;, $set_date);
   }
   
  }
  
  return $date;
  
 }
?&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, you can simple to use, just call the function then you will get date of one week based on your week number.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;pre&amp;gt;
 &amp;lt;?php
  $year = &#39;2013&#39;;
  $week_number = &#39;2&#39;;
  print_r(get_date_in_week($year,$week_number));
 ?&amp;gt;
&amp;lt;/pre&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
The result will be like this :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;Array
(
    [year-2013] =&amp;gt; Array
        (
            [week-2] =&amp;gt; Array
                (
                    [day-1] =&amp;gt; 7
                    [day-2] =&amp;gt; 8
                    [day-3] =&amp;gt; 9
                    [day-4] =&amp;gt; 10
                    [day-5] =&amp;gt; 11
                    [day-6] =&amp;gt; 12
                    [day-7] =&amp;gt; 13
                )

        )

)
&lt;/pre&gt;
&lt;br /&gt;
Hope it can helps.&lt;br /&gt;
But if you still need help, just write your comment below.&lt;br /&gt;
I will try to find out.&lt;br /&gt;
&lt;br /&gt;
Kind regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/7631873828361258031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2013/01/get-date-of-one-week-based-on-week.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7631873828361258031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7631873828361258031'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2013/01/get-date-of-one-week-based-on-week.html' title='Get date of one week based on week number - php'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-7341613301482821171</id><published>2012-12-24T21:58:00.001-08:00</published><updated>2012-12-30T21:23:36.370-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Jquery Image Slide on Hover</title><content type='html'>Hello,&lt;br /&gt;
In this post I will share&amp;nbsp; about&amp;nbsp; a simple jquery to animate an image when hovering. basically it is using &lt;a href=&quot;http://docs.jquery.com/Effects/animate&quot; title=&quot;jQuery Animate Effect&quot;&gt;jQuery’s animate() effect&lt;/a&gt;. I will use this effect to make transaction when hovering the image.&lt;br /&gt;
Let&#39;s looks the demo in the url below :&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://demo.baliseasontour.com/hover-image-slide/&quot; target=&quot;_blank&quot;&gt;Jquery Image Slide&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Ok, I begin with html code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;div id=&quot;vertical&quot; class=&quot;clear&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Vertical --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2&amp;gt;jQuery image slide on hover effect (vertical)&amp;lt;/h2&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;a href=&quot;htmldrive.net&quot;&amp;gt;&amp;lt;img src=&quot;image-2.png&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;img src=&quot;image-1.jpg&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;horizontal&quot; class=&quot;clear&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Horizontal --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2&amp;gt;jQuery image slide on hover effect (horizontal)&amp;lt;/h2&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;img src=&quot;image-4.jpg&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;img src=&quot;image-5.png&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;easeOutBounce&quot; class=&quot;clear&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Horizontal --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h2&amp;gt;jQuery image slide on hover effect (easeOutBounce)&amp;lt;/h2&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;a href=&quot;htmldrive.net&quot;&amp;gt;&amp;lt;img src=&quot;image-2.png&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;&amp;lt;img src=&quot;image-1.jpg&quot; alt=&quot;&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
We have 3 main div contain image links. each image has two face, maybe it will easier when you look image below :&lt;br /&gt;
&lt;br /&gt;
image-1.jpg&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxhuKp6H_9FbRB2zKp7Zdrq-4mD6mgquwZYiyQTjZmV3FffN4xh71jeMaGNUuPSFw2XM4KfsrQMJSnIN1YK-t0q59cjz25mz8G3fRWWTEor03LiBMRyicff_7jZ3aEdacTrxiZgP5j3Pro/s1600/image-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxhuKp6H_9FbRB2zKp7Zdrq-4mD6mgquwZYiyQTjZmV3FffN4xh71jeMaGNUuPSFw2XM4KfsrQMJSnIN1YK-t0q59cjz25mz8G3fRWWTEor03LiBMRyicff_7jZ3aEdacTrxiZgP5j3Pro/s1600/image-1.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span id=&quot;goog_922851529&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_922851530&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_2003234152&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_2003234153&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;goog_922851529&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;goog_922851529&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;goog_922851529&quot;&gt;image-2.jpg&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGgVq5iJEMa1LK9tve5kZgTH33oG0UDxMWp8e4t985WASfnvZyjH1GzlPqu8ZoAYLtvNHccwybZcP9jruNpMfJ9SGjkQErJ49vqvBN5WLezV9_-zzPRxgmXcRINQ_OYdRcWLi_doIYwgAM/s1600/image-4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;70&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGgVq5iJEMa1LK9tve5kZgTH33oG0UDxMWp8e4t985WASfnvZyjH1GzlPqu8ZoAYLtvNHccwybZcP9jruNpMfJ9SGjkQErJ49vqvBN5WLezV9_-zzPRxgmXcRINQ_OYdRcWLi_doIYwgAM/s1600/image-4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then defined simple jquery.imageslide.js to make it work, you can download full source &lt;b&gt;&lt;a href=&quot;http://demo.baliseasontour.com/hover-image-slide/&quot; target=&quot;_blank&quot;&gt;Jquery Image Slide&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;jquery.imageslide.js has 3 transaction type (vertical, horizontal,easeOutBounce) and you can use it with multiple images&lt;br /&gt;
&lt;br /&gt;
Now you can set up the property of image slide as below:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(document).ready(function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&#39;#vertical div a&#39;).imgslide({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 296,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 130,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; animate : &quot;vertical&quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration : 300
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&#39;#horizontal div a&#39;).imgslide({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; animate : &quot;horizontal&quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration : 300
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&#39;#easeOutBounce div a&#39;).imgslide({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; animate : &quot;easeOutBounce&quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration : 800
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Run your code, it will work like a charm ^^.&lt;br /&gt;
That&#39;s all, hope it useful&lt;br /&gt;
&lt;br /&gt;
Best regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/7341613301482821171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/12/jquery-image-slide-on-hover.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7341613301482821171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7341613301482821171'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/12/jquery-image-slide-on-hover.html' title='Jquery Image Slide on Hover'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxhuKp6H_9FbRB2zKp7Zdrq-4mD6mgquwZYiyQTjZmV3FffN4xh71jeMaGNUuPSFw2XM4KfsrQMJSnIN1YK-t0q59cjz25mz8G3fRWWTEor03LiBMRyicff_7jZ3aEdacTrxiZgP5j3Pro/s72-c/image-1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-9102087045374711845</id><published>2012-12-24T01:05:00.003-08:00</published><updated>2012-12-24T01:05:54.593-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="others"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Add New Font for Dompdf</title><content type='html'>Hi Hallo,&lt;br /&gt;
In this post we will talk about PDF file conversion exactly DomPDF.&lt;br /&gt;
It 
allows direct conversion of HTML files to PDF files. But I found some issues when I was using this module, when I tried to generate pdf file, the result was not same as my html file. Some of fonts didn&#39;t apply in the pdf file. I goggled the web and found some solutions. And now I solved it.&lt;br /&gt;I will share how to add your own font for dompdf,&lt;br /&gt;
&lt;br /&gt;
1. For the simple step please go here &lt;a href=&quot;http://eclecticgeek.com/dompdf/load_font.php&quot; target=&quot;_blank&quot;&gt;DOMPDF web-base&lt;/a&gt;&lt;br /&gt;
2. Complete the form and upload your own font&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGLo0YAjmoZ9kIllTWCP_7TTtR4oontKYF0fmmzRLyLUSl_4h79rRYtfDk8efLT6xkYeJjW1Jo3fNU0FVDtmelKe_td5Fm_dJ_n4vrAPT6G3EcIKPURPt2nQTVdJn67AGz6DSG2eTDazMB/s1600/dompdf.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGLo0YAjmoZ9kIllTWCP_7TTtR4oontKYF0fmmzRLyLUSl_4h79rRYtfDk8efLT6xkYeJjW1Jo3fNU0FVDtmelKe_td5Fm_dJ_n4vrAPT6G3EcIKPURPt2nQTVdJn67AGz6DSG2eTDazMB/s1600/dompdf.jpg&quot; height=&quot;320&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: lime;&quot;&gt;&amp;nbsp;&lt;b&gt; &lt;span style=&quot;color: red;&quot;&gt;Make sure your dompdf version same with version in the form and Go&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3. Download and extra the result (.zip). then Copy 
the contents of the result( .tff, .ufm) to your DOMPDF fonts folder (typically located at dompdf/lib/fonts). 
&lt;br /&gt;
&lt;br /&gt;4. If you have not previously installed fonts, you can rename the file &lt;code&gt;dompdf_font_family_cache.sample(this file from the archive)&lt;/code&gt; 
to be &lt;code&gt;dompdf_font_family_cache.dist.php&lt;/code&gt;  (located at dompdf/lib/fonts). If you have previously installed fonts you will need to copy 
the relevant entry from the sample file into &lt;code&gt;dompdf_font_family_cache.dist.php&lt;/code&gt;&lt;code&gt;&lt;/code&gt; file.&lt;br /&gt;
Below is example for add some entry to &lt;code&gt;dompdf_font_family_cache.dist.php&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghmtSe_lcY3Dy3bXxLsSu-w1Vlx0j5llLNK_jWWEpCcxDd07lP6i-KG1E3EPzgorN869097lr479L-XLmgkmug5hnXE3kKGIuWWQ4CfymRxq9YTudxRQYK4IxqPGuL9ezBGWzs4XerdpYi/s1600/dompdf2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghmtSe_lcY3Dy3bXxLsSu-w1Vlx0j5llLNK_jWWEpCcxDd07lP6i-KG1E3EPzgorN869097lr479L-XLmgkmug5hnXE3kKGIuWWQ4CfymRxq9YTudxRQYK4IxqPGuL9ezBGWzs4XerdpYi/s1600/dompdf2.jpg&quot; height=&quot;91&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
5.&amp;nbsp;
Once you have taken these steps your font should be installed and ready to use.&lt;br /&gt;
&lt;br /&gt;
Hope it can help, but if you still have any question&lt;br /&gt;Please feel free to write your comment below.&lt;br /&gt;&lt;br /&gt;Kind regard,&lt;br /&gt;Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/9102087045374711845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/12/add-new-font-for-dompdf.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/9102087045374711845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/9102087045374711845'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/12/add-new-font-for-dompdf.html' title='Add New Font for Dompdf'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGLo0YAjmoZ9kIllTWCP_7TTtR4oontKYF0fmmzRLyLUSl_4h79rRYtfDk8efLT6xkYeJjW1Jo3fNU0FVDtmelKe_td5Fm_dJ_n4vrAPT6G3EcIKPURPt2nQTVdJn67AGz6DSG2eTDazMB/s72-c/dompdf.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-8646779748947552057</id><published>2012-12-20T21:22:00.002-08:00</published><updated>2012-12-20T21:54:11.443-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Get original size of image ( Jquery )</title><content type='html'>&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
   $(&#39;#imgoriginal&#39;).click(function(){
     var img = new Image();
         img.onload = function() {
	     $(&#39;#oriwidth&#39;).val(this.width+&quot; px&quot;);
             $(&#39;#oriheight&#39;).val(this.height+&quot; px&quot;);		
         }
     img.src = $(&#39;#myimgori img&#39;).attr(&#39;src&#39;);	
    });
});
&lt;/script&gt;
Hi buddy,
Today I will share a short code to get original size of image &lt;span class=&quot;st&quot;&gt;on page that has been resized to fit in a div.
It usually needed when you make photo gallery with thumbnail images.&lt;/span&gt;

&lt;span class=&quot;st&quot;&gt;Ok, here we go, Lets look for the demo&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;st&quot;&gt;&amp;nbsp;&lt;/span&gt;


&lt;br /&gt;
&lt;div id=&quot;myimgori&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLaXD9e5dDWD2dh5V-5pIegk_ipN2nZD9zp9miIYq_FQr_H-iy34uH5cPRDpHeKB2IbATqYv4j78uvqK4R50UZeeqexd1oU97SZ9b3SzpsqI2JS8z_twEqH9Snmjk2L3Kb_uk8N41l4iJg/s1600/nusa-dua.jpg&quot; height=&quot;100&quot; width=&quot;150&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
Width: &lt;input id=&quot;oriwidth&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt; x Height: &lt;input id=&quot;oriheight&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;input id=&quot;imgoriginal&quot; type=&quot;button&quot; value=&quot;get original size&quot; /&gt;

&lt;span class=&quot;st&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;st&quot;&gt;Then look for the code,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;st&quot;&gt;We will take the original size of image by using Jquery.&lt;/span&gt;
&lt;span class=&quot;st&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;st&quot;&gt;Defined the jquery in your head container&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;st&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;span class=&quot;st&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Html code of image:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;  &amp;lt;html&amp;gt;
     &amp;lt;head&amp;gt;
          // Defined Jquery
          &amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

     &amp;lt;/head&amp;gt;
     &amp;lt;body&amp;gt;
         &amp;lt;div id=&quot;myimg&quot;&amp;gt;
             &amp;lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLaXD9e5dDWD2dh5V-5pIegk_ipN2nZD9zp9miIYq_FQr_H-iy34uH5cPRDpHeKB2IbATqYv4j78uvqK4R50UZeeqexd1oU97SZ9b3SzpsqI2JS8z_twEqH9Snmjk2L3Kb_uk8N41l4iJg/s1600/nusa-dua.jpg&quot; height=&quot;200&quot; width=&quot;300&quot; /&amp;gt;
         &amp;lt;/div&amp;gt;
     &amp;lt;/body&amp;gt;
  &amp;lt;/html&amp;gt; 
&lt;/pre&gt;
&lt;br /&gt;
And below is the code to get original size of image:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;$(document).ready(function(){
    var img = new Image();
    img.onload = function() {
        alert(&quot;width:&quot;+this.width+&quot; x Height:&quot;+this.height;
    }
    img.src = $(&#39;#myimg img&#39;).attr(&#39;src&#39;);
});
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Include get original size of image code in html:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;  &amp;lt;html&amp;gt;
     &amp;lt;head&amp;gt;
          // Defined Jquery
          &amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
          
          // Get original size code
          &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
               $(document).ready(function(){
                   var img = new Image();
                   img.onload = function() {
                       alert(&quot;width:&quot;+this.width+&quot; x Height:&quot;+this.height;
                   }
                   img.src = $(&#39;#myimg img&#39;).attr(&#39;src&#39;);
               });
          &amp;lt;/script&amp;gt;
     &amp;lt;/head&amp;gt;
     &amp;lt;body&amp;gt;
         &amp;lt;div id=&quot;myimg&quot;&amp;gt;
             &amp;lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLaXD9e5dDWD2dh5V-5pIegk_ipN2nZD9zp9miIYq_FQr_H-iy34uH5cPRDpHeKB2IbATqYv4j78uvqK4R50UZeeqexd1oU97SZ9b3SzpsqI2JS8z_twEqH9Snmjk2L3Kb_uk8N41l4iJg/s1600/nusa-dua.jpg&quot; height=&quot;200&quot; width=&quot;300&quot; /&amp;gt;
         &amp;lt;/div&amp;gt;
     &amp;lt;/body&amp;gt;
  &amp;lt;/html&amp;gt; 
&lt;/pre&gt;
&lt;br /&gt;
Well done,&lt;br /&gt;
hope it will  help,&lt;br /&gt;
Thank you for visit my blog,&lt;br /&gt;
If you have any question, just write comment below.&lt;br /&gt;
&lt;br /&gt;
Best Regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/8646779748947552057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/12/get-original-size-of-image-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8646779748947552057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8646779748947552057'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/12/get-original-size-of-image-jquery.html' title='Get original size of image ( Jquery )'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLaXD9e5dDWD2dh5V-5pIegk_ipN2nZD9zp9miIYq_FQr_H-iy34uH5cPRDpHeKB2IbATqYv4j78uvqK4R50UZeeqexd1oU97SZ9b3SzpsqI2JS8z_twEqH9Snmjk2L3Kb_uk8N41l4iJg/s72-c/nusa-dua.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-6690272050826058043</id><published>2012-12-19T21:05:00.001-08:00</published><updated>2012-12-19T21:05:36.898-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Basic 6"/><title type='text'>Make Label in Front / Top of Frame Visual Basic 6</title><content type='html'>Hi,&lt;br /&gt;
In this post I will share about label and frame issue in Visual Basic 6,&lt;br /&gt;
For newbie in VB6 (my experience), it sometime makes confuse&lt;br /&gt;
This is not too big problem, but it got stuck in my head before.&lt;br /&gt;
&lt;br /&gt;
Ok, I will let you know the solution how to make label in front of frame&lt;br /&gt;
It is simple way but it works perfectly&lt;br /&gt;
just &lt;b&gt;cut your label&lt;/b&gt; and &lt;b&gt;paste in your frame&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm7QacRVnaTeGhcOMP5YNumcfK1N08gzy_dA86z0iN_eK1JKuLB9FzcWdMNKg1G9Etoo7MYZLGVr9bY-8J1qpiHBibJ86hl07HwA3z9pL9f4rhyPX6VOAWvEN_1qvQGcloeUkfr9_3ZrPD/s1600/vb-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm7QacRVnaTeGhcOMP5YNumcfK1N08gzy_dA86z0iN_eK1JKuLB9FzcWdMNKg1G9Etoo7MYZLGVr9bY-8J1qpiHBibJ86hl07HwA3z9pL9f4rhyPX6VOAWvEN_1qvQGcloeUkfr9_3ZrPD/s1600/vb-1.jpg&quot; height=&quot;271&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLtqJ6UajlVx-yTeJdkWIzwTHw23iV_6dhp-VKpm87oqq95KmRqZBfDlViNDOPjUZEiBaNpQEkJeGP7OdB33jgGY6ICe3j1gCsBtMqAMguzpUziPd-Uqu73rn8juPvntH4JQ2waqMMA4zq/s1600/vb-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLtqJ6UajlVx-yTeJdkWIzwTHw23iV_6dhp-VKpm87oqq95KmRqZBfDlViNDOPjUZEiBaNpQEkJeGP7OdB33jgGY6ICe3j1gCsBtMqAMguzpUziPd-Uqu73rn8juPvntH4JQ2waqMMA4zq/s1600/vb-2.jpg&quot; height=&quot;261&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx7Q_DvgCJCkz9YsPVv5kSqTfAlLQfA5OkQFOP6-8HhCpLvJxvTny8p7qd_6hD-ocM72b0KrDnJSpp5aJt3VxgB_AaBRimhrQ1G8kzeNyUCBif3RzAU4j8Mgk0MJHCajg34jFtx7O-SBLl/s1600/vb-3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx7Q_DvgCJCkz9YsPVv5kSqTfAlLQfA5OkQFOP6-8HhCpLvJxvTny8p7qd_6hD-ocM72b0KrDnJSpp5aJt3VxgB_AaBRimhrQ1G8kzeNyUCBif3RzAU4j8Mgk0MJHCajg34jFtx7O-SBLl/s1600/vb-3.jpg&quot; height=&quot;400&quot; width=&quot;326&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Z6slN5uMv-0nP7rY6ARkvIWyVeY9kRADEaEr6WKjPloDaFIkizMqra1FtEZQyUnVhsJUXKf8ujkd1Yw_8AnRNFdyXKkDtlfsvcLWa_w3l-c7g_t4xlLdtlkeNMfB5nwgPVe1saORmw8s/s1600/vb-4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Z6slN5uMv-0nP7rY6ARkvIWyVeY9kRADEaEr6WKjPloDaFIkizMqra1FtEZQyUnVhsJUXKf8ujkd1Yw_8AnRNFdyXKkDtlfsvcLWa_w3l-c7g_t4xlLdtlkeNMfB5nwgPVe1saORmw8s/s1600/vb-4.jpg&quot; height=&quot;400&quot; width=&quot;326&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Well done,&lt;br /&gt;
Hope it useful, but if you have any question, just write a comment below.&lt;br /&gt;
&lt;br /&gt;
Best regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/6690272050826058043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/12/make-label-in-front-top-of-frame-visual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/6690272050826058043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/6690272050826058043'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/12/make-label-in-front-top-of-frame-visual.html' title='Make Label in Front / Top of Frame Visual Basic 6'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm7QacRVnaTeGhcOMP5YNumcfK1N08gzy_dA86z0iN_eK1JKuLB9FzcWdMNKg1G9Etoo7MYZLGVr9bY-8J1qpiHBibJ86hl07HwA3z9pL9f4rhyPX6VOAWvEN_1qvQGcloeUkfr9_3ZrPD/s72-c/vb-1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-1311013122589247564</id><published>2012-12-18T23:41:00.002-08:00</published><updated>2012-12-18T23:41:39.384-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="others"/><title type='text'>Credit Card Number for Tester</title><content type='html'>When make new program or system with payment method, programmers always need credit card number tester to test and make sure their program work well.&lt;br /&gt;
&lt;br /&gt;
So the table below contains a number of credit card numbers that can be used   to test credit card handling software. None of these numbers will work when   trying to buy something (if you hadn&#39;t guessed).&lt;br /&gt;
&lt;br /&gt;
&lt;table id=&quot;ccard&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;         &lt;th&gt;Card Type&lt;/th&gt;         &lt;th&gt;Number&lt;/th&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Master Card (16 Digits)&lt;/td&gt;         &lt;td&gt;5105105105105100&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Master Card (16 Digits)&lt;/td&gt;         &lt;td&gt;5555555555554444&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Visa (13 Digits)&lt;/td&gt;         &lt;td&gt;4222222222222&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Visa (16 Digits)&lt;/td&gt;         &lt;td&gt;4111111111111111&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Visa (16 Digits)&lt;/td&gt;         &lt;td&gt;4012888888881881&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;American Express (15 Digits)&lt;/td&gt;         &lt;td&gt;378282246310005&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;American Express (15 Digits)&lt;/td&gt;         &lt;td&gt;371449635398431&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Amex Corporate (15 Digits)&lt;/td&gt;         &lt;td&gt;378734493671000&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Dinners Club (14 Digits)&lt;/td&gt;         &lt;td&gt;38520000023237&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Dinners Club (14 Digits)&lt;/td&gt;         &lt;td&gt;30569309025904&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Discover (16 Digits)&lt;/td&gt;         &lt;td&gt;6011111111111117&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;Discover (16 Digits)&lt;/td&gt;         &lt;td&gt;6011000990139424&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;JCB (16 Digits)&lt;/td&gt;         &lt;td&gt;3530111333300000&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;         &lt;td&gt;JCB (16 Digits)&lt;/td&gt;         &lt;td&gt;3566002020360505&lt;/td&gt;     &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
source : http://www.crazysquirrel.com/finance/test-cc.jspx&lt;br /&gt;
&lt;br /&gt;
Best regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/1311013122589247564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/12/credit-card-number-for-tester.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1311013122589247564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1311013122589247564'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/12/credit-card-number-for-tester.html' title='Credit Card Number for Tester'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-5397239769973315292</id><published>2012-12-13T22:36:00.001-08:00</published><updated>2012-12-14T00:22:54.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="others"/><title type='text'>Simple Multiple Marker, Calculation Route, Custom Marker on Google Map</title><content type='html'>Hi Hallo, , &lt;br /&gt;
Today I will share some code to make simple multiple marker on Google map. This code will show a google map in your web page with a place marker base on your locations. You can also custom the icon marker by yourself and active or inactive the calculation route.&lt;br /&gt;
&lt;br /&gt;
Ok, You can see for the demo below:&lt;br /&gt;
&lt;script src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;
 var map;
 var directionDisplay;
    var directionsService = new google.maps.DirectionsService();
 var global_markers = [];    
 var markers = [[-8.580467, 115.163001, &#39;My Home - Kekeran, Mengwi, Bali&#39;],[-8.724085,115.180407,&#39;Office - Simpang siur, Kuta, Bali&#39;]];
 
 var infowindow = new google.maps.InfoWindow({});
 
 function initialize() {
  directionsDisplay = new google.maps.DirectionsRenderer({suppressMarkers:true});
  geocoder = new google.maps.Geocoder();
  var latlng = new google.maps.LatLng(-8.580467, 115.163001);
  var myOptions = {
   zoom: 11,
   center: latlng,
   mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), myOptions);

  directionsDisplay.setMap(map);
  calcRoute();
 }
 
 function addMarker() {
  for (var i = 0; i &lt; markers.length; i++) {
   // obtain the attribues of each marker
   var lat = parseFloat(markers[i][0]);
   var lng = parseFloat(markers[i][1]);
   var trailhead_name = markers[i][2];
 
   var myLatlng = new google.maps.LatLng(lat, lng);
 
   var contentString = &quot;&lt;html&gt;&lt;body&gt;&lt;div&gt;&lt;h2&gt;&quot; + trailhead_name + &quot;&lt;/h2&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&quot;;
   var icon_img = &quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRmdVDVsRgbZXd4aoyhWNjP2px16J4nwpvLym4MrMLWEyzGBiTDRe_NDQHL5FU4QYJow0iN_WehzhIbReVMB6enMGtO1kb-xHTDEi83Rcp9RMh1k_Cb5SdqYoFQHCWYZBvrDpvB_Ta2l77/s1600/location.png&quot;;
 
   var marker = new google.maps.Marker({
    position: myLatlng,
    map: map,
    icon: icon_img,
    title: &quot;Coordinates: &quot; + lat + &quot; , &quot; + lng + &quot; | Trailhead name: &quot; + trailhead_name
   });
 
   marker[&#39;infowindow&#39;] = contentString;
 
   global_markers[i] = marker;
 
   google.maps.event.addListener(global_markers[i], &#39;click&#39;, function() {
    infowindow.setContent(this[&#39;infowindow&#39;]);
    infowindow.open(map, this);
   });
  }
 }
 
 function calcRoute() {

        start  = new google.maps.LatLng(-8.580467, 115.163001);
        end = new google.maps.LatLng(-8.724085, 115.180407);
        var request = {
            origin: start,
            destination: end,
            travelMode: google.maps.DirectionsTravelMode.DRIVING
        };
        directionsService.route(request, function(response, status) {
   if (status == google.maps.DirectionsStatus.OK) {
     directionsDisplay.setDirections(response);
     addMarker();
   }
  });
    }
 
 window.onload = initialize;
&lt;/script&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
 #map_canvas{
  width: 400px;
  height: 300px;
 }
&lt;/style&gt;&lt;br /&gt;
&lt;div id=&quot;map_canvas&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
So now, we start the code,&lt;br /&gt;
1. First we must define our code with google map api and jquery&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. Copy paste code below, make sure the code between &amp;lt;head&amp;gt;{your script}&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
&amp;nbsp;var map;
&amp;nbsp;var directionDisplay;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var directionsService = new google.maps.DirectionsService();
&amp;nbsp;var global_markers = [];&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;// Represent your location here&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;var markers = [[-8.580467, 115.163001, &#39;My Home - Kekeran, Mengwi, Bali&#39;],[-8.724085,115.180407,&#39;Office - Simpang siur, Kuta, Bali&#39;]];

&amp;nbsp;var infowindow = new google.maps.InfoWindow({});

&amp;nbsp;function initialize() {
&amp;nbsp; directionsDisplay = new google.maps.DirectionsRenderer({suppressMarkers:true});
&amp;nbsp; geocoder = new google.maps.Geocoder();
&amp;nbsp; var latlng = new google.maps.LatLng(-8.580467, 115.163001);
&amp;nbsp; var myOptions = {
&amp;nbsp;&amp;nbsp; zoom: 11,
&amp;nbsp;&amp;nbsp; center: latlng,
&amp;nbsp;&amp;nbsp; mapTypeId: google.maps.MapTypeId.ROADMAP
&amp;nbsp; }
&amp;nbsp; map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), myOptions);

&amp;nbsp; directionsDisplay.setMap(map);
&amp;nbsp; &lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;nbsp; // if you don&#39;t want to use  calculation route, inactive calcRoute() function&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;// and call addMarker() here&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;calcRoute(); &lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;function addMarker() {
&amp;nbsp; for (var i = 0; i &amp;lt; markers.length; i++) {
&amp;nbsp;&amp;nbsp; // obtain the attribues of each marker
&amp;nbsp;&amp;nbsp; var lat = parseFloat(markers[i][0]);
&amp;nbsp;&amp;nbsp; var lng = parseFloat(markers[i][1]);
&amp;nbsp;&amp;nbsp; var trailhead_name = markers[i][2];

&amp;nbsp;&amp;nbsp; var myLatlng = new google.maps.LatLng(lat, lng);&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;nbsp;  // customize the content buble here&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;nbsp;&amp;nbsp; var contentString = &quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;div&amp;gt;&amp;lt;h2&amp;gt;&quot; + trailhead_name + &quot;&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;;&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;nbsp;  // customize icon marker here&lt;/pre&gt;&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;nbsp;&amp;nbsp; var icon_img = &quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRmdVDVsRgbZXd4aoyhWNjP2px16J4nwpvLym4MrMLWEyzGBiTDRe_NDQHL5FU4QYJow0iN_WehzhIbReVMB6enMGtO1kb-xHTDEi83Rcp9RMh1k_Cb5SdqYoFQHCWYZBvrDpvB_Ta2l77/s1600/location.png&quot;;

&amp;nbsp;&amp;nbsp; var marker = new google.maps.Marker({
&amp;nbsp;&amp;nbsp;&amp;nbsp; position: myLatlng,
&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,
&amp;nbsp;&amp;nbsp;&amp;nbsp; icon: icon_img,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: &quot;Coordinates: &quot; + lat + &quot; , &quot; + lng + &quot; | Trailhead name: &quot; + trailhead_name
&amp;nbsp;&amp;nbsp; });

&amp;nbsp;&amp;nbsp; marker[&#39;infowindow&#39;] = contentString;

&amp;nbsp;&amp;nbsp; global_markers[i] = marker;

&amp;nbsp;&amp;nbsp; google.maps.event.addListener(global_markers[i], &#39;click&#39;, function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; infowindow.setContent(this[&#39;infowindow&#39;]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; infowindow.open(map, this);
&amp;nbsp;&amp;nbsp; });
&amp;nbsp; }
&amp;nbsp;}

&amp;nbsp;function calcRoute() {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start&amp;nbsp; = new google.maps.LatLng(-8.580467, 115.163001);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end = new google.maps.LatLng(-8.724085, 115.180407);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var request = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; origin: start,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination: end,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; travelMode: google.maps.DirectionsTravelMode.DRIVING
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directionsService.route(request, function(response, status) {
&amp;nbsp;&amp;nbsp; if (status == google.maps.DirectionsStatus.OK) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; directionsDisplay.setDirections(response);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addMarker();
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;window.onload = initialize;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
3. Add new css for map (in &amp;lt;head&amp;gt; container)&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;css&quot; name=&quot;code&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;
 #map_canvas{
    width: 400px;
    height: 300px;
 }
&amp;lt;/style&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
4. Then the last step, create the html code&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;div id=&quot;map_canvas&quot;&amp;gt;&amp;lt;/div&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Ok well done, save your file and try to run it.&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/zip/hNRwOgi7/bywebsblogspotcom-google_marke.html&quot; target=&quot;_blank&quot;&gt;Download complete source here&lt;/a&gt;&lt;br /&gt;
Hope it usefull, if there any question, just write your comment below.&lt;br /&gt;
I will replay asap ^^&lt;br /&gt;
&lt;br /&gt;
Best regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/5397239769973315292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/12/simple-multiple-marker-on-google-map.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/5397239769973315292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/5397239769973315292'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/12/simple-multiple-marker-on-google-map.html' title='Simple Multiple Marker, Calculation Route, Custom Marker on Google Map'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-8679727204249515599</id><published>2012-09-16T00:37:00.002-07:00</published><updated>2012-09-16T00:37:34.416-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="others"/><title type='text'>Download Crack/Keygen Dreamweaver Cs5</title><content type='html'>Adobe® Dreamweaver® CS5 is the  industry-leading web authoring and editing software that provides both  visual and code-level capabilities for creating standards-based &lt;span class=&quot;IL_AD&quot; id=&quot;IL_AD2&quot;&gt;websites&lt;/span&gt; and designs for the desktop, smartphones, tablets, and other devices.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgsdOuolk_BK5aJRszzC7kRs1tczTcnUGx1jwx3Vp100KT_WNcD7XM15k8o5VPlO40Pd4-D1UDmekm7rvifK4CXFTN4MO3BJ3u_-GfXY6lvIVRbR_7-KIP5FRMRWB6nKiKuh5XlIMOAimu/s1600/Dream+weaver.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgsdOuolk_BK5aJRszzC7kRs1tczTcnUGx1jwx3Vp100KT_WNcD7XM15k8o5VPlO40Pd4-D1UDmekm7rvifK4CXFTN4MO3BJ3u_-GfXY6lvIVRbR_7-KIP5FRMRWB6nKiKuh5XlIMOAimu/s320/Dream+weaver.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Dreamweaver is one of the most popular tools for developers.&amp;nbsp; It provides a range of functionalities and supports almost every technology that is in use today over the web.&amp;nbsp; I came across this wonderfull keygen that can help you activate your trial version of Dreamweaver CS5 to full version . There are some steps and precautions that you will have to follow while using this keygen .&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Download a trial version of Dreamweaver CS5 from Adobe website. &lt;/li&gt;
&lt;li&gt;Then install the trial version of the software. The trial version is of 30 days.&amp;nbsp; &lt;/li&gt;
&lt;li&gt;Now extract the rar keygen folder and execute the keygen .&lt;/li&gt;
&lt;li&gt;A key will be generated , copy the key and paste it in the activation region in Dreamweaver CS5 .&lt;/li&gt;
&lt;li&gt;Your version will be full now. &lt;/li&gt;
&lt;/ol&gt;
If the key gets blocked then again follow the same steps to activate a new key and keep enjoying the full version.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/zip/WOXqzdjA/bywebsblogspotcom.html?refurl=d1url&quot; target=&quot;_blank&quot;&gt;Download Keygen Here&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
Best Regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/8679727204249515599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/09/download-crackkeygen-dreamweaver-cs5.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8679727204249515599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8679727204249515599'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/09/download-crackkeygen-dreamweaver-cs5.html' title='Download Crack/Keygen Dreamweaver Cs5'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgsdOuolk_BK5aJRszzC7kRs1tczTcnUGx1jwx3Vp100KT_WNcD7XM15k8o5VPlO40Pd4-D1UDmekm7rvifK4CXFTN4MO3BJ3u_-GfXY6lvIVRbR_7-KIP5FRMRWB6nKiKuh5XlIMOAimu/s72-c/Dream+weaver.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-293494974106893733</id><published>2012-09-08T07:03:00.000-07:00</published><updated>2012-09-08T07:03:51.071-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Tutorial"/><title type='text'>How to Add Facebook Like Box on Blogger?</title><content type='html'>&lt;div class=&quot;UIFaq_Question&quot;&gt;
&lt;div&gt;
What is a Facebook Page? &lt;/div&gt;
&lt;/div&gt;
Pages are for businesses, organizations and brands to share their  stories and connect with people. Like timelines, you can customize Pages  by adding apps, posting stories, hosting events and more. Engage and  grow your audience by posting regularly. People who like your Page will  get updates in their news feeds. &lt;a href=&quot;http://www.facebook.com/help/?faq=174987089221178&quot; target=&quot;_blank&quot;&gt;Read more&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
On this post I will share about &quot;How to Add Facebook Like Box plugin on Blogger&quot;, so it is an effective way to ensure you keep in  touch with your blog visitors on the world’s favorite social network.&lt;br /&gt;
Ok, let&#39;s follow the easy step.&lt;br /&gt;
&lt;br /&gt;
First, make sure you already have or create Facebook fans page.&lt;br /&gt;
for example just use my facebook fans page, &lt;b&gt;&lt;a href=&quot;http://www.facebook.com/bywebsite&quot;&gt;http://www.facebook.com/bywebsite&lt;/a&gt; .&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.&amp;nbsp; &lt;b&gt;&lt;a href=&quot;http://developers.facebook.com/docs/reference/plugins/like-box/&quot; target=&quot;_blank&quot;&gt;Click here&lt;/a&gt;&lt;/b&gt; to get started.&lt;br /&gt;
2. &amp;nbsp; Then put your url fans page on &quot;&lt;b&gt;Facebook Page URL&lt;/b&gt;&quot; input form.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-loeA_1xToQLE9a-_apK_jgA1j-FvjyqxXANFFfzINXt1DWnDr6TfzPjxhhrKtFLgh61nZT8QuFE7I65GBtvfqeEkDqCIZCL3pgU2PAckQts1pNa1D4MOGgStJ8BvnS4ZF_Y7RJWUG1oG/s1600/fb1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-loeA_1xToQLE9a-_apK_jgA1j-FvjyqxXANFFfzINXt1DWnDr6TfzPjxhhrKtFLgh61nZT8QuFE7I65GBtvfqeEkDqCIZCL3pgU2PAckQts1pNa1D4MOGgStJ8BvnS4ZF_Y7RJWUG1oG/s320/fb1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting your Like box as you want by change the width, height, color schema and ect.&lt;br /&gt;
3.&amp;nbsp; Click on &lt;span style=&quot;font-weight: bold;&quot;&gt;Get Code&lt;/span&gt; when done with the configuration.&lt;br /&gt;
4.&amp;nbsp; In your like box plugin code window, please select &lt;b&gt;iframe&lt;/b&gt; tab, for get easy code to make it works.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM3ayXLPDDMnU8Wo6Ls9YAemzZ81mgNw5Z1yR73zo-36dbGwfNrWCnHT18Fe9xOPdR-t-o7v8bLrCwlgMF7cfLzPgr9g7pLtAxfxwX_viR7gtfDL0vxy465RCW_wgTIYXz1o1qenayWd5a/s1600/fb2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM3ayXLPDDMnU8Wo6Ls9YAemzZ81mgNw5Z1yR73zo-36dbGwfNrWCnHT18Fe9xOPdR-t-o7v8bLrCwlgMF7cfLzPgr9g7pLtAxfxwX_viR7gtfDL0vxy465RCW_wgTIYXz1o1qenayWd5a/s320/fb2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
5.&amp;nbsp; Copy all code for your like box.&lt;br /&gt;
6.&amp;nbsp; Login to your blogger account, then choose &lt;b&gt;layout&lt;/b&gt;.&lt;br /&gt;
7.&amp;nbsp; Select &lt;b&gt;Add a Gadget (HTML/Javascript)&lt;/b&gt; on the location you wish the facebook like box to appear.&lt;br /&gt;
&lt;br /&gt;
8.&amp;nbsp; Paste your code and &lt;b&gt;Save&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlCO5HR4oU7rBO2YUzouUiwQ_0pkMmdJ6L4ybLOBkReFt2whcbkJS3uTUL1X3VNlVpMD1-cGAE_0Pq2W-Q0QgFxiqGB74q_LDltZYm2cgiowqeDP2aZjnTLveLCIfNA5g_aG8jLorXTYA3/s1600/fb3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;315&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlCO5HR4oU7rBO2YUzouUiwQ_0pkMmdJ6L4ybLOBkReFt2whcbkJS3uTUL1X3VNlVpMD1-cGAE_0Pq2W-Q0QgFxiqGB74q_LDltZYm2cgiowqeDP2aZjnTLveLCIfNA5g_aG8jLorXTYA3/s320/fb3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
9.&amp;nbsp; View your blog and the Widget should appear at the very spot.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRP9uZneSAmWApayCGYx_ElCx4ZJP2MvwQnUsg9HljDisQKUrJHaEzRgd2-8tHRF1uSsphRkJ-7NkO42Zu4RyHHmK_d2H-pdFeD4ToVaHcoZ5Kb_olZLHT5AVpnEasvEye3YAfPZnZA52i/s1600/fb4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRP9uZneSAmWApayCGYx_ElCx4ZJP2MvwQnUsg9HljDisQKUrJHaEzRgd2-8tHRF1uSsphRkJ-7NkO42Zu4RyHHmK_d2H-pdFeD4ToVaHcoZ5Kb_olZLHT5AVpnEasvEye3YAfPZnZA52i/s320/fb4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have finished !!, wish your blog look more beauty :)&lt;br /&gt;
If you have suggest or any questions, just write your comment below.&lt;br /&gt;
Good luck !&lt;br /&gt;
&lt;br /&gt;
Best Regard,&lt;br /&gt;
Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/293494974106893733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/09/how-to-add-facebook-like-box-on-blogger.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/293494974106893733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/293494974106893733'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/09/how-to-add-facebook-like-box-on-blogger.html' title='How to Add Facebook Like Box on Blogger?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-loeA_1xToQLE9a-_apK_jgA1j-FvjyqxXANFFfzINXt1DWnDr6TfzPjxhhrKtFLgh61nZT8QuFE7I65GBtvfqeEkDqCIZCL3pgU2PAckQts1pNa1D4MOGgStJ8BvnS4ZF_Y7RJWUG1oG/s72-c/fb1.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-1918548998789167847</id><published>2012-09-08T06:15:00.000-07:00</published><updated>2012-09-08T06:15:23.196-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Tutorial"/><title type='text'>Highlight Code/Scripts in Post Article</title><content type='html'>Someday, I confused when I tried to make some code tutorial in my post. I have made some code tutorial in my post but it didn&#39;t look nice when I displayed. On the other side when I have browsed and looked for the others blogs, They have made like highlight for their code tutorial.How have they make it?&lt;br /&gt;
&lt;br /&gt;
I had googling for it and I got some tips to solve it.&lt;br /&gt;
&lt;br /&gt;
You can use a simple way by put some css code to your template&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Login to your blogspot account&lt;/li&gt;
&lt;li&gt;Choose &quot;Template&quot; on your menu&lt;/li&gt;
&lt;li&gt;On template page choose &quot;Edit HTML&quot;&lt;/li&gt;
&lt;li&gt;push ctrl + f on your keyboard for search this code &quot;&lt;span style=&quot;color: red;&quot;&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt;&lt;/span&gt;&quot;&lt;/li&gt;
&lt;li&gt;Copy paste code below before  &quot;&lt;span style=&quot;color: red;&quot;&gt;]]&amp;gt;&amp;lt;/b:skin&amp;gt;&lt;/span&gt;&quot; code.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;pre class=&quot;css&quot; name=&quot;code&quot;&gt;/* interface code */
.code{margin: 10px 10px 10px 10px;
padding: 10px 15px 10px 15px;
line-height: 1.6em;color: #000000;
background: #e0ffff;
border: 1px solid #000000;
border-style: dashed }&lt;/pre&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Ok, already done. You can save your template now.&lt;/li&gt;
&lt;li&gt;For using this css, you can use &amp;lt;p&amp;gt; element for example&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;p class=&quot;code&quot;&amp;gt;{your script here}&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result will display like the image below :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLBasaZoSMjKDzEZDP7cv7zGzYLSI_2YXJBDHh6CYu_HoG08pw1ohTExgBgTprv410fkKbZFQn-rthOmmkD297LiKVJRpmSEDwx9iUp5-3e-nr94R5Vgh2f21mR9anQSnrsXAhkz1GGcaa/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLBasaZoSMjKDzEZDP7cv7zGzYLSI_2YXJBDHh6CYu_HoG08pw1ohTExgBgTprv410fkKbZFQn-rthOmmkD297LiKVJRpmSEDwx9iUp5-3e-nr94R5Vgh2f21mR9anQSnrsXAhkz1GGcaa/s320/2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ok, that&#39;s all,&lt;br /&gt;
If you have suggest or some questions, just write on comment form below,&lt;br /&gt;
Hope it helpful for all and good luck, &lt;br /&gt;&lt;br /&gt;Best Regard,&lt;br /&gt;Bayu Prawira</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/1918548998789167847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/09/highlight-codescripts-in-post-article.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1918548998789167847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1918548998789167847'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/09/highlight-codescripts-in-post-article.html' title='Highlight Code/Scripts in Post Article'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLBasaZoSMjKDzEZDP7cv7zGzYLSI_2YXJBDHh6CYu_HoG08pw1ohTExgBgTprv410fkKbZFQn-rthOmmkD297LiKVJRpmSEDwx9iUp5-3e-nr94R5Vgh2f21mR9anQSnrsXAhkz1GGcaa/s72-c/2.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-2803050417413336780</id><published>2012-09-07T00:06:00.001-07:00</published><updated>2012-09-07T00:08:36.171-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="others"/><title type='text'>Easy Install Trac with VisualSvn Server on Windows 7</title><content type='html'>Hi Haloo, ,&lt;br /&gt;
On this post we will talk about &quot;Trac Installation&quot;,&lt;br /&gt;
&lt;span class=&quot;searchword1&quot;&gt;Trac&lt;/span&gt; is an enhanced wiki and issue tracking system for software development &lt;span class=&quot;searchword2&quot;&gt;project&lt;/span&gt;s. Trac uses a minimalistic approach to web-based software project &lt;span class=&quot;searchword3&quot;&gt;management&lt;/span&gt;. Read more about Trac &lt;a href=&quot;http://trac.edgewall.org/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Ok, now I will explain step by step of Trac installation.&lt;br /&gt;
1. Install VisualSVN Server 2.1 using default settings, or download software &lt;a href=&quot;http://visualsvn.com/files/VisualSVN-Server-2.1.7.msi&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
2. Make sure your machine already installed Tortoise SVN, download software &lt;a href=&quot;http://tortoisesvn.net/downloads.html&quot; target=&quot;_blank&quot;&gt;here .&lt;/a&gt;&lt;br /&gt;
3. Download Trac for VisualSVN Server &lt;a href=&quot;http://visualsvn.com/files/VisualSVN-Server-Trac-2.1.1.21699.zip&quot; target=&quot;_blank&quot;&gt;here &lt;/a&gt;&lt;a href=&quot;http://visualsvn.com/files/VisualSVN-Server-Trac-2.1.1.21699.zip&quot;&gt;VisualSVN-Server-Trac-2.1.1.21699.zip&lt;/a&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Unzip it to C:\Program Files\VisualSVN Server directory.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Then reboot system.&lt;br /&gt;
4. Create folder C:\Trac and allow &quot;Full control&quot; access.&lt;br /&gt;
5. Open VisualSVN Server Software, create new user&lt;br /&gt;
&amp;nbsp; &amp;nbsp; username : bayu&lt;br /&gt;
&amp;nbsp; &amp;nbsp; password : bayu&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHFmlvXN1VmGCt1SA95Vkybzc9oBegRiXd8gIiSD5J8G4pocbDbVrXLvGbVsmrdJD9fl9qJaWoSAtY28I6313tcTMhXYyAFSgeQo4eSW3E4kMVhpAceafciNBSmtlY3I4sk-C0VL_YFAt0/s1600/bywebs.blogspot.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHFmlvXN1VmGCt1SA95Vkybzc9oBegRiXd8gIiSD5J8G4pocbDbVrXLvGbVsmrdJD9fl9qJaWoSAtY28I6313tcTMhXYyAFSgeQo4eSW3E4kMVhpAceafciNBSmtlY3I4sk-C0VL_YFAt0/s320/bywebs.blogspot.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
6. Create new Repository. Right click on Repositories folder -&amp;gt; Create New Repository&lt;br /&gt;
&amp;nbsp; &amp;nbsp; (remember to give checked on create default structure) &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjld5ACnsQLIgMKA3fRzN4T-P3cis5QAQHBE7bUBqqSVDq26ogqH8ACzEYaDi0b3yKbNVOAcNLjuZL9UzaO8C2zI1LW17qAn6mvZcwFMNjiXHk5i2sALLMqQH6JpCMoGsimg4c3PY29HjUa/s1600/bywebs.blogspot2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjld5ACnsQLIgMKA3fRzN4T-P3cis5QAQHBE7bUBqqSVDq26ogqH8ACzEYaDi0b3yKbNVOAcNLjuZL9UzaO8C2zI1LW17qAn6mvZcwFMNjiXHk5i2sALLMqQH6JpCMoGsimg4c3PY29HjUa/s320/bywebs.blogspot2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
7. Take look on Your Repositories of your VisualSVN Server.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcub6y3PHHdl14wq4Mhu11En3ySXnqDnUfvt2feaLL-42CL-Yy4JKa-j55dKcBjMk8V9UtZMaG0nhx06AjXmS-sHMFjQhMcyNcAaVib4gFf1tHbudwUWs_nKyPf-AOVFsjbv9JiTwxOsbX/s1600/bywebs.blogspot3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcub6y3PHHdl14wq4Mhu11En3ySXnqDnUfvt2feaLL-42CL-Yy4JKa-j55dKcBjMk8V9UtZMaG0nhx06AjXmS-sHMFjQhMcyNcAaVib4gFf1tHbudwUWs_nKyPf-AOVFsjbv9JiTwxOsbX/s320/bywebs.blogspot3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;8. Then follow some steps below.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; -&amp;nbsp; Right click on your project repository -&amp;gt; Properties -&amp;gt; Add -&amp;gt; Add your user -&amp;gt; Ok&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgydRjAP7JsLF0QSQXu4O3MG6pz9lQhD_4pmZEKFfbKQi9MRNot5rcaNXorbTO4OL7zfEDwghPA4eYlDpghWq7c_-01TGVbDNHuNc7WY_KzXJRQ9ONmq1cocPYyxsVDAlDSlig8GouOt3Cp/s1600/bywebs.blogspot-8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgydRjAP7JsLF0QSQXu4O3MG6pz9lQhD_4pmZEKFfbKQi9MRNot5rcaNXorbTO4OL7zfEDwghPA4eYlDpghWq7c_-01TGVbDNHuNc7WY_KzXJRQ9ONmq1cocPYyxsVDAlDSlig8GouOt3Cp/s320/bywebs.blogspot-8.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;- Copy trunk url of your repository&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLZXd22BeI4vZHLJEu4g2ovZuE-GVW2Q6meKdzZdnv6Izse4SdKyP5CMBxhRfeXDgvZtLVyFbvXoKTNb8iQXX2Y_MpOcPpL2xFydPEFSq1QiO3AJgrGGKIMCCS2ViDZkHBEai_7AlmWcyB/s1600/bywebs.blogspot4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;249&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLZXd22BeI4vZHLJEu4g2ovZuE-GVW2Q6meKdzZdnv6Izse4SdKyP5CMBxhRfeXDgvZtLVyFbvXoKTNb8iQXX2Y_MpOcPpL2xFydPEFSq1QiO3AJgrGGKIMCCS2ViDZkHBEai_7AlmWcyB/s320/bywebs.blogspot4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Checkout your repository trunk by tortoise svn (Please take look on image below)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgid1KS4siiFatb38-Gjj1u8jXz3t1LqKQDf9YVVuxwMg3QiRaUVoUqHUna0i2ByPeb4eTv55M7T3xnIDJI2uLl8WzFaeI2MBFo058VdIyrHxjOSaYeDOOev4PdDfhrC0BJTnHy2ewVwl_E/s1600/bywebs.blogspot5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgid1KS4siiFatb38-Gjj1u8jXz3t1LqKQDf9YVVuxwMg3QiRaUVoUqHUna0i2ByPeb4eTv55M7T3xnIDJI2uLl8WzFaeI2MBFo058VdIyrHxjOSaYeDOOev4PdDfhrC0BJTnHy2ewVwl_E/s320/bywebs.blogspot5.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYAMy9Vi6CzZf6HBzFgcmp2-2JOScbaPVyA6B8Gk2-OOI6uvgwsQyGswayvQdb3qwpoGRoqk9ciSyW5yq8hJI-0_vHqhMEpIMaNBnXd_GWf7DHgAub76Apm3YMLmdpcgGRBl7UaKNpAZZu/s1600/bywebs.blogspot6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYAMy9Vi6CzZf6HBzFgcmp2-2JOScbaPVyA6B8Gk2-OOI6uvgwsQyGswayvQdb3qwpoGRoqk9ciSyW5yq8hJI-0_vHqhMEpIMaNBnXd_GWf7DHgAub76Apm3YMLmdpcgGRBl7UaKNpAZZu/s320/bywebs.blogspot6.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYGQnhV26O0xsA_947Vb2f_7cdirB2Oyb7MwRa3LY3xfpGZC8XE9XsVPSslmubmcx1Cubrw8hHwDSnO9j_-4AG2zL5TAQd0YgMbMAmQmy9u6cwdEyWFP-mG1OlovoN5Qwr7voJNManOcD_/s1600/bywebs.blogspot9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYGQnhV26O0xsA_947Vb2f_7cdirB2Oyb7MwRa3LY3xfpGZC8XE9XsVPSslmubmcx1Cubrw8hHwDSnO9j_-4AG2zL5TAQd0YgMbMAmQmy9u6cwdEyWFP-mG1OlovoN5Qwr7voJNManOcD_/s320/bywebs.blogspot9.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
9. Then try to look on your repository root, D:\Repositories\projecttest (trunk folder will checked green).&lt;br /&gt;
10. Make new folder inside trunk folder, D:\Repositories\projecttest\trunk\project. and add the folder by tortoise svn.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicsBACOcw4_0M__2_15JKdUKgGFWmt2rx9BqWZqDDudxPWQF8OPST216ibk_51T0o1tvEzj7uCBEAYu5wpS9sUuTrNjACUfCRB5RxnWRgkwHitVvAOVisFfrqU4SMkdomQwkZa1KmtvX87/s1600/bywebs.blogspot10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;199&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicsBACOcw4_0M__2_15JKdUKgGFWmt2rx9BqWZqDDudxPWQF8OPST216ibk_51T0o1tvEzj7uCBEAYu5wpS9sUuTrNjACUfCRB5RxnWRgkwHitVvAOVisFfrqU4SMkdomQwkZa1KmtvX87/s320/bywebs.blogspot10.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVDfADc3AyHe-smgA7PJN0hbmVyPyFqzNEqKQST_Y33QP2caUG_vL2st0izF36nY4Key9_ElT60RdLvPXJAUtrjxZ65e0x3_2ltxxMSwFhElfYETbBb1wGFMsNtuWfMgmcl-ZDc_DngKFS/s1600/bywebs.blogspot11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVDfADc3AyHe-smgA7PJN0hbmVyPyFqzNEqKQST_Y33QP2caUG_vL2st0izF36nY4Key9_ElT60RdLvPXJAUtrjxZ65e0x3_2ltxxMSwFhElfYETbBb1wGFMsNtuWfMgmcl-ZDc_DngKFS/s320/bywebs.blogspot11.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqlZQin3cwbDI_9jEDmf1w78g2F84YNCHG6nznpD_nVhy3RDhDm00LJveqU9omBxcvg40ZeMk15vhrL_t2WuMTsavcQEGgy-_aK-E4AElGnQ8iokRH6RQD1rx0SrdIU_1DgAO_ZJ4QtGXJ/s1600/bywebs.blogspot12.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqlZQin3cwbDI_9jEDmf1w78g2F84YNCHG6nznpD_nVhy3RDhDm00LJveqU9omBxcvg40ZeMk15vhrL_t2WuMTsavcQEGgy-_aK-E4AElGnQ8iokRH6RQD1rx0SrdIU_1DgAO_ZJ4QtGXJ/s320/bywebs.blogspot12.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgydRjAP7JsLF0QSQXu4O3MG6pz9lQhD_4pmZEKFfbKQi9MRNot5rcaNXorbTO4OL7zfEDwghPA4eYlDpghWq7c_-01TGVbDNHuNc7WY_KzXJRQ9ONmq1cocPYyxsVDAlDSlig8GouOt3Cp/s1600/bywebs.blogspot-8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgydRjAP7JsLF0QSQXu4O3MG6pz9lQhD_4pmZEKFfbKQi9MRNot5rcaNXorbTO4OL7zfEDwghPA4eYlDpghWq7c_-01TGVbDNHuNc7WY_KzXJRQ9ONmq1cocPYyxsVDAlDSlig8GouOt3Cp/s320/bywebs.blogspot-8.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbz_ufGAp1dwLsj2R9h2p4NhEtu9mWlUC6wUhYrAtLHPm4iSO7NBSFV6xSriNfqmiweZZW7UH3DsX4WIu-Dooi3C0UKYLCs_EZaTff_v6RK0vIMLnRP3vYstUGS-tdLI2DzBWn4HFm8SZQ/s1600/bywebs.blogspot13.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbz_ufGAp1dwLsj2R9h2p4NhEtu9mWlUC6wUhYrAtLHPm4iSO7NBSFV6xSriNfqmiweZZW7UH3DsX4WIu-Dooi3C0UKYLCs_EZaTff_v6RK0vIMLnRP3vYstUGS-tdLI2DzBWn4HFm8SZQ/s320/bywebs.blogspot13.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3w6yQPcK9F7DQiyukzEHc88kLZTeQRXPz8ZIjOP-zpSjFx4ymW2odVYQhObEv80Ukc8zPlWDtnGCrrVOZjq7Bo72gjY65F04s4iLj2qu31tmpNtsgrHbxsk05YeDTl3wiZuqWmSO3i5Xn/s1600/bywebs.blogspot14.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&amp;nbsp;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3w6yQPcK9F7DQiyukzEHc88kLZTeQRXPz8ZIjOP-zpSjFx4ymW2odVYQhObEv80Ukc8zPlWDtnGCrrVOZjq7Bo72gjY65F04s4iLj2qu31tmpNtsgrHbxsk05YeDTl3wiZuqWmSO3i5Xn/s320/bywebs.blogspot14.jpg&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
11. Add system variable for your system&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Control Panel -&amp;gt; system and security -&amp;gt;system -&amp;gt; advanced system settings -&amp;gt; Environment variable -&amp;gt; New&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKFiVipviZVYeH_QYmdGVr70bOwT0ZJeZC4c6WX6Wik_9NjrhYWkxVKxfuo20V0B_vqAdZPz4pnBkmLSO4bgSnOYg6kaHx6e8CSD9J5LnQAP3LzntD7adqWfrVNc0egAtgBBjuKHUoF3C9/s1600/bywebs.blogspot15.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKFiVipviZVYeH_QYmdGVr70bOwT0ZJeZC4c6WX6Wik_9NjrhYWkxVKxfuo20V0B_vqAdZPz4pnBkmLSO4bgSnOYg6kaHx6e8CSD9J5LnQAP3LzntD7adqWfrVNc0egAtgBBjuKHUoF3C9/s320/bywebs.blogspot15.jpg&quot; width=&quot;247&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PythonHome = C:\Program Files\VisualSVN Server\Trac\python&lt;br /&gt;
&lt;br /&gt;
12.&amp;nbsp; Open command prompt and goto C:\Program Files\VisualSVN Server\trac directory&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg_dPUjc2Di_3RxL4p2uCMoSg-WI9jPbs8G9Br7l7kYu5invG-7BouBkXDsGDqDARMHwprVC6xwUgwtDjF5IuHk7R3twmWcNtwIBmw_malZUT1ktL__9B2UMTPBzycjvRtfju7WiN-DrCN/s1600/bywebs.blogspot-16.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg_dPUjc2Di_3RxL4p2uCMoSg-WI9jPbs8G9Br7l7kYu5invG-7BouBkXDsGDqDARMHwprVC6xwUgwtDjF5IuHk7R3twmWcNtwIBmw_malZUT1ktL__9B2UMTPBzycjvRtfju7WiN-DrCN/s320/bywebs.blogspot-16.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
13. Input you project details&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;Project Name&lt;/i&gt; set to &lt;b&gt;projecttest&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Database connection string&lt;/i&gt;, hit &lt;b&gt;Enter&lt;/b&gt; for default&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Repository type&lt;/i&gt;, hit &lt;b&gt;Enter&lt;/b&gt; for default of &lt;b&gt;svn&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Path to respository&lt;/i&gt;, &lt;i&gt;&lt;b&gt;D:/Repositories/projecttest &lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBRP7T2FlWySFeIyeZErNimikLge1jTLS_J3Jss2JlbrTalkuTE2uzBXLkwkG9Q3Qksfly1kO6HcbIe5z1pS6KLbtixScJsQYABqnKXlwWdRn1bXKjf9ZS6G9tFjiow5JNw1eE4iDaAIMY/s1600/bywebs.blogspot18.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBRP7T2FlWySFeIyeZErNimikLge1jTLS_J3Jss2JlbrTalkuTE2uzBXLkwkG9Q3Qksfly1kO6HcbIe5z1pS6KLbtixScJsQYABqnKXlwWdRn1bXKjf9ZS6G9tFjiow5JNw1eE4iDaAIMY/s320/bywebs.blogspot18.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
For the success result will give you &quot;Congratulations!&quot; text.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ2v5yaxL56_LD0_bXelL6I6lpZuZ32MhhyphenhyphenyICSI407eSob2iUrQu09l8vS7yhPf7-Epy9Oz21fKn6JF-rw-ocWR7DAjIMDoDlNtoLK7eTnTkCBzv6clXzqYTiZCjlDd7WbU4kf9SUFSIG/s1600/bywebs.blogspot19.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ2v5yaxL56_LD0_bXelL6I6lpZuZ32MhhyphenhyphenyICSI407eSob2iUrQu09l8vS7yhPf7-Epy9Oz21fKn6JF-rw-ocWR7DAjIMDoDlNtoLK7eTnTkCBzv6clXzqYTiZCjlDd7WbU4kf9SUFSIG/s320/bywebs.blogspot19.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;14. Add the following text to file C:\Program Files\VisualSVN Server\conf\httpd-custom.conf&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;LoadModule python_module &quot;trac/python/mod_python_so.pyd&quot;
LoadModule authz_user_module bin/mod_authz_user.so
&amp;lt;Location /trac&amp;gt;
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir C:\Trac
  PythonOption TracUriRoot /trac

  AuthName &quot;Trac&quot;
  AuthType Basic
  AuthBasicProvider file
  AuthUserFile &quot;D:/Repositories/htpasswd&quot;

  Require valid-user
&amp;lt;/Location&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
15. Open your lovely browser and try to access &lt;a href=&quot;http://localhost/trac&quot;&gt;http://localhost/trac&lt;/a&gt; or &lt;a href=&quot;https://localhost/trac&quot;&gt;https://localhost/trac&lt;/a&gt; (if you are using secure connection) in a browser, enter username and password.&lt;br /&gt;
&lt;br /&gt;
16. If you still have problem or can not access &lt;a href=&quot;http://localhost/trac&quot;&gt;http://localhost/trac&lt;/a&gt;, change the port of visualSVN server.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Open your visualSVN server -&amp;gt; open the properties dialog box for the current selection -&amp;gt; network tab -&amp;gt; change the port to 8000.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAnoJyrTgHt3LMtoSetmP5s0oxoRjmFMb0CplGdanyM5fIEw4S3DMXP39EH3Hl0LXgOPol-Gmmax_KactMt4R8panSsY6U6ZL87JDYx6tkvs8Z2RtM0cRtHhmQfn08lj7h59jyMNU-ECG9/s1600/Untitled-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAnoJyrTgHt3LMtoSetmP5s0oxoRjmFMb0CplGdanyM5fIEw4S3DMXP39EH3Hl0LXgOPol-Gmmax_KactMt4R8panSsY6U6ZL87JDYx6tkvs8Z2RtM0cRtHhmQfn08lj7h59jyMNU-ECG9/s320/Untitled-1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
- Restart your VisualSVN Server (menu bar &quot;Action&quot; -&amp;gt; Restart), then look for your server url and port&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc5EexR6DWowODiM_QHE-sl0ntOOw1rsHDcv8TnKX7qi8BU6x3KsCRLqIo1rtcxWJGMSCHl8YFipiZJNvhqWItXDvjxDwn3b85Ha7eCf7HATYiQWsceUZjO2AKMZ7zgdz-AvMCACo8S-at/s1600/bywebs.blogspot20.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc5EexR6DWowODiM_QHE-sl0ntOOw1rsHDcv8TnKX7qi8BU6x3KsCRLqIo1rtcxWJGMSCHl8YFipiZJNvhqWItXDvjxDwn3b85Ha7eCf7HATYiQWsceUZjO2AKMZ7zgdz-AvMCACo8S-at/s320/bywebs.blogspot20.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
on mine is &lt;a href=&quot;visualsvn://Browse/&quot; id=&quot;url&quot;&gt;https://admin-PC:8000/svn/&lt;/a&gt;&amp;nbsp; but try to open this page &lt;a href=&quot;visualsvn://Browse/&quot; id=&quot;url&quot;&gt;https://admin-PC:8000/trac/projecttest&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmwl_KwFUIZ_yrIMru8YP_7ubzujh-FCzonuQFNn-vkKt1EQqFDfVrIEbPvEkc38VTc6BP2Wyrg6eXIMk6xYNV-acuaHDudmQu2tGkKRhZ-9eI8gM6cjUMtPViH_Ys5wpuSEGpygBIxk6s/s1600/bywebs.blogspot21.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmwl_KwFUIZ_yrIMru8YP_7ubzujh-FCzonuQFNn-vkKt1EQqFDfVrIEbPvEkc38VTc6BP2Wyrg6eXIMk6xYNV-acuaHDudmQu2tGkKRhZ-9eI8gM6cjUMtPViH_Ys5wpuSEGpygBIxk6s/s320/bywebs.blogspot21.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ok, finished all. Now you can manage your project management.&lt;br /&gt;
Hope it helpful for all, but if you still have questions just write your comment below&lt;br /&gt;
&lt;br /&gt;
Best regard from Bali,&lt;br /&gt;
Bayu Prawira&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/2803050417413336780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/09/easy-install-trac-with-visualsvn-server.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/2803050417413336780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/2803050417413336780'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/09/easy-install-trac-with-visualsvn-server.html' title='Easy Install Trac with VisualSvn Server on Windows 7'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHFmlvXN1VmGCt1SA95Vkybzc9oBegRiXd8gIiSD5J8G4pocbDbVrXLvGbVsmrdJD9fl9qJaWoSAtY28I6313tcTMhXYyAFSgeQo4eSW3E4kMVhpAceafciNBSmtlY3I4sk-C0VL_YFAt0/s72-c/bywebs.blogspot.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-2088921216639403418</id><published>2012-07-05T23:42:00.001-07:00</published><updated>2012-07-05T23:48:33.945-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Add element li by using jQuery ( After &amp; Before)</title><content type='html'>Hello everybody, , :D&lt;br /&gt;
&lt;br /&gt;
Ok, as my title above, today I will share about how to add new element li by using jQuery (after &amp;amp; before). It is possible for you to add new element li with position like you want. So you don&#39;t need to make many code for simple task.&lt;br /&gt;
&lt;br /&gt;
This way the code :&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;## before 

$(&quot;.byweb2&quot;).before(&quot;&amp;lt;li&amp;gt;Added Test before Test 2&amp;lt;/li&amp;gt;&quot;); 

## after

$(&quot;.byweb2&quot;).after(&quot;&amp;lt;li&amp;gt;Added Test before Test 2&amp;lt;/li&amp;gt;&quot;);

&lt;/pre&gt;
&lt;br /&gt;
You can download the complete code &lt;a href=&quot;http://www.ziddu.com/download/19850943/jquery-after-before.zip.html&quot; target=&quot;_blank&quot;&gt;Klik Here&lt;/a&gt;&lt;br /&gt;
If you have any question, just write your comment below.&lt;br /&gt;
I will try to help you as my best :)&lt;br /&gt;
&lt;br /&gt;
Warm regard from Bali Island</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/2088921216639403418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/07/add-element-li-by-using-after-before.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/2088921216639403418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/2088921216639403418'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/07/add-element-li-by-using-after-before.html' title='Add element li by using jQuery ( After &amp; Before)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-631905335663999520</id><published>2012-06-06T08:01:00.001-07:00</published><updated>2012-06-06T08:01:29.100-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Replace All Space or X character in Javascript</title><content type='html'>Hi guys,
&lt;br /&gt;
Today I will share a little something about Javascript.
&lt;br /&gt;
&lt;br /&gt;
It is small thing but I think it is really - really&amp;nbsp; important, because I have confused about it before :D.
&lt;br /&gt;
It is about how to remove or replace all of space or x character on your string using Javascript.&lt;br /&gt;
I suggest you to use this way, for example :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;var bywebs = &quot;1,2,3,4,5,6,7,8,9&quot;;
bywebs = bywebs .replace(new RegExp(&#39;,&#39;, &quot;g&quot;),&#39; &#39;); // it will replace all &quot;,&quot; with &quot;(space)&quot;

// result 1 2 3 4 5 6 7 8 9
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Ok, this is a simple way, but very helpfull :)&lt;br /&gt;
Hope it can helps you.&lt;br /&gt;
&lt;br /&gt;
Warm greeting from Bali</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/631905335663999520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/06/replace-all-space-or-x-character-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/631905335663999520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/631905335663999520'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/06/replace-all-space-or-x-character-in.html' title='Replace All Space or X character in Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-4123499992889077251</id><published>2012-05-29T07:20:00.000-07:00</published><updated>2012-05-29T07:20:44.329-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cakephp"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Table and Model Name - Cakephp</title><content type='html'>Hi everyone,&lt;br /&gt;
&lt;br /&gt;
Long time I have no post something.&lt;br /&gt;
Today I will write something about &quot;&lt;b&gt;Table and Model Name in Cakephp&lt;/b&gt;&quot;.&lt;br /&gt;
As you know, in Cakephp we should write the name of table in plural.&lt;br /&gt;
I mean for example if you want make table with name &quot;&lt;b&gt;user&lt;/b&gt;&quot; you should make it like &quot;&lt;b&gt;users&lt;/b&gt;&quot; and &quot;&lt;b&gt;post&lt;/b&gt;&quot; should be &quot;&lt;b&gt;posts&lt;/b&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
So how to handle table names that are written in singular with &quot;...y&quot;?&lt;br /&gt;
hehe ... 
just so simple, I make an example with table name &quot;&lt;b&gt;entry&lt;/b&gt;&quot; and it should be &quot;&lt;b&gt;entries&lt;/b&gt;&quot;. :D&lt;br /&gt;
&lt;br /&gt;
But for Model name in cakephp you should write the name in singular.&lt;br /&gt;
you already have a table &quot;&lt;b&gt;entries&lt;/b&gt;&quot;, than in your &lt;b&gt;app\models&lt;/b&gt; , you should make a new file for model. The name of the file is &quot;entry.php&quot; (in singular &#39;user.php, post.php&#39;). &lt;br /&gt;
And below is basic code for Model Name :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;class Entry extends AppModel {
 var $name = &#39;Entry&#39;;
}
&lt;/pre&gt;
&lt;br /&gt;
How about if we use underscore in our table names??&lt;br /&gt;
for example you have table name &quot;&lt;b&gt;categories_lists&lt;/b&gt;&quot;, how will we make the Model name?&lt;br /&gt;
I show you the simple way,&lt;br /&gt;
in your &lt;b&gt;app\models&lt;/b&gt;, create a new file with name &quot;&lt;b&gt;categories_list.php&lt;/b&gt;&quot;.&lt;br /&gt;
write this code inside of the file :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;class CategoriesList extends AppModel {
 var $name = &#39;CategoriesList&#39;;
}
&lt;/pre&gt;
&lt;br /&gt;
Ok, that&#39;s all&lt;br /&gt;
if you have any question, just write your comment below :D&lt;br /&gt;
Thanks for your visit.&lt;br /&gt;
&lt;br /&gt;
warm regard from bali :)</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/4123499992889077251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/05/table-and-model-name-cakephp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/4123499992889077251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/4123499992889077251'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/05/table-and-model-name-cakephp.html' title='Table and Model Name - Cakephp'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-7605329205822073646</id><published>2012-04-18T09:38:00.001-07:00</published><updated>2012-04-18T09:44:54.029-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Auto Request and Manage Json Data</title><content type='html'>Hello, , &lt;br /&gt;
Today I have got a &lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;new knowledge from programming website.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;This is about &lt;/span&gt;&lt;/span&gt;data-interchange
  format. Did you ever hear about JSON?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSON&lt;/b&gt; (JavaScript Object Notation) is a lightweight data-interchange
  format. It is easy for humans to read and write. It is easy for machines to
  parse and generate. It is based on a subset of the
  JavaScript
  Programming Language,
  Standard
  ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely
  language independent but uses conventions that are familiar to programmers of
  the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python,
  and many others. These properties make JSON an ideal data-interchange language.( you can read more in &lt;a href=&quot;http://www.json.org/&quot;&gt;www.json.org&lt;/a&gt; ).&lt;br /&gt;
&lt;br /&gt;
This is example of json data :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;{&quot;name&quot;:&quot;bywebs.blogspot.com&quot;,&quot;time&quot;:&quot;12 : 20 : 56&quot;}&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
And now I will make a tutorial to auto request and manage json data every x seconds. But in this tutorial I will use a jquery script (jquery-1.6.1.min.js).&lt;br /&gt;
&lt;br /&gt;
Let&#39;s see for my code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; var auto_refresh = setInterval(function(){ // interval auto refresh
&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $.getJSON(&quot;json.php&quot;, function(json) { // request method using jquery

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // json.php will return json data

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // parsing data

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var table = &#39;&#39;;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; table += &#39;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Name&amp;lt;/td&amp;gt;&#39;;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; table += &#39;&amp;lt;td&amp;gt;&#39;+json[&#39;name&#39;]+&#39;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#39;;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; table += &#39;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Server Time&amp;lt;/td&amp;gt;&#39;;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; table += &#39;&amp;lt;td&amp;gt;&#39;+json[&#39;time&#39;]+&#39;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#39;;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //inser data to Id bywebs

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&#39;bywebs&#39;).innerHTML = table;


&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;});

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}, 5000); // will request json every 5 seconds, you can change it

&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
You can develop this code by yourself.&lt;br /&gt;
so for the complete code you can &quot;&lt;a href=&quot;http://www.ziddu.com/download/19179485/RequestManageJson.zip.html&quot; target=&quot;_blank&quot;&gt;Download here&lt;/a&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
Hope it useful for all, if you have any question and suggestions, just write your comment below. :)&lt;br /&gt;
&lt;br /&gt;
Good Luck.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/7605329205822073646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/auto-request-and-manage-json-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7605329205822073646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7605329205822073646'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/auto-request-and-manage-json-data.html' title='Auto Request and Manage Json Data'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-6307300165284587170</id><published>2012-04-16T00:21:00.002-07:00</published><updated>2012-04-16T00:21:51.186-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Replace space and all Illegal character on string - PHP</title><content type='html'>Hi, ,&lt;br /&gt;
Do you search for how to replace/remove illegal character (@#$%^&amp;amp;* etc) in your text string?&lt;br /&gt;
On this post I will share you simple code to make it.&lt;br /&gt;
This code will only allowed numbers (0-9) and characters (a-z).&lt;br /&gt;
&lt;br /&gt;
my code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;?php
&amp;nbsp;&amp;nbsp;&amp;nbsp; $string = &#39;by^#^we%%&amp;amp;bs.b_((logs+)&amp;amp;#@pot.()*)(~co!~@#_+m&#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $string = preg_replace(&#39;/[^0-9 a-z]+/i&#39;, &#39;&#39;, $string);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $string;
?&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
And below is code for replace multiple space on your text string&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;?php
&amp;nbsp;&amp;nbsp;&amp;nbsp; $string = &#39;by&amp;nbsp;&amp;nbsp; webs.&amp;nbsp;&amp;nbsp; blog&amp;nbsp; spot.&amp;nbsp; com&#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $string = str_replace(array(&#39; &#39;),array(&#39;&#39;),$string);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $string;
?&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Hope it will useful for all,&lt;br /&gt;
If you have questions or suggestions, please write your comment below.&lt;br /&gt;
&lt;br /&gt;
Good Luck :)&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/6307300165284587170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/replace-space-and-all-illegal-character.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/6307300165284587170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/6307300165284587170'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/replace-space-and-all-illegal-character.html' title='Replace space and all Illegal character on string - PHP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-7547861331729837811</id><published>2012-04-14T02:22:00.000-07:00</published><updated>2012-04-14T02:38:23.575-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Make Confirm Dialog Javascript</title><content type='html'>Hello every body,&lt;br /&gt;
When the first time I learned javascript code, I was really happy when I &lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps alt-edited&quot;&gt;succeed to make pop up dialog, :D&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
And now I will share a simple code to make a confirmation dialog before you do the actions.&lt;br /&gt;
I have some ways, but the simple one is:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;a href=&quot;http://bywebs.blogspot.com&quot; onClick=&quot;return confirm(&#39;Do you realy want to visit my website?&#39;);&quot;&amp;gt; My Website &amp;lt;/a&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Demo&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://bywebs.blogspot.com&quot; onClick=&quot;return confirm(&#39;Do you realy want to visit my website?&#39;);&quot;&gt; My Website &lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Beside that I also have the second way, but it will use a function.&lt;br /&gt;
Let&#39;s take a look&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function _confirm(url){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(confirm(&#39;Do you realy want to show my link?&#39;)){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&#39;myDiv&#39;).innerHTML = &quot;&amp;lt;a href=&#39;&quot;+url+&quot;&#39;&amp;gt; My Website&amp;lt;/a&amp;gt;&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;lt;/script&amp;gt;

&amp;lt;a onClick=&quot;_confirm(&#39;http://bywebs.blogspot.com&#39;);&quot;&amp;gt;show my link&amp;lt;/a&amp;gt;
&amp;lt;div id=&quot;myDiv&quot;&amp;gt;&amp;lt;/div&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Demo&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 function _confirm(url){
  if(confirm(&#39;Do you realy want to show my link?&#39;)){
   document.getElementById(&#39;myDiv&#39;).innerHTML = &quot;&lt;a href=&#39;&quot;+url+&quot;&#39; style=&#39;cursor:pointer;&#39;&gt; My Website&lt;/a&gt;&quot;;
  }
 }
&lt;/script&gt;

&lt;a onClick=&quot;_confirm(&#39;http://bywebs.blogspot.com&#39;);&quot; style=&quot;cursor:pointer;&quot;&gt;show my link&lt;/a&gt;
&lt;br /&gt;
&lt;div id=&quot;myDiv&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
That&#39;s all :).&lt;br /&gt;
Hope it will useful, if you have any question , just write your comment below.&lt;br /&gt;
Thanks and Good luck</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/7547861331729837811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/make-confirm-dialog-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7547861331729837811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/7547861331729837811'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/make-confirm-dialog-javascript.html' title='Make Confirm Dialog Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-8475367476423839874</id><published>2012-04-12T22:15:00.000-07:00</published><updated>2012-04-12T22:18:34.822-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Cut a string after X characters -- PHP</title><content type='html'>Hi guys, ,&lt;br /&gt;
In this my post, let&#39;s we talk about string manipulation using PHP code.&lt;br /&gt;
There are many functions of php that you can use to manipulation your string.&lt;br /&gt;
But now I will share you a simple way &lt;b&gt;how to cut a string after x characters&lt;/b&gt;.&lt;br /&gt;
We will use 2 manipulation  functions of php, they are strlen ( for count characters of your string ) and substr ( for cut characters of your string ).&lt;br /&gt;
&lt;br /&gt;
This is my code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;?php&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_POST[&#39;submit&#39;])){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $text = $_POST[&#39;text&#39;];
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //check if you have value in text.&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(empty($text)){&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; echo &quot;&amp;lt;h3&amp;gt;Error: Please complete the form.&amp;lt;a href=\&quot;$_SERVER[PHP_SELF]\&quot;&amp;gt;back&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&quot;;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; exit(); //exit the script and don&#39;t process the rest of it!&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $limit = 10; //limit the char will cut
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (strlen($text) &amp;gt; $limit) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $text = substr($text, 0, $limit) . &#39;...&#39;; //if $text more than $limit char will replace with (...)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $text = $text;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //success message, redirect to main page.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $msg = urlencode(&quot;Result of your string : &amp;lt;h4&amp;gt;$text&amp;lt;/h4&amp;gt; &amp;lt;a href=\&quot;cut_string.php\&quot;&amp;gt;Try again?&amp;lt;/a&amp;gt;&quot;);&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; header(&quot;Location: cut_string.php?msg=$msg&quot;);&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exit();&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //if there is a message, display it&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_GET[&#39;msg&#39;]))&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //but decode it first!&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;&amp;lt;p&amp;gt;&quot;.urldecode($_GET[&#39;msg&#39;]).&quot;&amp;lt;/p&amp;gt;&quot;;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //the upload form&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h1&amp;gt;Simple code to cut a string after X characters PHP - &amp;lt;a href=\&quot;http://bywebs.blogspot.com\&quot;&amp;gt;bywebs.blogspot.com&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form action=\&quot;$_SERVER[PHP_SELF]\&quot; method=\&quot;post\&quot;enctype=\&quot;multipart/form-data\&quot;&amp;gt;\n&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;Your text:&amp;lt;input type=\&quot;text\&quot; name=\&quot;text\&quot; /&amp;gt;&amp;lt;/p&amp;gt;\n&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input type=\&quot;submit\&quot; name=\&quot;submit\&quot; value=\&quot;Submit\&quot; /&amp;gt;&amp;lt;/p&amp;gt;&quot;;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; 
?&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Just a simple code :)&lt;br /&gt;
Let&#39;s try for your self, for the complete file you can &quot;&lt;a href=&quot; 
http://www.ziddu.com/download/19135398/cut_string.zip.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Download Here&lt;/b&gt;&lt;/a&gt;&quot;.&lt;br /&gt;
Hope it useful for all, if you have any question, you can write your comment below :)&lt;br /&gt;
&lt;br /&gt;
Good Luck :)</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/8475367476423839874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/cut-string-after-x-characters-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8475367476423839874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8475367476423839874'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/cut-string-after-x-characters-php.html' title='Cut a string after X characters -- PHP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-1439540854955980134</id><published>2012-04-12T10:00:00.000-07:00</published><updated>2012-04-12T21:01:44.871-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Simple Upload and Resize Image using php</title><content type='html'>According to my post title above, now I will share a simple code about make upload and resize image using php. Exactly the code I got from searching on google, but I have made a little modification so now the code become a bit nicer than before. hehe ;).&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Let&#39;s take look for my code:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Resize.php&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;?php

if(isset($_POST[&#39;submit&#39;]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //directory destination , make sure this directory is writable!
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $path_thumbs = &quot;C:\\bayu&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $path_big = &quot;C:\\bayu\\thumb&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //the new width of the resized image, in pixels.
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $img_thumb_width = 100; // 

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $extlimit = &quot;yes&quot;; //Limit allowed extensions? (no for all extensions allowed)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //List of allowed extensions if extlimit = yes
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $limitedext = array(&quot;.gif&quot;,&quot;.jpg&quot;,&quot;.png&quot;,&quot;.jpeg&quot;,&quot;.bmp&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //the image -&amp;gt; variables
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $file_type = $_FILES[&#39;vImage&#39;][&#39;type&#39;];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $file_name = $_FILES[&#39;vImage&#39;][&#39;name&#39;];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $file_size = $_FILES[&#39;vImage&#39;][&#39;size&#39;];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $file_tmp = $_FILES[&#39;vImage&#39;][&#39;tmp_name&#39;];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check if you have selected a file.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!is_uploaded_file($file_tmp)){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Error: Please select a file to upload!. &amp;lt;br&amp;gt;--&amp;lt;a href=\&quot;$_SERVER[PHP_SELF]\&quot;&amp;gt;back&amp;lt;/a&amp;gt;&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(); //exit the script and don&#39;t process the rest of it!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check the file&#39;s extension
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ext = strrchr($file_name,&#39;.&#39;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ext = strtolower($ext);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the file extension is not allowed!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (($extlimit == &quot;yes&quot;) &amp;amp;&amp;amp; (!in_array($ext,$limitedext))) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Wrong file extension.&amp;nbsp; &amp;lt;br&amp;gt;--&amp;lt;a href=\&quot;$_SERVER[PHP_SELF]\&quot;&amp;gt;back&amp;lt;/a&amp;gt;&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //so, whats the file&#39;s extension?
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $getExt = explode (&#39;.&#39;, $file_name);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $file_ext = $getExt[count($getExt)-1];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create a random file name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $rand_name = md5(time());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $rand_name= rand(0,999999999);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the new width variable
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ThumbWidth = $img_thumb_width;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; //////////////////////////
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // CREATE THE THUMBNAIL //
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; //////////////////////////
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //keep image type
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($file_size){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if($file_type == &quot;image/pjpeg&quot; || $file_type == &quot;image/jpeg&quot;){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $new_img = imagecreatefromjpeg($file_tmp);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif($file_type == &quot;image/x-png&quot; || $file_type == &quot;image/png&quot;){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $new_img = imagecreatefrompng($file_tmp);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }elseif($file_type == &quot;image/gif&quot;){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $new_img = imagecreatefromgif($file_tmp);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //list the width and height and keep the height ratio.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list($width, $height) = getimagesize($file_tmp);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //calculate the image ratio
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $imgratio=$width/$height;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($imgratio&amp;gt;1){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $newwidth = $ThumbWidth;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $newheight = $ThumbWidth/$imgratio;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $newheight = $ThumbWidth;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $newwidth = $ThumbWidth*$imgratio;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //function for resize image.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (function_exists(imagecreatetruecolor)){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $resized_img = imagecreatetruecolor($newwidth,$newheight);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; die(&quot;Error: Please make sure you have GD library ver 2+&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the resizing is going on here!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imagecopyresized($resized_img, $new_img, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //finally, save the image
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imagejpeg ($resized_img,&quot;$path_thumbs/$rand_name.$file_ext&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imagedestroy ($resized_img);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imagedestroy ($new_img);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ok copy the finished file to the thumbnail directory
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; move_uploaded_file ($file_tmp, &quot;$path_big/$rand_name.$file_ext&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //success message, redirect to main page.&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $msg = urlencode(&quot;$title was uploaded! &amp;lt;a href=\&quot;Resize.php\&quot;&amp;gt;Upload More?&amp;lt;/a&amp;gt;&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; header(&quot;Location: Resize.php?msg=$msg&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exit();
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}else{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //if there is a message, display it
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_GET[&#39;msg&#39;]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //but decode it first!
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;&amp;lt;p&amp;gt;&quot;.urldecode($_GET[&#39;msg&#39;]).&quot;&amp;lt;/p&amp;gt;&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //the upload form
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form action=\&quot;$_SERVER[PHP_SELF]\&quot; method=\&quot;post\&quot;enctype=\&quot;multipart/form-data\&quot;&amp;gt;\n
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;File:&amp;lt;input type=\&quot;file\&quot; name=\&quot;vImage\&quot; /&amp;gt;&amp;lt;/p&amp;gt;\n
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;input type=\&quot;submit\&quot; name=\&quot;submit\&quot; value=\&quot;Submit\&quot; /&amp;gt;&amp;lt;/p&amp;gt;&quot;;
}

?&amp;gt; &lt;/pre&gt;
&lt;br /&gt;
Upss, ,&amp;nbsp; it&#39;s long enough, but never mind because I&#39;m sure the code will work as well.&lt;br /&gt;
&lt;b&gt;Notice&lt;/b&gt; : make sure the directory destination ,  is writable!&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$path_thumbs = &quot;C:\\bayu&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $path_big = &quot;C:\\bayu\\thumb&quot;;&lt;/pre&gt;
&lt;br /&gt;
or you can change it as you want. :)&lt;br /&gt;
for the complete file you can &quot;&lt;a href=&quot;http://www.ziddu.com/download/19131877/Resize.zip.html&quot; target=&quot;_blank&quot;&gt;Download here&lt;/a&gt;&quot;&lt;br /&gt;
Okay, that&#39;s all.!!&lt;br /&gt;
if you have any question just write your comment below :)&lt;br /&gt;
&lt;br /&gt;
Good Luck!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/1439540854955980134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/simple-upload-and-resize-image-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1439540854955980134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/1439540854955980134'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/simple-upload-and-resize-image-using.html' title='Simple Upload and Resize Image using php'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-718769302341390732</id><published>2012-04-10T00:13:00.001-07:00</published><updated>2012-04-10T18:51:30.948-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Slide up down (Toggle Slide) using jquery</title><content type='html'>Hello everybody,&lt;br /&gt;
Now I will share how to make slide up and down (toggle slide) using jquery.&lt;br /&gt;
And this is for the demo, check it out :&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://baliseasontour.com/js/jquery-1.6.1.min.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 $(document).ready(function(){
  $(&quot;.block-t-content&quot;).hide(); 
  $(&quot;#bywebs&quot;).click(function(){
   $(this).toggleClass(&quot;active&quot;).next().slideToggle(&quot;slow&quot;);
   return false;
  });
 });
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
#content {
 border:1px solid #c5c5c5;
 width:200px;
 margin:0px 5px;
 border-radius:4px;
}
#main-t-slide {
 background:#c5c5c5;
 padding:2px 10px; 
}
.block div {
 padding:0 10px;
}
&lt;/style&gt;

&lt;br /&gt;
&lt;div id=&quot;content&quot;&gt;
&lt;div id=&quot;bywebs&quot;&gt;
&lt;div id=&quot;main-t-slide&quot;&gt;
- Category&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;block-t-content&quot;&gt;
&lt;div class=&quot;block&quot;&gt;
&lt;div&gt;
List Category 1&lt;/div&gt;
&lt;div&gt;
List Category 2&lt;/div&gt;
&lt;div&gt;
List Category 3&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Ok, Let&#39;s take look for the code:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; I just use a jquery script (jquery-1.6.1.min.js) and a simple script to call toggle jquery&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.6.1.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $(document).ready(function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//$(&quot;.block-t-content&quot;).hide(); just active this if u want hide for default
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$(&quot;#bywebs&quot;).click(function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$(this).toggleClass(&quot;active&quot;).next().slideToggle(&quot;slow&quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;});
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; This is my css code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;css&quot; name=&quot;code&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;
#content {
&amp;nbsp;&amp;nbsp;&amp;nbsp; border:1px solid #c5c5c5;
&amp;nbsp;&amp;nbsp;&amp;nbsp; width:200px;
&amp;nbsp;&amp;nbsp;&amp;nbsp; margin:0px 5px;
&amp;nbsp;&amp;nbsp;&amp;nbsp; border-radius:4px;
}
#main {
&amp;nbsp;&amp;nbsp;&amp;nbsp; background:#c5c5c5;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}
&amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
And the last is my html code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;html&quot; name=&quot;code&quot;&gt;&amp;lt;div id=&quot;content&quot;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&quot;bywebs&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&quot;main&quot;&amp;gt;- Category&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class=&quot;block-t-content&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class=&quot;block&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;List Category 1&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;List Category 2&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;List Category 3&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Finished!!That&#39;s all.&lt;br /&gt;
For the complete file, you can download in this link &#39;&lt;a href=&quot;http://www.ziddu.com/download/19110509/toggle_slide.zip.html&quot;&gt;Download Toggle slide&lt;/a&gt;&#39;&lt;br /&gt;
Hope it useful for all, if you have any question, you can write your comment below :)&lt;br /&gt;
&lt;br /&gt;
Good Luck :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/718769302341390732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/slide-up-down-toggle-slide-using-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/718769302341390732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/718769302341390732'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/slide-up-down-toggle-slide-using-jquery.html' title='Slide up down (Toggle Slide) using jquery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-3004273959471432332</id><published>2012-04-08T22:59:00.001-07:00</published><updated>2012-04-08T23:09:30.860-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Add and Remove table row (javascript).</title><content type='html'>Hi everyone,&lt;br /&gt;
Now I will share a simple script how to Add and Remove table row by javascript.&lt;br /&gt;
exactly it was my problem before, it made me very confused because sometime when it work, it removed wrong row, so oh god . . . &lt;br /&gt;
But now I have fixed it.&lt;br /&gt;
&lt;br /&gt;
I have a table with some task,&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG9FZMOm2N3Gqa25lw45CmnRsy5bRU2zncwIwzLOEBja7n1puUUBwxe5scTib_ggMB5j4ZR23LtE02WqXkyg6msqtrnPfeEJnyMZNP0bghGCgl1C97WDMY6fJu2WOpRMfqLKB3k8R5N8p8/s1600/table.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG9FZMOm2N3Gqa25lw45CmnRsy5bRU2zncwIwzLOEBja7n1puUUBwxe5scTib_ggMB5j4ZR23LtE02WqXkyg6msqtrnPfeEJnyMZNP0bghGCgl1C97WDMY6fJu2WOpRMfqLKB3k8R5N8p8/s320/table.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
When we click delete button, it will delete the right row and if we click add button it will automatically add new row on the last of table.&lt;br /&gt;
Look for the script below :&lt;br /&gt;
&lt;br /&gt;
#javascript &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;javascript&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function remove(id){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // initial variable
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var table = document.getElementById(&#39;schedule&#39;); // get table id
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var rows = table.getElementsByTagName(&#39;tr&#39;); // get all table rows
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var target = id; // row will remove
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var j = 1;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;rows.length;i++,j++){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(rows[i].id==target){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; table.deleteRow(i); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i--;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; j--;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; function add(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var table = document.getElementById(&#39;schedule&#39;); // get table id
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var lastRow = table.getElementsByTagName(&#39;tr&#39;).length; // get last row
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var newId = lastRow+1; // make new id
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var row = document.getElementById(&#39;schedule&#39;).insertRow(lastRow); // create row
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; row.setAttribute(&#39;id&#39;,&#39;task&#39;+newId); // insert row id
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var cell0 = row.insertCell(0);// create cell 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var cell1 = row.insertCell(1);// create cell 2
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cell0.innerHTML = &#39;Task &#39;+newId+&#39; - Default&#39;; // insert data cell 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cell1.innerHTML = &#39;&amp;lt;a style=&quot;cursor:pointer;&quot; onClick=&quot;remove(\&#39;task&#39;+newId+&#39;\&#39;);&quot; &amp;gt;X&amp;lt;/a&amp;gt;&#39;;// insert data cell 2
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
#HTML script&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;&amp;lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;300&quot; border=&quot;1&quot; id=&quot;schedule&quot;&amp;gt;
&amp;lt;?php
 for($i=1; $i&amp;lt;5; $i++){
?&amp;gt;
  &amp;lt;tr id=&quot;task&amp;lt;?php echo $i; ?&amp;gt;&quot;&amp;gt;
            &amp;lt;td&amp;gt;Task &amp;lt;?php echo $i; ?&amp;gt; - Default&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;&amp;lt;a style=&quot;cursor:pointer;&quot; onClick=&quot;remove(&#39;task&amp;lt;?php echo $i; ?&amp;gt;&#39;);&quot; &amp;gt;X&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
&amp;lt;?php
 }
?&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;input type=&quot;button&quot; onClick=&quot;add();&quot; value=&quot;add&quot; /&amp;gt;&amp;nbsp;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope it useful for all, if you have question, just write your comment below.&lt;br /&gt;
&lt;br /&gt;
Good luck :)</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/3004273959471432332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/add-and-remove-table-row-based-on-its.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/3004273959471432332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/3004273959471432332'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/add-and-remove-table-row-based-on-its.html' title='Add and Remove table row (javascript).'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG9FZMOm2N3Gqa25lw45CmnRsy5bRU2zncwIwzLOEBja7n1puUUBwxe5scTib_ggMB5j4ZR23LtE02WqXkyg6msqtrnPfeEJnyMZNP0bghGCgl1C97WDMY6fJu2WOpRMfqLKB3k8R5N8p8/s72-c/table.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5110058274413855494.post-8718765748937393986</id><published>2012-04-05T21:54:00.000-07:00</published><updated>2012-04-05T21:54:34.999-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Tutorial"/><title type='text'>Build New Category Widget for Your Website</title><content type='html'>Hallo , ,&lt;br /&gt;
Come back again,&lt;br /&gt;
On this post, I still share about how to make your website ( blogspot) look nicer.&lt;br /&gt;
&lt;br /&gt;
Now we will build a new widget to grouping all of your article based on their categories.&lt;br /&gt;
Categories widget is very important thing for your website, otherwise it will group all of your article based on their categories, it also will make your visitors become easy when they read or just look for your articles.&lt;br /&gt;
So surely your website will look nicer and &lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;professional.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;I have simple way to build it by using standard additional widget from blogspot platform&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Ok, let&#39;s see how we will make it.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Login to your website account&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Choose &quot;Layout&quot; on your menu&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;Then choose &quot;Add a Gadget&quot; on your sidebar layout, it will show a pop up window with many gadget &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot;&gt;choices. On this part you should choose &quot;Label&quot; gadget. And new window will display an image below.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFuvywhisDkelb_UyR9qKBjaAk8CrU7pI6PgbJ8jM0THuOU6u5gmw7c62vtzgqn_Jq5__TIbdmP6_nDZ01znZtWfUgj6wUn9zJkH_RU_9qer2WweyilAw0rWGF8R7dcT-Gg3Bs7YiZgCx/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFuvywhisDkelb_UyR9qKBjaAk8CrU7pI6PgbJ8jM0THuOU6u5gmw7c62vtzgqn_Jq5__TIbdmP6_nDZ01znZtWfUgj6wUn9zJkH_RU_9qer2WweyilAw0rWGF8R7dcT-Gg3Bs7YiZgCx/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change the title become &quot;Categories&quot;. yupss, finished.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can push Save button now.&lt;br /&gt;
&lt;br /&gt;
Note : Categories widget will group your articles based on their labels, so don&#39;t forget to put labels when you create a new post for your website.&lt;br /&gt;
&lt;br /&gt;
Hope it useful for all, Thank you :)</content><link rel='replies' type='application/atom+xml' href='http://bywebs.blogspot.com/feeds/8718765748937393986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bywebs.blogspot.com/2012/04/build-new-category-widget-for-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8718765748937393986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5110058274413855494/posts/default/8718765748937393986'/><link rel='alternate' type='text/html' href='http://bywebs.blogspot.com/2012/04/build-new-category-widget-for-your.html' title='Build New Category Widget for Your Website'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11453044275859469057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFuvywhisDkelb_UyR9qKBjaAk8CrU7pI6PgbJ8jM0THuOU6u5gmw7c62vtzgqn_Jq5__TIbdmP6_nDZ01znZtWfUgj6wUn9zJkH_RU_9qer2WweyilAw0rWGF8R7dcT-Gg3Bs7YiZgCx/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>