Hi,

Am a newbie to gadgets and am having trouble with a simple task. I'm
making a gadget displaying random images from an array and linking
them to corresponding URLs in my domain using a function like this:

function linkToIt()
{
windows.location= linkArray[ran];
}

The link call is this:

<a href ="javascript:linkToIt()" target="_blank">  <img
name="dogOfDay" width=100 height=80 /> </a>

This is giving me a "linkToIt() is not defined error". In plain
Javascript I'd expect to put the function in the <head> so it can be
recognized, but as this is not possible in a gadget how can I define a
link dynamically based on a variable ?

thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to