| | |
| Stránka: 1 z 1
| [ Príspevkov: 14 ] | |
Autor | Správa |
---|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 |
ako nastavim farbu tlacitka po kliknuti ? pr. mam 5 tlacitok a chcem aby po klikuti na jedno z nich zmenilo farbu na inu .ale iba to momentalne oznacene . nechcem aby mi oznacovalo navstivene .dik
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 04.05.2007 6:45 | |
|
TLAČÍTKA, alebo ODKAZU?
V oboch prípadoch ide o primitívny JavaScript, takže keby si si ho sám na www.jakpsatweb.cz v príslušnej sekcii našiel, nemusel by si tu strácať čas.
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 05.05.2007 13:10 | |
|
lepsie povedane odkazu.
hmm nemozem to najst ... nehodis ho sem ak ho mas? THX
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 05.05.2007 13:27 | |
|
Sú tam hneď dva, aby ti nebolo málo. A hádam si to už vieš prepísať tak, aby to menilo farbu odkazov.
http://www.jakpsatweb.cz/javascript/pri ... hover.html
http://www.jakpsatweb.cz/javascript/pri ... ozadi.html
// kam tí mladí spejú, keď už ani na kontkrétnej, maximálne prehľadnej stránke nevedia vyhľadávať...?
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 05.05.2007 13:33 | |
|
ale ja som myslel aby ten odkaz na ktory kliknem zmenil farbu . nemyslel som zmenu farby po prejdeni kurzorom.
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 05.05.2007 13:39 | |
|
Tak prečo si sakra najprv niečo o Javascripte neprečítaš???! Nemal by si problém vymeniť "onmouseover" za "onclick"!
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 05.02.07 Prihlásený: 27.03.12 Príspevky: 113 Témy: 31 Bydlisko: SK/Prievidza |
myslis toto??
Kód: <a href="někam.html" onmouseover="document['obrazek'].src = 'druhy.gif' ;" onmouseout="document['obrazek'].src = 'prvni.gif' ;"> <img src="prvni.gif" name="obrazek"> </a>
_________________ MB:ASUS P5Q PRO CPU: Intel Core 2 Quad Q9300 2.5GHz + Thermalright Ultra-120 eXtreme+Scythe S-Flex 120mmFAN 1200rpm GPU: ATI Sapphire HD4870 1GBRAM:4GB DDR2-800Mhz CL5 Kingston 2x2GB HDD:WD6400AAKS 640GB 2x PSU:Enermax MODU82+ EMD525AWT DVDRW:LG GH22LS30 LS CASE: ThermalTake VI1000BWS M9 Monitor:Samsung LCD 24" 2493HM OS:OEM WIndows Vista Home Premium 64bit SK |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 05.05.2007 14:09 | |
|
myslim nieco taketo : http://www.hokejportal.sk/ ako je to menu spravene . ze napr. ked kliknem na Správy tak to ostane oznacene az pokial nekliknem napr. na Zábavu
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 05.05.2007 14:17 | |
|
no veď na to je onclick
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 05.05.2007 14:31 | |
|
jj uz chapem a este jedna vec: ako spravim to ze ked kliknem na druhy odkaz tak aby ten prvy na ktorom som prave bol sa zmenil na povodnu hotnotu .
pr. mam dva odkazy ktore su zlte a po kliknuti sa zmenia na zelenu a chcem ze ked kliknem na ten druhy tak nech je zeleny a ten prvy nech ma povodnu farbu zltu ...
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 05.05.2007 14:38 | |
|
Sprav funkciu. Tá bude mať prístup ku všetkým tlačítkam (cez getElementById). Potom prejde všetkými tlačítkami (cyklus) a bude im nastavovať žltú farbu až pokým nepríde na to tlačítko, ktoré bolo stlačené (to tej funkcii predáš ako parameter), tomu dá zelenú farbu a ďalším zase žltú. Túto funkciu budeš vždy volať, keď niekto stlačí hociktoré z tých tlačítok a ako som už povedal, bude mať jeden parameter - názov (id) stlačeného tlačítka.
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 05.05.2007 14:44 | |
|
jasnee chapem aj som myslel ze to musi ist ze funkciu len bude problem ju napisat:( nemas doma niekde tento script?
|
|
Registrovaný: 30.05.06 Prihlásený: 08.10.14 Príspevky: 1756 Témy: 35 Bydlisko: BA - WESTSIDE | Napísal p360t: 05.05.2007 14:46 | |
|
Nie. To som ti povedal teraz len tak z hlavy prvé riešenie, aké mi napadlo. Ale keď to už máš takto pekne popísané, nemal by si s tým mať také problémy... Veď skús, potom ju sem pošli, ak nebude fungovať a opravíme... Tak sa to najlepšie naučíš, ak si to spravíš sám.
_________________
A. S. Tanenbaum píše: The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice. |
|
Registrovaný: 06.12.06 Prihlásený: 21.02.15 Príspevky: 183 Témy: 59 | Napísal autor témy Punker661: 05.05.2007 14:48 | |
|
nasiel som nieco taketo, malo by to byt podobne tomu co si pisal
var cindex=-1;
var ac;
var unsel="unsel.gif"; // when entry is unselected
var sel="sel.gif"; // when entry is selected
var oversel="oversel.gif"; // when mouse is over a selection
function unload(){
window.status="Oo-roo mate ...";
if (cindex != -1)
eval("document.imgform.sel"+cindex+".src=\""+sel+"\"");
return true;
}
function load()
{
// set cindex to the default entry here ..
cindex=-1;
if (cindex != -1)
eval("document.imgform.sel"+cindex+".src=\""+sel+"\"");
}
// a new entry is selected
function selectChange(index)
{
if (cindex != -1)
eval("document.imgform.sel"+cindex+".src=\""+unsel+"\"");
eval("document.imgform.sel"+index+".src=\""+sel+"\"");
cindex=index;
// do other things here ...
}
// mouse just moved away from this selection
function selectOut(index)
{
if (index == cindex) // change to current selection
eval("document.imgform.sel"+index+".src=\""+sel+"\"");
else // unselect
eval("document.imgform.sel"+index+".src=\""+unsel+"\"");
window.status="";
return true;
}
// mouse is over this selection
function selectOver(index) {
eval("document.imgform.sel"+index+".src=\""+oversel+"\"");
window.status="Select Entry "+index; return true;
}
function beginEntry()
{
document.writeln("<FORM name=\"imgform\">\n<table border=3>");
ac=1;
}
function anEntry(cc,flags, selection)
{
document.writeln("<TR><TD><IMG NAME=sel"+cc+" WIDTH=14 HEIGHT=14 SRC="+unsel+"></TD>");
document.writeln("<TD><a "+flags+" onMouseOut=\"return selectOut("+cc+");\" onMouseOver=\"return selectOver("+cc+");\" href=\"javascript:selectChange("+cc+")\">"+selection+"</A></TD></TR>");
}
function newEntry(selection)
{
anEntry(ac,"",selection);
ac++;
}
function newEntryFlag(flags,selection)
{
anEntry(ac,flags,selection);
ac++;
}
function endEntry()
{
document.writeln("</TABLE></FORM>");
}
// end -->
|
|
| Stránka: 1 z 1
| [ Príspevkov: 14 ] | |
Podobné témy | Témy | Odpovede | Zobrazenia | Posledný príspevok |
---|
| Farba podsvietenia vs. farba komponentov v Modifikácie, návody a projekty | 2 | 1552 | 13.05.2008 17:17 tommy1104 | | tlacitka v Redakčné systémy | 4 | 1284 | 20.05.2006 17:48 p55p | | Tlačítka v Delphi, Visual Basic | 6 | 612 | 19.01.2012 21:20 Fico | | Nefunkcne tlacitka v Notebooky a netbooky | 2 | 552 | 28.07.2009 13:31 mysyacyk | | Nezobrazuje tlacitka! v Správy pre vedenie fóra | 15 | 1785 | 29.11.2007 22:25 0r0l | | multimedialne tlacitka v Notebooky a netbooky | 2 | 480 | 25.11.2009 14:24 niko | | Gipm-tlacitka v Grafické programy | 3 | 773 | 15.08.2008 11:29 dadmtb | | Vyroba tlacitka v Grafické programy | 1 | 502 | 19.05.2011 12:02 89Aquarius | | Počet stlaćení tlačítka? v HTML, XHTML, XML, CSS | 4 | 491 | 17.11.2009 17:54 d0.0b | | Nefunkcnost tlacitka Fn v Notebooky a netbooky | 6 | 372 | 22.01.2014 14:47 Makakus | | Ako vymenim tlacitka? v Redakčné systémy | 1 | 615 | 13.08.2006 15:09 scooby | | Zmena názvu tlačítka v HTML, XHTML, XML, CSS | 8 | 611 | 21.10.2007 19:59 Blackshadow | | Nefunguju niektoré tlačitka v Notebooky a netbooky | 5 | 1009 | 04.03.2018 20:20 shiro | | FI Black - Tlacitka v Redakčné systémy | 2 | 563 | 16.06.2007 16:52 santaldino_15 | | Pomoc zarovnanie tlacitka v HTML, XHTML, XML, CSS | 13 | 783 | 29.02.2008 14:42 shaggy | | pridanie tlacitka restart v Modifikácie, návody a projekty | 12 | 1965 | 29.12.2006 22:47 raddo |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|