changing href text color within photo.tpl

kobitriki

Joined: 2008-10-29
Posts: 21
Posted: Thu, 2009-01-29 11:58

Hi All,

I am using this code to display rolling links on the photo page,

Quote:
<table align="center">
<td align="center">
<script language='JavaScript'>

var a=new Array()
a[0]="<a href=http://4url.net/ps9d target=_blank>some text</a>"
a[1]="<a href=http://4url.net/0qtw target=_blank>some text 2</a>"
a[2]="<a href=http://4url.net/467e0 target=_blank>some text 3</a>"
var num=2;
x=Math.floor(Math.random()*num);
document.write(a[x]);
</script>
</td>
</table>

I would like to change its color to green but I cant make it, its keep using the CSS colors.
I tried :

Quote:
a[0]="<a href=http://4url.net/ps9d style="color:#008000" target=_blank>some text</a>"

( the site is freehdphoto dot com )
any help will be welcome here,
Thanks
Kobi