Pages 1
You must login or register to post a reply
Warning: count(): Parameter must be an array or an object that implements Countable in
/home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line
820
1 Topic by Avice 2011-09-23 16:11:30 (edited by Avice 2011-09-23 16:30:42)
- Registered: 2010-12-13
- Posts: 182
Topic: elemento gavimas is iframe
Taigi turiu iframe:
<iframe src="" width="607" height="360" frameborder="0"></iframe>
ir kaip butu galima gauti width ir height su js?
Kadangi iframe neturi nei id nei name , tai nelabai isgalvoju.
tarp html body stovi tik iframe nera jokiu kitu kodu.
- minde
- Administrator
- Offline
- Registered: 2006-06-14
- Posts: 4,003
Re: elemento gavimas is iframe
Patikrink window.frames masyvą...
Warning: count(): Parameter must be an array or an object that implements Countable in
/home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line
820
- From: Klaipėda
- Registered: 2006-10-31
- Posts: 432
Re: elemento gavimas is iframe
O nuo kada iframe negali turėti ID atributo?
document.getElementById('frameID').offsetWidth
- minde
- Administrator
- Offline
- Registered: 2006-06-14
- Posts: 4,003
Re: elemento gavimas is iframe
Min2liz wrote:O nuo kada iframe negali turėti ID atributo?
Gali visada, bet jis neprivalomas. Todėl jeigu gauni HTML'ą, kuriame nėra ID, o tu kažkaip turi kažką išsi-parse'inti tai tada ir suki galvą.
Pages 1
You must login or register to post a reply