I am looking to make some changes in the JavaScript code below by removing the image logo.png
lines and replacing them with iframe code.
currentRoomId = document.getElementById('roomID').value;
if ( document.getElementById('room_' + currentRoomId + '_bg') ) {
document.getElementById('login_banner').src = document.getElementById('room_' + currentRoomId + '_bg').value;
}
else if ( document.getElementById('login_banner').src != "http://somedomain.com/header/logo.png" ) {
document.getElementById('login_banner').src = "http://somedomain.com/header/logo.png";
}
if ( document.getElementById('room_' + currentRoomId + '_bg_link') && document.getElementById('room_' + currentRoomId + '_bg_link').value != 'FREE' ) {
document.getElementById('login_banner_link').href = document.getElementById('room_' + currentRoomId + '_bg_link').value;
}
else if ( document.getElementById('login_banner_link') ) {
I want to replace this piece of HTML:
<img src="http://somedomain.com/logo.png" id="login_banner" /></a>
with this iframe element:
<iframe class="animation" src="http://somedomain.com/header/index.html" id="login_banner"></iframe>
This change will help the backend determine whether to display the default banner or a client banner.
The JavaScript code needs to be updated accordingly to generate the final HTML output.
Thank you.