Jupac
07-25-2003, 06:56 PM
Hi this i will put in to a .js file so i can use it on every page but it dosnt work so plz can you tell me wat i am doing wrong
<script>
function on(url){
var id = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
var url= new Array("a,http://www.w3c.org","b,http://www.aol.com")
for (i=0;i<=id.length;i++) {
if (id == url[i]) { window.open("url+","name",config="height=310,width=450,resizable=1,scrollbars=1,status=0,top=0,left=0,screenx=0,screeny=0,toolbar=1,me nubar=0,location=1")}
}
</script>
<table>
<div><b><a href="#" onclick=on(a)>Open W3c</a></b></div>
<div><b><a href="#" onclick=on(b)>Open Aol</a></b></div>
</table>
<script>
function on(url){
var id = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
var url= new Array("a,http://www.w3c.org","b,http://www.aol.com")
for (i=0;i<=id.length;i++) {
if (id == url[i]) { window.open("url+","name",config="height=310,width=450,resizable=1,scrollbars=1,status=0,top=0,left=0,screenx=0,screeny=0,toolbar=1,me nubar=0,location=1")}
}
</script>
<table>
<div><b><a href="#" onclick=on(a)>Open W3c</a></b></div>
<div><b><a href="#" onclick=on(b)>Open Aol</a></b></div>
</table>