Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
show - hide mozilla problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Blue Fusion



Joined: 07 Oct 2003
Posts: 92
Location: Detroit

PostPosted: 18.01.2005 13:16    Post subject: show - hide mozilla problem Add user to your forum ignore list Reply with quote

Halo Smile

Evo skripte :
Code:
<!--
function sadrzaj(ovo){
  var ovo = ovo.parentNode;
    while (ovo.tagName != "TABLE") {
    ovo = ovo.parentNode;
  }
  if (ovo.rows[1].style.display=='none')
  {
  ovo.rows[1].style.display='block'
  }
  else ovo.rows[1].style.display='none'
}
-->


npr.
<a href="#" onclick=sadrzaj(this)>tekst</a>

npr. što želim sakriti te otkriti : (<tr> tag)
<tr style="display: none">

Nisam radio npr. sa cijelim <table> tagom, nego samo sa <tr>.

Uglavnom, u IE-u sve lijepo, fino radi. U Firefoxu isto tako...ali Smile
npr. Imam naslov i tekst. Kad kliknem na naslov otvori mi se tekst ili vijest koji je po defaultu sakriven (style="display: none"). Okey to radi i kad kliknem opet na naslov želim da mi se vijest opet sakrije, i to radi ok. No, problem je što taj tekst zauzima određeni dio prostora, npr. 180 pixela i kad kliknem : sakrij mi tekst : tekst se sakrije ali taj prostor se ne vrati nazad pa mi nastane rupa !! Lud !

Help me : )))))))) Thanx!

_________________
Brija Dot Com
@ www.brija.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group