Nie jesteś zalogowany na forum.
Offline
http://www.kurshtml.boo.pl/html/pole_wy … larze.html
Przewiń na dół do części Dynamiczne ukrywanie pól formularza, gdzie zamiast ukrytych pól formularza, ukryj wiadomość.
Offline
Offline
Wiem że to nie jest dokładnie to czego byś chciał i nie potraktuj tego jak "nabicie posta", ale chcę pomóc i kod który ci podaję jest podobny i możesz go zastąpić do czasu aż nie wymyślisz jak z tym kwadratem
<div class="smallfont">
<input type="button" class="button" value="Otwórz" style="width:55px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Zamknij'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Otwórz';}" />
</div>
<div>
<div class="alt2" style="display: none;"> <text>Wpisz tu tekst jaki chcesz</text>
</div>
</div><br />
Ostatnio edytowany przez kaczmar97 (2010-03-13 12:43:14)
Offline
Offline
Offline
fighter79
To nic trudnego wystarczy że
<div class="smallfont">
<input type="button" class="button" value="Otwórz" style="width:55px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Zamknij'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Otwórz';}" />
</div>
<div>
<div class="alt2" style="display: none;"> <text>Wpisz tu tekst jaki chcesz</text>
</div>
</div><br />
gdzie masz napis Otwórz wpisujesz to co chcesz przykładowo "INFO" a gdzie masz zamknij wpisujesz to co chcesz wyjdzie to mniej więcej tak :
<div class="smallfont">
<input type="button" class="button" value="to co chcesz wpisujesz" style="width:55px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'to co chcesz wpisujesz'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'to co chcesz wpisujesz';}" />
</div>
<div>
<div class="alt2" style="display: none;"> <text>Wpisz tu tekst jaki chcesz</text>
</div>
</div><br />
jeśli ci oto chodziło to proszę bardzo
Offline
Offline
Kaczmar ale jak klikne info i wyswietla mi się tekst ale po wyswietleniu tego tekstu chce zeby zmiast dalej "info" było zamknij albo cos innego PORADZ cos !!!
AAA już chyba rozumiem chcesz żeby było po kliknięciu tego przycisku nadal "info" ? Czy nie, jak tak to masz ten skrypt
<div class="smallfont">
<input type="button" class="button" value="info" style="width:55px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'info'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'info';}" />
</div>
<div>
<div class="alt2" style="display: none;"> <text>Wpisz tu tekst jaki chcesz</text>
</div>
</div><br />
Sry ale czasem mogę czegoś nie zrozumieć
Ostatnio edytowany przez kaczmar97 (2010-03-17 16:57:11)
Offline
Offline
kubanosek
udało mi się rozgryźć skrypt na ten kwadracik ^^
<div id="brdfooter" class="block"><div class="box"><center><input type="checkbox" name="Pokaż" value="20" onclick="document.getElementById('Pole').style.display = this.checked ? 'block' : 'none'; this.form.elements['nazwa2'].disabled = !this.checked" /><big>Wpisz co chcesz</big></center>
<div id="Pole" style="display: none">
<table border="1" cellspacing="1" style="border-collapse: collapse; font-family: Verdana; font-size: 10 px; bordercolor: #000000; width: 90; height: 50%;" >
<tr>Tu wpisać co się chce<td>
<div style="position: relative; top: 2; left:0;">
<p style="font-size: 10px; font-family: tahoma; color: #000000;">
<FONT face='tahoma'>
<table border=1 style="font-size : 10px; color : #000000;' cellpadding=0; cellspacing=1; height: 50%;" >
<script type="text/javascript">
<!--//Begin
// End -->
</script>
</table></FONT></p></div></td></tr></table>
<!--/koniec kodu-->
</div>
Jeżeli oto chodziło proszę uprzejmie
@EDIT:
fighter79
ok już teraz chyba zrozumiałem ale ftopa. Masz tu ten tym razem odpowiedzni skrypt
<div class="smallfont">
<input type="button" class="button" value="info" style="width:55px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Zamknij'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'info';}" />
</div>
<div>
<div class="alt2" style="display: none;"> <text>Wpisz tu tekst jaki chcesz</text>
</div>
</div><br />
Ostatnio edytowany przez kaczmar97 (2010-03-17 16:55:48)
Offline
Offline
A mi tak czy siak po użyciu tego ostatniego skryptu wyświetla się info. I nawet po wciśnięciu dalej jest info. A miało byc zamknij. Jak cos to wsadziłem kod w Castompages i mam google chrome.
[Zamknij spamera] [Blog] [Opowiadania]
[Ich spreche Deutsch richtig]
Offline
A mi tak czy siak po użyciu tego ostatniego skryptu wyświetla się info. I nawet po wciśnięciu dalej jest info. A miało byc zamknij. Jak cos to wsadziłem kod w Castompages i mam google chrome.
o dopiero zauważylem no wlasnie dalej jest info i tez mam google chrome !!
Wes neich ktos poprawi ten kod
Offline