[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread Karl Rudd
It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to use css(background-image,image) but it does not set the image as background. What am I doing wrong. here is the code. function

[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread Evan
You might also want to try 'backgroundImage' instead of 'background- image' On May 9, 8:22 am, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd On 5/9/07, joomlafreak [EMAIL PROTECTED] wrote: I am trying to

[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread joomlafreak
It is url of image relative to this file. Pls see this url http://www.joomlaprodigy.com/test/jquery/mod_contentsliderjp.php thanks for your help. On May 8, 6:22 pm, Karl Rudd [EMAIL PROTECTED] wrote: It should work. What end up in image? It should be a URL (relative to the page). Karl Rudd

[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread Karl Swedberg
not sure what var image = $(.fullst).eq(i).html(); returns, but the 'backgroundImage' (or 'background-image'; either one is fine) value should look something like 'url(path/to/image.jpg)' --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007,

[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread joomlafreak
Got it. thanks a lot. It was so silly of me to miss using url. thanks again. On May 8, 7:53 pm, Karl Swedberg [EMAIL PROTECTED] wrote: not sure what var image = $(.fullst).eq(i).html(); returns, but the 'backgroundImage' (or 'background-image'; either one is fine) value should look something

[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread Karl Swedberg
heh. I only mentioned it because it happened to me recently, too. ;-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 8, 2007, at 7:59 PM, joomlafreak wrote: Got it. thanks a lot. It was so silly of me to miss using url. thanks again. On May 8,

[jQuery] Re: Can I use css to set background image dynamically

2007-05-08 Thread joomlafreak
I really admire your honesty. I was feeling so stupid and was thinking people would label me a jerk after reading my post for this stupidity. But after such an honest admittance from you I think it was not such a big deal. Things like this can happen :). I apprecite and thank again for our