भारत की संस्कृति के लिए... भाषा की उन्नति के लिए... साहित्य के प्रसार के लिए

"साँचा:KKGlobalSearch" के अवतरणों में अंतर

Kavita Kosh से
यहाँ जाएँ: भ्रमण, खोज
छो ("साँचा:KKGlobalSearch" सुरक्षित कर दिया [edit=sysop:move=sysop])
 
(इसी सदस्य द्वारा किये गये बीच के 36 अवतरण नहीं दर्शाए गए)
पंक्ति 1: पंक्ति 1:
<CSO_iFrame>
+
<html>
src="http://www.kavitakosh.org/kkglobalsearchbox.html"  
+
<style>
style="width:100%;height:100px;" scrolling="no"  
+
.searchTipClass{
marginwidth="0" marginheight="0" frameborder="0"</CSO_iFrame>
+
font-color: #8F8F8F;
 +
font-size:11px;
 +
}
 +
.searchMainClass{
 +
font-color:#000000;
 +
font-size:18px;
 +
}
 +
</style>
 +
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
 +
    <link href="http://www.google.com/uds/modules/elements/transliteration/api.css"
 +
      type="text/css" rel="stylesheet"/>
 +
    <script type="text/javascript">
 +
 
 +
      // Load the Google Transliteration API
 +
      google.load("elements", "1", {
 +
            packages: "transliteration", "nocss" : true
 +
          });
 +
 
 +
      function onLoad() {
 +
        var options = {
 +
            sourceLanguage:
 +
                google.elements.transliteration.LanguageCode.ENGLISH,
 +
            destinationLanguage:
 +
                google.elements.transliteration.LanguageCode.HINDI,
 +
            shortcutKey: 'ctrl+g',
 +
            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);
 +
    </script>
 +
 
 +
  <form id="searchform" action="http://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;">
 +
 
 +
  <table 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('searchhelptext')"/></td></tr>
 +
<tr><td colspan=3>
 +
<div id="searchhelptext" style="display:none;font-size:12px"><b>खोज कैसे करें:</b> ऊपर दिये गये बक्से में आप अंग्रेज़ी अक्षरों में टाइप कीजिये। एक शब्द टाइप करने के बाद जैसे ही आप स्पेस दबाएंगे वैसे ही आपके द्वारा लिखा गया शब्द हिन्दी में बदल जाएगा। हिन्दी में बदलने के लिये आपको हर शब्द के बाद स्पेस दबाना होगा (आखिरी शब्द के बाद भी)।<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>

03:01, 27 सितम्बर 2009 के समय का अवतरण