Jiwako's Blog

eee

Posted on: June 21, 2010

count()
sizeof()
length()

explode()
split()

Share on Facebook
<a href=”http://www.facebook.com/sharer.php?u=… URL …” target=”_blank”><img src=”… URL Image …” /></a>

Share on Twitter
<a href=”http://twitter.com/home?status=… URL …” target=”_blank”><img src=”… URL Image …” /></a>

Share via Newsvine
<a href=”http://www.newsvine.com/_wine/save?u=… URL …&amp;h=… Title …” target=”_blank”><img src=”… URL Image …” /></a>

Share on Digg
<a href=”http://digg.com/submit?phase=2&amp;url=… URL …&amp;title=… Title …” target=”_blank”><img src=”… URL Image …” /></a>

Share on Delicious
<a href=”http://del.icio.us/post?url=… URL …&amp;title=… Title …” target=”_blank”><img src=”… URL Image …” /></a>

Share on Stumble Upon
<a href=”http://www.stumbleupon.com/submit?url=… URL …&amp;title=… Title …” target=”_blank”><img src=”… URL Image …” /></a>

Share via Reddit
<a href=”http://reddit.com/submit?url=… URL …&amp;title=… Title …” target=”_blank”><img src=”… URL Image …” /></a>

Other : Tweetmeme Button, Digg Button, Delicious Button, Stumble Upon Buttons, Redit Button

Source : Jamie Huskisson, Teck~Line Lounge

Tags: ,

Facebook :

Code :

<a name=”fb_share” type=”... TYPE …” share_url=”…YOUR_URL…“></a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share&#8221; type=”text/javascript”></script>


Type :

Using this code… Renders this button… Of this size…
box_count 57×57 pixels
button_count 96×18 pixels
button 56×18 pixels
icon_link 51×15 pixels
type=”icon 18×15 pixels


URL :

http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>


You must encoding URL before by function :-

  • For PHP : urlencode(“…url to share…“);
  • For Javascript : encodeURIComponent(‘…url to share…‘);
  • Example : https://jiwako.wordpress.com/ —> http%3A%2F%2Fjiwako.wordpress.com%2F

Source : facebook-widgets, Wiki Developers

myArray = new Array();
myArray[0]=’m’;
myArray[0]=7;

var i=$(‘manage’).options.length :: all option of dropdownlist
$(‘manage’).options[i].value :: set value each option
$(‘manage’).options[i].text :: set text each option
$(‘manage’).options[i].selected :: set selected of dropdownlist

explode

Posted on: June 1, 2010

explode :: split string by string

Ex :
$txt=”a-b-c-d-e”;
$arrTxt=explode(“-“,$txt);
echo $arrTxt[1].$arrTxt[0].$arrTxt[3];

Result :
bad

Tags: ,








Tags: , ,


Tags:
Tags:

Categories

Archives