Google Answers Logo
View Question
 
Q: Javascript URL link ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Javascript URL link
Category: Computers > Programming
Asked by: salsa_tlg-ga
List Price: $5.00
Posted: 12 Jul 2003 20:50 PDT
Expires: 11 Aug 2003 20:50 PDT
Question ID: 229284
On this webpage: http://www.webworkshop.net/pagerank.html, the guy has
a link to AKA Marketing (its at the bottom of the page).  He's used
some javascript to do it, both in the link code, which is this:

> <A onmouseover="window.status='http://www.akamarketing.com/';return
true;"
>              onmouseout="window.status=' ';return true;" 
>              href="javascript:go('akamarketing.com','new')"><B>AKA 
>              Marketing</B></A> - Internet marketing articles,
>              tips, tricks and secrets. 

But this code on its own does not work.  What additional javascript is
needed to make this link work and look like a normal link?
Answer  
Subject: Re: Javascript URL link
Answered By: juggler-ga on 12 Jul 2003 21:58 PDT
Rated:5 out of 5 stars
 
Hello.

The code necessary for that "go" function to work is at:
http://www.webworkshop.net/php/misc.js


Thus, you'll want to include that code in the <head> of the page that
you're making. Example:

<head>

<SCRIPT LANGUAGE="JavaScript">
var loc
var newwind
function go(loc,newwind){
	if(newwind != "new"){
		self.location="http://www."+loc
	}else{
		loc="http://www."+loc
		window.open(loc,"","width=760,height=500,toolbar,status,resizable,scrollbars,location")
	}
}
</SCRIPT>

</head>


search strategy: the source of the web page given referred to
"php/misc.js ", so I looked at:
http://www.webworkshop.net/php/misc.js

I hope this helps.
salsa_tlg-ga rated this answer:5 out of 5 stars
Perfect, that answers my question exactly!

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy