bookmarklet:search pukiwiki page


/ Published in: JavaScript
Save to your folder(s)

run at pukiwiki and bwiki(xoops module)


Copy this code and paste it in your HTML
  1. javascript:(function(){var bds=document.getElementsByTagName('body');var bd=bds.item(0);var f1=document.createElement('form');f1.name='f1';f1.method='post';f1.action='?cmd=search';s=f1.style;s.position='fixed';s.top='10px';s.left='10px';s.padding='20px';s.zIndex='100';s.textAlign='center';s.border='solid 10px #696';s.background='#eee';d1=document.createElement('div');i1=document.createElement('input');i1.name='word';i1.type='text';i1.size='20';i2=document.createElement('input');i2.name='type';i2.type='hidden';i2.value='AND';i3=document.createElement('input');i3.name='encode_hint';i3.type='hidden';i3.value='�';i4=document.createElement('input');i4.type='submit';i4.value='search';i5=document.createElement('input');i5.type='button';i5.value='x';i5.onclick=function(){ document.body.removeChild(f1); };bd.appendChild(f1);f1.appendChild(d1);d1.appendChild(i1);d1.appendChild(i2);d1.appendChild(i3);d1.appendChild(i4);d1.appendChild(i5);document.f1.word.focus()})();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.