Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> document.images [js] [css]
Muadib
post 31.01.2008, 14:58:35
Post #1





Grupa: Zarejestrowani
Postów: 87
Pomógł: 0
Dołączył: 9.11.2005

Ostrzeżenie: (0%)
-----


Mam ciekawe pytanie skończyłem fajne menu napisane w javie

  1. <?php
  2. function oNas1(area)
  3. {
  4. document.getElementById(area).style.display=""
  5. document.images.mb1.src='menuGrafika/dyw4.jpg'
  6. }
  7. function oNas2(area)
  8. {
  9. t=setTimeout("document.getElementById('"+area+"').style.display='none'",100);
  10. document.images.mb1.src='menuGrafika/dyw1.jpg'
  11. }
  12. ?>


  1. <table align = 'center' cellspacing='0' cellpadding='0' border="0">
  2. <tr><td id="mpm">
  3. <a onmouseover="oNas1('pm1')" onmouseout="oNas2('pm1')"><img id="mb1" src="menuGrafika/dyw1.jpg"></a>
  4. </td></tr>
  5. <tr>
  6. <td id="pm">
  7. <div id="pm1" style="display: none" onmouseover="clearTimeout(t)" onMouseOut="podOdziały2('pm1')">
  8. <a href=""><img id="dmb1" src="menuGrafika/dywizjon/funkcyjne1.jpg" alt="Piony" width="136" height="21" border="0"></a><br>
  9. </div>
  10. </td>
  11. </tr>


mam takie fajne pytanie jak do obrazka ktory jest pobirany w funckji za pomocą document.images jak dodac tło wstydnis.gif

Ten post edytował Muadib 31.01.2008, 15:00:03
Go to the top of the page
+Quote Post
arecki
post 31.01.2008, 21:05:16
Post #2





Grupa: Zarejestrowani
Postów: 222
Pomógł: 35
Dołączył: 6.02.2005

Ostrzeżenie: (0%)
-----


  1. document.images.mb1.style.backgroundColor="#f87387";


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.07.2025 - 03:21