Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
The odd bit is that I need to change the file in a particular frame before the picture is loaded.
This all works fine, but for some reason it needs me to add a message box before the image is displayed.
With the message box, it works fine - the frame changes, and the message box is displayed, when OK is pushed, the image is changed.
function change(name1, name2)
var banner = eval(name1 + '.src');
var pImage = eval(name2 + '.src');
var text = eval(name1 + '.alt');
parent.topframe.banner.alt = (text);
parent.topframe.banner.src = (banner);
parent.picframe.image.src = (pImage);
0 · ·