write a div (or modify display from none to block ) IF an img with a specific name is present
Posted on 2011-03-14
without seeing html code, samples and such... I am curious if it is possible to trigger an event IF an image is rendered in the browser.
IF <img src="/img/subCat.gif"> EXISTS
the img does not have an ID
the img does not have a name=""
I need to see if the img src CONTAINS subCat.gif
If that exists ANYWHERE on the page...
then I need to write out the divs above.
The only other option is to modify the div to have display=none or display=block
I spent good money on trying other ways, so i'd only expect response if you know this is possible with knowing a SPECIFIC named image is present on screen/rendered in browser.
I have incredibly limited access to programming on a system that imports a header, left, footer into a disastrous CMS type commerce system.
On the group of pages I need this <div> to appear.. a specific image appears as a graphic.
Can this be done?