:: Forum >> Version 2 >>

hyperlinks

Hi everyone,

Would there be a more elegant way of programming these hyperlinks?
obj.setCellLink("ad rem.htm",0,2);
obj.setCellTemplate(new AW.Templates.Link,0,2);
obj.setCellLink("air.htm",0,3);    
obj.setCellTemplate(new AW.Templates.Link,0,3);
obj.setCellLink("alibi.htm",0,5);
obj.setCellTemplate(new AW.Templates.Link,0,5);
obj.setCellLink("antarctica.htm",0,6);
obj.setCellTemplate(new AW.Templates.Link,0,6);
obj.setCellLink("graffiti.htm",0,7);
obj.setCellTemplate(new AW.Templates.Link,0,7);
obj.setCellLink("bell song.htm",0,8);
obj.setCellTemplate(new AW.Templates.Link,0,8);
obj.setCellLink("boule d'or.htm",0,11);
obj.setCellTemplate(new AW.Templates.Link,0,11);
 
Thanks Mark
mark wester - holland
Thursday, October 19, 2006
bump
mark wester - holland
Sunday, October 22, 2006
Maybe this?
var linksArray = ["ad rem.htm""air.htm""""alibi.htm""antarctica.htm""graffiti.htm""bell song.htm""""""boule d'or.htm"];

for (var 
0;8x++) {
if (
linksArray[x] !=""){
obj.setCellTemplate(new AW.Templates.Link,0,x);
obj.setCellLink(linksArray[x],0,x);
 }
   }
 
Carlos
Sunday, October 22, 2006



This topic is archived.

Back to support forum

Forum search