Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> rodzaj kursora na obszarze AREA
kufalo
post
Post #1





Grupa: Zarejestrowani
Postów: 251
Pomógł: 2
Dołączył: 24.08.2005

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


Kod
<map name="m"><area shape="rect" coords="0,0,200,200" onclick="alert('ok')" style="cursor:wait"></map>
<img width="100%" height="100%" usemap="#m">

Mam problem: po najechaniu mysza na zdefiniowany obszar nie dziala style (nie pojawia sie kursor klepsydry)....

Ten post edytował kufalo 9.02.2006, 21:59:06
Go to the top of the page
+Quote Post
my_identify
post
Post #2





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 5.02.2006

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


Map po prostu nie "łapie" styli, styl powinien odnosić się do img. Ja użył bym do tego JS:

  1. <script type="text/javascript">
  2.  
  3. function cursor(strStyle) {
  4.  
  5. picture=document.getElementById("map")
  6. picture.style.cursor=strStyle;
  7.  
  8. }
  9.  
  10.  
  11. <map name="m" style="background: blue;"><area shape="rect" coords="0,0,200,200" onmouseover=cursor("wait") onmouseout=cursor("default")></map>
  12. <img id="pictute" width="100%" height="100%" usemap="#m">
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 Aktualny czas: 19.08.2025 - 03:01