Best Download Sites Login
Site Login

Dynamically Change The Link Address

Description
Dynamically change the link address for a hyperlink based on their entry in the pulldown menu. Send to different email addresses or URLs!...View A Script Demo


Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">


</HEAD>

<BODY Background=../graphics/grayback.jpg>
<center><BR><BR>
<form name="addresses">
do you want to ... <select name="list" onChange="update()">
<option value="mailto: This e-mail address is being protected from spambots. You need JavaScript enabled to view it ">email admin@some-site.com
<option value="mailto: This e-mail address is being protected from spambots. You need JavaScript enabled to view it ">email support@some-site.com
<option value="http://www.netscape.com">go to www.netscape.com
</select>
<a href="updatelink">do it!</a>
</form>

<script language="javascript">
<!--  begin
pos = 9999;
for(num=0;num<document.links.length;num++) {
if (document.links[num].href.indexOf("updatelink") != -1) {
pos = num;
num = 5000;
   }
}
function update() {
if (pos!=9999) {
sel = document.addresses.list.selectedIndex;
document.links[pos].href = document.addresses.list[sel].value;
   }
}
update();
// end -->
</script>


</center>
</BODY>
</HTML>
 

Business Proposal If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail