Hi
I have link button in html. When i click on it image and text should appear like this but i get like this.
Please help. Code attached.
<style type="text/css">
#frameB {
height: 99% !important;
width: 100%;
}
.rightSideScreen {
float: right;
width: 50%;
max-width: 1500px;
top: 0;
}
.fullScreen {
width: 100%;
top: 0;
left: 0;
}
.smallScreen {
width: 50%;
float: left;
top: 0;
left: 0;
}
</style>
<iframe allowfullscreen="true" webkitallowfullscreen mozallowfullscreen oallowfullscreen
msallowfullscreen id="frameB" draggable="true" runat="server" scrolling="yes" style="width: 69%;
max-width: 1500px; height: 495px;margin-top:-675px"></iframe>
<script>
function hideFrame() {
$('#frameB').hide();
document.getElementsByTagName("iframe")[0].className = "fullScreen";
}
function showFrame(data) {
document.getElementsByTagName("iframe")[0].className = "smallScreen";
document.getElementsByTagName("iframe")[1].className = "rightSideScreen";
$('#frameB').show();
var iframe = $('#frameB');
iframe.attr('src', data);
}
hideFrame();
</script>