Hi,

I'm trying to create a dynamic rollover effect for a client, but I
just can't get my code to work, don't really know why.

Here it is:

1               $("a.menu-text").hover (
2                       function() {
3                               var titleStr = 
$(this).children("img.text").attr("title");
4                               $(this).children("img.text").attr("src", 
motrSiteUrl + "binary/
(output)(text text='" + titleStr + "' font='InfoTexBoo' size='13'
fg='ff0000'/)(/output).png");
4                       },
5                       function() {
6                               var titleStr = 
$(this).children("img.text").attr("title");
7                               $(this).children("img.text").attr("src", 
motrSiteUrl + "binary/
(output)(text text='" + titleStr2 + "' font='InfoTexBoo' size='13'
fg='000000'/)(/output).png");
8                       }
9               );

Problem is with getting the value of title (line 3 and 6), setting the
value (line 4 and 7) that is returned (in this case 'undefiend') is no
problem.

Where did I go wrong?

/tsr

Reply via email to