I use an iframe and in the iframe I load a dynamic image. I want to use this image as a link to the corresponding article. This is actually a news site.
I already used a lot of things like:
<a href="whatever.."><iframe src="dynamic url"></iframe></a>
works with IE, but not with safari and FF.
and
some tweets like
div.iframe-link { position: relative; } a.iframe-link1 { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
the code:
<div class="iframe-link"> <iframe src="file" width="90px" height="60px" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" allowtransparency="true" noscaling="true"> </iframe> <a href="url" target="_top" class="iframe-link1"></a> </div>
worked in FF and Safari not in IE7.8.
SO can anyone suggest what to do.
Any help would be appreciated.
Iframe loads a dynamic image address, for example:
<div class="news_img01"> <div onclick="window.open('URL','_self')" style="cursor: pointer;"><br> <iframe scrolling="no" height="60px" frameborder="0" width="90px" noscaling="true" allowtransparency="true" marginwidth="0" marginheight="0" src="thumbnails/1188.gif"> </iframe> </div> </div>
so I canβt add the tag inside, but have already wrapped the tag inside. it worked for IE, but not for others like FF, Safari ..
source share