User:Ockham/sandbox.js

MyWikiBiz, Author Your Legacy — Thursday November 14, 2024
< User:Ockham
Revision as of 14:56, 31 October 2009 by Ockham (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
function siteSearch (website, expression )
{
   var new_url= "http://www.google.com/search?hl=en&q=" + expression + "+site%3Ahttp%3A%2F%2F" + website + "&meta=";
   if (  (new_url != "")  &&  (new_url != null)  )
	{
	if (website == "Google")
		{
      	new_url = "http://www.google.com/search?hl=en&q=" + expression
		}
	window.location= new_url;
	}
   else
      alert("\nYou must make a selection.");
}

function searchPerseus (expression )
{
	var new_url= "http://www.perseus.tufts.edu/cgi-bin/morphindex?lookup=" + expression + "&.submit=Analyze+Form&lang=la&formentry=1";
      window.location= new_url;
}

function getSumma (Book, Quaestio, Articulus)
{
   var new_url;
            if (Quaestio < 100) {
                        Book = Book + "0"}
      new_url = "http://www.newadvent.org/summa/"+ Book + "0900.htm";
	window.location= new_url;
}