Changes

साँचा:KKGlobalSearch

4,281 bytes added, 21:31, 26 सितम्बर 2009
<div class='box' html><style="background>.searchTipClass{font-color:#D69FFF8F8F8F;widthfont-size:100%11px; align}.searchMainClass{font-color:center"><div class='boxtop'><div>#000000;font-size:18px;}</div></divstyle> <div classscript type='boxheader' style"text/javascript" src='background-color"http:#D69FFF'//www.google.com/jsapi"></divscript> <div idlink href="kkHomePageSearchBoxDivhttp://www.google.com/uds/modules/elements/transliteration/api.css" class type='boxcontent' style"text/css" rel='background-color:#D69FFF;border:1px solid #D69FFF;padding-left:4px;padding-right:4px'"stylesheet"/> <!----BOX CONTENT STARTS------script type="text/javascript">
<div id= // Load the Google Transliteration API google.load("kkglobalsearchboxinitiatorelements" onclick=, "document.getElementById('kkglobalsearchboxinitiator').innerHTML='hello'1">Click here</div>, { packages: "transliteration", "nocss" : true });
<CSO_iFrame> function onLoad() {src var options ="http{ sourceLanguage://www google.kavitakoshelements.org/kkglobalsearchboxtransliteration.html" LanguageCode.ENGLISH,style="width destinationLanguage:100%;height google.elements.transliteration.LanguageCode.HINDI, shortcutKey:130px;" scrolling="no" 'ctrl+g',marginwidth="0" marginheight="0" frameborder="0"</CSO_iFrame> transliterationEnabled: true };
// Create an instance on TransliterationControl with the required
// options.
var control =
new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the textbox with id // 'transliterateTextarea'. control.makeTransliteratable(['transliterateTextarea']); } google.setOnLoadCallback(onLoad); <!----BOX CONTENT ENDS------/script <form id="searchform" action="http:/div/www.kavitakosh.org/kk/index.php?title=%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:Search" target="_top" onsubmit="javascript:validateForm(); return false;" <div classtable width="100%" border="0" cellpadding="4" cellspacing="0" style=""> <tr><td><table border=0 width=100% style="border:2px solid #6FA7FF;background:#9FC4FF"><tr><td><input type="text" id="transliterateTextarea" name="search" value="हर शब्द के बाद स्पेस दबाइये (आखिरी शब्द के बाद भी)..." style="width:100%; height:35px;" onfocus="searchBoxFocusChanged()" onblur="searchBoxFocusChanged()" /></td><td valign="middle"><INPUT TYPE="image" SRC="http://www.kavitakosh.org/kk/icons/searchicon.png" BORDER="0" ALT="Submit Form"></td><td align="right">&nbsp;&nbsp;<input type="button" value="खोज सहायता" onClick="javascript:showHideSection('boxbottomsearchhelptext')"/><div/td></tr><tr><td colspan=3><divid="searchhelptext" style="display:none;font-size:12px"><b>खोज कैसे करें:</divb>ऊपर दिये गये बक्से में आप अंग्रेज़ी अक्षरों में टाइप कीजिये। एक शब्द टाइप करने के बाद जैसे ही आप स्पेस दबाएंगे वैसे ही आपके द्वारा लिखा गया शब्द हिन्दी में बदल जाएगा। हिन्दी में बदलने के लिये आपको हर शब्द के बाद स्पेस दबाना होगा (आखिरी शब्द के बाद भी)।<br><br><b>उदाहरण के लिये</b> यदि आप "mahadevi varma" टाइप करेंगे तो यह "महादेवी वर्मा" में बदल जाएगा और आप महादेवी वर्मा की रचनाएँ कविता कोश में खोज पाएंगे।</div></td></tr></table></td></tr></form></table> <script type="text/javascript" language="javascript">function showHideSection(sectionDivID, doWhat){var oSection=document.getElementById(sectionDivID); if(!doWhat){ if(oSection.style.display == "none") { oSection.style.display = "block"; } else { oSection.style.display = "none"; }} if(doWhat=="show"){ oSection.style.display = "block";} if(doWhat=="hide"){ oSection.style.display = "none";} }String.prototype.trim = function () { return this.replace(/^\s*/, "").replace(/\s*$/, "");} function validateForm(){keywords=document.getElementById('transliterateTextarea').value;keywords=keywords.trim();document.getElementById('transliterateTextarea').value=keywords;if(document.getElementById('transliterateTextarea').value==''){document.getElementById('transliterateTextarea').focus();return false;}else{document.getElementById('searchform').submit();}} function searchBoxFocusChanged(){keywords=document.getElementById('transliterateTextarea').value;if(keywords==""){document.getElementById('transliterateTextarea').value="हर शब्द के बाद स्पेस दबाइये (आखिरी शब्द के बाद भी)...";document.getElementById('transliterateTextarea').className="searchTipClass";return;}if(keywords=="हर शब्द के बाद स्पेस दबाइये (आखिरी शब्द के बाद भी)..."){document.getElementById('transliterateTextarea').value="";document.getElementById('transliterateTextarea').className="searchMainClass";return;}}</script></body></html>