Heres prolly a simple noob question for gurus like you:
In my gadget I had :
if (c1 == A )
{
var p1 = new String( <a target="_blank" href="http://go.com"><img
src="http://host.com/A.gif"></a>);
}
It was working fine but since it was a direct image link, i start
getting a lot of traffic and had to optimize it. I tried :
if (c1 == A )
{
var p1 = new String(<a target=\"_blank\" href=\"http://go.com\"><img
id=\"A\" border=\"0\" alt=\"A\" src=\"_gel(\"A\")
\"/><script>_IG_RegisterOnloadHandler(function() {_gel(\"abc\").src =
_IG_GetImageUrl(\"http://host.com/A.gif\");
});</script></a>);
}
and also
if (c1 == A )
{
var p1 = new String( <a target="_blank" href="http://go.com"><img
id="A" src="_gel("A")"/><script> _IG_RegisterOnloadHandler
(function() {_gel("A").src= _IG_GetImageUrl("http://host.com/
A.gif") });</script></a>);
}
and
if (c1 == A )
{
var p1 = new String( "<a target="_blank" href="http://go.com"><img
id="A" src="_gel("A")"/><script> _IG_RegisterOnloadHandler
(function() {_gel("A").src= _IG_GetImageUrl("http://host.com/
A.gif") });</script></a>");
}
and
if (c1 == A )
{
var p1 = new String("<a target=\"_blank\" href=\"http://go.com\"><img
id=\"A\" border=\"0\" alt=\"A\" src=\"_gel(\"A\")
\"/><script>_IG_RegisterOnloadHandler(function() {_gel(\"A\").src =
_IG_GetImageUrl(\"http://host.com/A.gif\");
});</script></a>");
}
But neither one would work, java script showing a syntax error.....
What whould it be?
I would appretiate any help or pointer in right direction to look.
Thanks in advance, Alexander.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Desktop Developer Group" 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-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---