javascript image src undefined |
Post Reply |
Author | |
greaseandmetal
Newbie Joined: Jan 27 2021 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: Jan 28 2021 at 5:26am |
WEitemmouseover is of type WEImage. it's src attribute is undefined. var mo = document.getElementById("WEitemmouseover"); console.log(mo.src); logs "undefined" console.log(mo.innerHTML) returns: <div class="OESZ OESZ_DivContent OESZG_WEitemmouseover"> <img src="../WEFiles/Image/WEImage/menulines_itemsel2-WEitemmouseover.png" class="OESZ OESZ_Img OESZG_WEitemmouseover" alt=""> </div> I see the <img> itself has no ID. How am I suppose to access the source?
Edited by greaseandmetal - Jan 28 2021 at 5:28am |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6209 |
Post Options
Thanks(0)
|
Here is the code
Edited by Hobby001 - Jan 29 2021 at 1:45am |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |