עבור לתוכן

מישהו יכול לעזור (יותר נכון להכין) script קטן לאתר של בבילון

Featured Replies

פורסם

אני רוצה להוסיף את האתר הזה למועדפים אבל שאני לוחץ יפתח לי חלון שבתוכו אני מכניס מילה

http://www.babylon.com/definition/WORDHERE/Hebrew

תודה :yelclap:

פורסם

function BabilonWord(wordhere)
{
window.location.replace("[url]http://www.babylon.com/definition/"+wordhere+"/hebrew"[/url]);
}

פורסם

אם הבנתי נכון, אתה רוצה סקריפט שכשהעמוד נטען יקלוט מילה ויעביר אותך לעמוד המתאים בבילון:


<html>
<head>
<script language="javascript">
function TakeMeToBabilon()
{
var word = prompt("Desired word:","");
window.location.replace("[url]http://www.babylon.com/definition/"+word+"/hebrew"[/url]);
}
</script>
</head>
<body onload="javascript:TakeMeToBabilon();">
</body>
</html>

תשמור את זה כקובץ html במחשב שלך ותוסיף אותו למועדפים.

פורסם

ואוו!

רעיון מגניב ביותר של המגיב הראשון,

וביצוע מאוד יפה של המגיב השני,

שכלול + עצה למועדפים של המגיב השלישי...

ואני הולך להפציץ פה בתגובה שתפיל אותכם מהקרשים...

חכו בסבלנות 10 דקות,

בינתיים תראו את זה ותבינו על מה אני חושב...

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=9057&lngWid=4

איתי

פורסם

:yelclap:

עובד מאוד יפה...

אני ממליץ לשלוח את התגובה הזאת לכל מי שיקר לליבכם ;D

להלן הוראות התקנה...

באנגלית פשוטה...

הערה: זה עובד רק באינטרנט אקספלורר כנראה

step 1: create a folder in your computer

example: C:\Program Files\TranslateInBabylon

step 2: create C:\Program Files\TranslateInBabylon\TranslateInBabylon.HTML

<html><head></head><body>
<SCRIPT LANGUAGE = "JavaScript">
//ORIGINAL Written by Eitan, Nov2004
// stoled by: itay, dec2006
//Usage: mark the 'gibrish' text with the mouse, right click, and select the translate from gibrish to hebrew option.
var oWindow = window.external.menuArguments;
var oDocument = oWindow.document;
var oSelect = oDocument.selection;
var oSelectRange = oSelect.createRange();
var sNewText = oSelectRange.text;
if (sNewText.length == 0)
{
alert ("יש לסמן תחילה את הטקסט לתרגום");
}
else
{
window.open("[url]http://www.babylon.com/definition/"+sNewText+"/hebrew"[/url]);
}
</SCRIPT></body></html>

step 3: create REG file (be careful here): C:\Program Files\TranslateInBabylon\IE_extention.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\תרגום ב-בבילון]
@="C:\\Program Files\\TranslateInBabylon\\TranslateInBabylon.html"

step 4: double click that registry file... restart your internet explorer... and you're done!!!

itay.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים