Jak zrobić tak jak na tej stronie: http://d4u.pl/ , żeby po najechaniu na button poniżej w menu wyświetlał się dany tekst?
Tam akurat jest js + css. Można posłużyć się samym css, ale napis będzie znikał gdy zjedziesz z buttona lub tego tekstu pokazanego. xulu link już podał na coś takiego w css
Dzięki ale pojawia się problem. Mam w CSS taki kod:
* { margin: 0; padding: 0; }
body {
background: transparent url(images/tlo.gif) top center repeat-x;
}
body { background: url('images/tlo.gif') top center no-repeat #f1f1f
I gdy on jest to wszystko się psuje. Jak usunę jest dobrze.
Hm…po co masz dwa razy zdefiniowane body? W tym drugim body jest błąd, kolor wpisuje się przed grafiką (jest też w kolorze 5 cyfr zamiast 6).
Znalazłem inny sposób:
Przypisanie tekstów wyświetlania i wyświetlanie:
Aaaaa.
See the new scripts recently added to Dynamic Drive. Click here.
Original, practical CSS codes and examples such as CSS menus for your site.
[/code] Linki
[code]
HomeeDHTMLCSSForumsGif Optimizer
Inne kody działania mam w pliku ddtabmenu.js I gdy próbuje wkleić id=“sc1” w taki kod, nie działa.
onmouseover="changeImages('index_09', 'images/index_09-over.gif'); return true;"
onmouseout="changeImages('index_09', 'images/index_09.gif'); return true;"
onmousedown="changeImages('index_09', 'images/index_09-over.gif'); return true;"
onmouseup="changeImages('index_09', 'images/index_09-over.gif'); return true;">
[/code]