Hi Jake,
Not sure, but depending on the browser this might have same issue as
@href -- one of the browsers grabs the fully-qualified URL (with
http://...) even if it's a relative href.
One place to start might be instead of [EMAIL PROTECTED] try [EMAIL PROTECTED]
so it gets any image with src that *ends* with 1.gif.
Hope that helps.
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 8, 2007, at 5:42 PM, Jake McGraw wrote:
For the life of me, I can not get "[EMAIL PROTECTED]" to work. I've already
read the
post at
http://www.nabble.com/Problem-with--%40src-tf3147226.html#a8740073
Here's the code:
$find("img").click(function(){
switch($(this).attr("src")) {
case '1.gif':
$(this).attr("src","2.gif");
break;
case '2.gif':
$("[EMAIL PROTECTED]").click();
$(this).attr("src","1.gif");
break;
}
});
Basically, if you click on '1.gif' it gets replaced with '2.gif'.
If you click '2.gif', find all '1.gif' on page, "click" to swap,
and current
'2.gif' gets '1.gif'.
I've been totally unable to get [EMAIL PROTECTED] to work in this context or
any other,
currently using 1.1.1.
--
View this message in context: http://www.nabble.com/Problem-with--%
40src-tf3196513.html#a8875860
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/