Autor | Zpráva | ||
---|---|---|---|
macomart Profil |
#1 · Zasláno: 25. 2. 2007, 19:49:29
Nastavenie udalosti
|
||
macomart Profil |
#2 · Zasláno: 25. 2. 2007, 19:50:58
Skusal som nastavit udalost pomocou js, ale neadri sa mi:
<html> <head> <script> function Start() { document.getElementById('box').setAttribute("onClick", "alert()"); } </script> </head> <body onLoad="Start();"> <div id="box">text</div> </body> </html> mozete sa na to prosim pozriet, dakujem. |
||
Hooonza Profil * |
#3 · Zasláno: 26. 2. 2007, 09:00:59
<html>
<head> </head> <body> <div onclick="alert('ahoj');">text</div> </body> </html> |
||
macomart Profil |
#4 · Zasláno: 26. 2. 2007, 17:49:09
Tento sposob poznam ale ja by som to chcel cez javascript.
|
||
Hooonza Profil * |
#5 · Zasláno: 26. 2. 2007, 17:52:23
onclick="alert('ahoj');" JE javaskript.
|
||
Hooonza Profil * |
#6 · Zasláno: 26. 2. 2007, 18:22:01
Pokud chceš s událostí pracovat, našel jsem třeba něco takového:
<html> <head> </head> <body> <span id="text1">text</span> <script> document.getElementById('text1').onclick = function() {alert('ahoj')}; </script> </body> </html> Více http://interval.cz/clanky/programujeme-dhtml-aplikace-interakce-s-uziv atelem/ , http://www.webtip.cz/art/wt_tech_dhtml/dhtml_006.html |
||
macomart Profil |
#7 · Zasláno: 26. 2. 2007, 19:01:36
Dakujem, asi takyto sposob som chcel.
|
||
Časová prodleva: 17 let
|
Toto téma je uzamčeno. Odpověď nelze zaslat.
0