Hey guys, I need a little help. I have a huge image on my site, currently I have a link that saves a cookie that disables the image if users want to, but I am still getting complaints about the image from people with smaller monitors.
I was wondering if anyone had a script or could help with one that change the style of the image to “display: none;” if the width of the window was of x amount.
I looked on Snipplr, but the one code I did find sorta confused me, and it was only for changing style sheets, and not just a style itself.
Are you using jQuery?
You could use the Resize API to easily change the style of the object by either using addClass and removeClass.
You can even try using the CSS method to change your display from (block/inline) to none.
