|
|
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? |
|
Subject:
Re: Javascript URL link
Answered By: juggler-ga on 12 Jul 2003 21:58 PDT Rated: |
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:
Perfect, that answers my question exactly! |
|
There are no comments at this time. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |