»
EnglishFrenchVietnamese

Print - Compact - JavaScriptBank.com

Full version: jsB@nk » Menu » Navigation » Compact
URL: https://www.javascriptbank.com/compact.html

Compact © JavaScriptBank.comChoose an item from the list on the left, and description of the JavaScript link will be displayed right now.

Full version: jsB@nk » Menu » Navigation » Compact
URL: https://www.javascriptbank.com/compact.html



JavaScript
<SCRIPT language=JavaScript><!-- HIDE SCRIPT/*  Script written by: "Snarf"    e-mail address:  [email protected]    if you need any help, email me!    Please don't delete this tag. *//*  This variable contains the address to the items located in the <SELECT> tag in the form to add more just put them in sequence, for example the next one would be:    linktext[#] = "address";    (replacing # with the next consecutive number) */var linktext = new Array()linktext[0] = "Address will be shown here, click the \'Go\' button"; linktext[1] = "http://javascriptbank.com/";linktext[2] = "http://www.lavasoftofUSA.com/index.html";linktext[3] = "http://www.speedbit.com/";linktext[4] = "http://www.callwave.com/";linktext[5] = "http://www.searchrocket.com/";linktext[6] = "http://www.musicmatch.com/";linktext[7] = "http://www.google.com/";linktext[8] = "http://www.dogpile.com/";linktext[9] = "http://www.techtv.com/";linktext[10] = "http://www.evrsoft.com/";linktext[11] = "http://www.kkng.com/";/*  This variable contains the address to the items located in the <TEXTAREA> tag in the form to add more just put them in sequence, for example the next one would be:    descText[#] = "long description";    (replacing # with the next consecutive number)    Don't forget to put in new options under the select area in the form!    to create a new line user \n .  If the javascript doesn't want to accept a character put a \ in front of it and it should work. (example: to use a '\' type '\\' and it will show one '\') */var descText = new Array()descText[0] = "Choose an item from the list on the left, and description of the above link will be displayed here.\n\nScript written by:  \"Snarf\"\n            Email:  [email protected]";descText[1] = "JSBank is a very good place to go if you\'re looking for 100% FREE javascripts to put on your web page!  They also have a great weekly newsletter that will inform you of their latest updates.";descText[2] = "LavaSoft has produced a product called Ad-Aware, This program will search your computer and tell you all the things on your computer that are potential spy-ware files, spy-ware files are files that send your computing habits back to the person/website that put it on your computer.  This program allows you to delete those files.";descText[3] = "At the speedbit website you can find a file called \"Download Accelerator Plus\" (or go straight to http://www.speedbit.com/download.asp),  This program can speed up your downloads by 300%, even works with dial-ups!";descText[4] = "Callwave is a program that will take messages for you while you\'re online!  When someone calls you and you\'re phone line is busy, that call will be forwarded to a service provided by callwave, the caller leaves a message and callwave uploads it to your computer and you can hear what they said!\n\nNote: you have to have your phone company turn on \"Call-busy Forwarding\".  The callwave service is FREE the phone company charges is all you'll have to pay!";descText[5] = "SearchRocket is a program that opens on your computer and searches many search engine at one time (including Google, Alta Vista, MSN Search, and Lycos). ";descText[6] = "MusicMatch Jukebox does pretty much everything Windows Media Player 7 does but with a better user interface (in my opinion).";descText[7] = "Google is a large search engine that produces great results, it\'s one of the best I\'ve found so far on the internet!";descText[8] = "Dogpile is a search engine that searches many individual search engines at once.  Very good search engine!";descText[9] = "Go here to visit the TechTV homepage!\nTechTV.com is a very informative website, They have a free download archive, a windows tip archive, and many other things that have to do with the internet or computers (Even the MAC!).  Click the \'Go\' button to go to TechTV.com!";descText[10] = "Evrsoft has a VERY good html editor, as a matter of fact it\'s the best I\'ve ever found, and it is 100% FREE!\nGo to \"http://www.evrsoft.com/download/\" to go to the evrsoft Download Center.";descText[11] = "King Country is an old-western radio station that I listen to, you can listen to them over the internet too, just go to http://www.kkng.com/ and follow the links."/*  firstLoad() is the function that is called on with the onLoad event handler.  It sets the fields to what you want them to, I have them set to 0 so that it will display the directions on what to do.  This function also checks the screen width and makes it so that the long description text box (input2) is just the right size to take up 100% of the screen.  It also determines sets the new window width/height according to the screen size. */function firstLoad(num) {     document.form.select.selectedIndex=num;     document.form.input1.value=linktext[num];     document.form.input2.value=descText[num];}/*  swap() is the function that updates the text boxes according to the option that has been selected. */function swap(num) {     document.form.input1.value=linktext[num];     document.form.input2.value=descText[num];}/*  goLink() is the function that opens a new window when the Go button is clicked. It goes to the address that is in the input1 text box. */function goLink(linkAddress) {/*  If you choose to use the linktext as a regular address instead of directions on what to do (as it is now) then remove the next line.  you'll need to remove the last } as well */     if (document.form.select.selectedIndex != 0) {          if (screen.width == "640") {window.open("" + linkAddress + "", "Window", ['width=450,height=200,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'])}          if (screen.width == "800") {window.open("" + linkAddress + "", "Window", ['width=650,height=400,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'])}          if (screen.width == "1024") {window.open("" + linkAddress + "", "Window", ['width=850,height=500,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'])}          if (screen.width == "1152") {window.open("" + linkAddress + "", "Window", ['width=950,height=600,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'])}          if (screen.width == "1280") {window.open("" + linkAddress + "", "Window", ['width=1050,height=800,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'])}          if (screen.width == "1600") {window.open("" + linkAddress + "", "Window", ['width=1450,height=1000,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'])}}}/*  If you want to use this script for something other than for links, then remove the function "goLink(linkAddress)" above, and remove the "<INPUT type="button" value="Go" onClick="goLink(document.form.input1.value)">" tag below in the form. *///   HIDE SCRIPT --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=firstLoad(0)><FORM name=form><TABLE cellSpacing=0 cellPadding=0 width="100%" align=center bgColor=#000000 border=1 cellborder="0">  <TBODY>  <TR>    <TH colSpan=2><FONT color=#cc0000 size=5>Links</FONT></TH></TR>  <TR>    <TD width="20%" rowSpan=2>      <DIV align=center><SELECT id=select style="WIDTH: 100%"       onchange=swap(this.selectedIndex) size=10 name=select> <OPTION value=""         selected>-- Select --<OPTION value=javascripts>JavaScriptBank<OPTION         value=lavasoft>LavaSoft<OPTION value=speedbit>Speedbit<OPTION         value=callwave>Callwave<OPTION value=searchrocket>SearchRocket<OPTION         value=musicmatch>MusicMatch<OPTION value=google>Google<OPTION         value=dogpile>Dogpile<OPTION value=techtv>TechTV<OPTION         value=evrsoft>Evrsoft<OPTION value=kkng>King Country</OPTION></SELECT></DIV></TD>    <TD width="80%">      <TABLE cellSpacing=0 cellPadding=0 align=left border=0 cellborder="0">        <TBODY>        <TR>          <TD><INPUT id=input1 size=55 name=input1> </TD>          <TD><INPUT onclick=goLink(document.form.input1.value) type=button value=Go>           </TD></TR></TBODY></TABLE></TD></TR>  <TR>    <TD><TEXTAREA id=input2 style="WIDTH: 100%" name=input2 rows=8 cols=56></TEXTAREA>     </TD></TR></TBODY></TABLE></FORM></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->