The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery css change Re: jquery css change


Got it working, for the most part. However the transition isnt working.

So its working for the link being .switch, telling the class .bg to switch to .bg_prod. But the fade isnt working in chrome, which is extremely odd to me because usually everything does. However it does work in firefox. Also, as a side note, adding the normal .bg class with the image refreshes all the other elements, so I placed the class in a div and set height and width to 100% and used a size cover for the image, as planned. However now that almost everything is on the right track, I dont know what functions can really be used with jquery, as I can read it but not write it. so toggle would normally be affective however I need it where if a user clicks it again the image wont fade back to the normal page.