loading img file |
loading img file |
mbessey |
Apr 18 2012, 01:32 PM
Post
#1
|
Group: Members Posts: 3 Joined: 18-April 12 Member No.: 16,940 |
Hello,
I am trying to get a image to load into a src tag from a value from a function. can someone steer me in the right direction here? here is some sample code. <div id="layer1" style="position: absolute; width: 1193px; height: 691px; z-index: 1; top: 46px; left: 11px"> <iframe name="I1" id="I1" src = PlaceToPostSnapshot style="width: 1112px; height: 664px">" class="style2" style="height: 642px; width: 1061px"Your browser does not support inline frames or is currently configured not to display inline frames. </iframe></div> // function to display alarm jpg function getImage() { var @AlarmDate = 1; var image = @AlarmDate.value + ".jpg" document.getElementByTagName('PlaceToPostSnapshots').setAttribute('src', image) } |
Lo-Fi Version | Time is now: 18th April 2024 - 07:03 AM |