WPBLOGBMLET bookmarklet code

javascript:
(function(){
var a='';
var b='';
var c='';
var d='';
var index=0;
var currentTime=new Date();
var nDt=currentTime.getDate();
var nMnth=currentTime.getMonth()+1;
if(nMnth<10)
var nMth='0'+nMnth;
var nYr=currentTime.getFullYear();
var iUrl=prompt('Enter URL of your Blog (without http://):','');
if(!iUrl)
return;
var nTitle=prompt('Enter the Title of your Entry:','');
if(!nTitle)
return;
var nt=nTitle.toLowerCase();
var t1=nt.split('.');
for(var i=0;i<t1.length;i++){
if(i>0){
nt=nt.replace('.','');
}
c+=nt[i];
}
var t1=nt.split('& ');
for(var i=0;i<t1.length;i++){
if(i>0){
nt=nt.replace('& ','');
}
d+=nt[i];
}
var ta=nt.split(' ');
for(var i=0;i<ta.length;i++){
if(i>0){
a+='-';
}
a+=ta[i];
}
nUrl='http://'+iUrl+'/'+nYr+'/'+nMth+'/'+nDt+'/'+a+'/';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/bookmark_it.png'+unescape('%22')+' /><br />';
b+='<a href='+unescape('%22')+'http://del.icio.us/post?url='+nUrl+'&title='+nTitle+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/delicious.png'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to del.icio.us'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://digg.com/submit?phase=2&url='+nUrl+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/digg.png'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to digg'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+nUrl+'&Title='+nTitle+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/blinklist.png'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to blinklist'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://www.furl.net/storeIt.jsp?t='+nTitle+'&u='+nUrl+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/furl.gif'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to Furl'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+nTitle+'&u='+nUrl+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/yahoomyweb.gif'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to YahooMyWeb'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://www.simpy.com/simpy/LinkAdd.do?href='+nUrl+'&title='+nTitle+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/simpy.png'+unescape('%22')+' alt='+unescape('%22')+'Simpify!'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://www.shadows.com/features/tcr.htm?url='+nUrl+'&title='+nTitle+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/shadows.png'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to shadows'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://www.spurl.net/spurl.php?v=3&title='+nTitle+'&url='+nUrl+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/spurl.gif'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to Spurl'+unescape('%22')+' /></a>';
b+='  ';
b+='<a href='+unescape('%22')+'http://buddymarks.com/add_bookmark.php?bookmark_title='+nTitle+'&bookmark_url='+nUrl+unescape('%22')+'>';
b+='<img src='+unescape('%22')+'http://www.geocities.com/neerajtikku/icons/buddymarks'+unescape('%22')+' alt='+unescape('%22')+'Post '+nTitle+' to BuddyMarks'+unescape('%22')+' /></a>';
prompt('Copy this code, press OK, then paste to your blog entry:',b);
}
)()
<-- BACK

Hosted by www.Geocities.ws

1