Hi,
I need to apply a behaviour to my button graphic that does the following;
onClick, it sets a layer called 'frame' to visible, (no probs there, using show/hide) the layer initially has no content, its just -
<DIV ID="frame" STYLE="position:absolute; left:8px; top:9px; width:690px; height:420px; z-index:2">
</DIV>
at OnClick I want also to load an iframe into the layer. I used Dreamweaver change property behaviour, and used the innerHTML option for DIVs it provides. Tried to set it to insert the html that will load the iframe, like so;
MM_changeProp('frame','','innerHTML','<iframe src=\" width=\"685\" height=\"415\" SCROLLING=\"auto\" FRAMEBORDER=\"0\"></IFRAME>','DIV')
I am missing something somewhere |
I need to apply a behaviour to my button graphic that does the following;
onClick, it sets a layer called 'frame' to visible, (no probs there, using show/hide) the layer initially has no content, its just -
<DIV ID="frame" STYLE="position:absolute; left:8px; top:9px; width:690px; height:420px; z-index:2">
</DIV>
at OnClick I want also to load an iframe into the layer. I used Dreamweaver change property behaviour, and used the innerHTML option for DIVs it provides. Tried to set it to insert the html that will load the iframe, like so;
MM_changeProp('frame','','innerHTML','<iframe src=\" width=\"685\" height=\"415\" SCROLLING=\"auto\" FRAMEBORDER=\"0\"></IFRAME>','DIV')
I am missing something somewhere |