area sensibile

In questo Forum potrete chiedere consigli (ma anche condividere le vostre conoscenze) sulla progettazione e realizzazione di siti. Scoprite con le nostre Muse i segreti del web design... e perché nessuno va a vedere quella paginetta che vi è costata tanta fatica. Html, xhtml, xml, css, php, asp, js, flash e tutto quel che ci gira attorno.

Moderatori: Supervisor, Moderatori Software e Programmazione

Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

area sensibile

Messaggio da rebelia »

<!--EZCODE CODE START--><pre>
<html>
<head>

<title>Area sensibile</title>

<style>
div#prova{
&nbsp &nbsp &nbsp &nbsp ******;
&nbsp &nbsp &nbsp &nbsp top: 0px;
&nbsp &nbsp &nbsp &nbsp left: 0px;
&nbsp &nbsp &nbsp &nbsp width: 300px;
&nbsp &nbsp &nbsp &nbsp height: 300px;
&nbsp &nbsp &nbsp &nbsp border: 1px solid black;
&nbsp &nbsp &nbsp &nbsp background: yellow;
&nbsp &nbsp &nbsp &nbsp }
}
</style>

</head>
<body>

<map id="giallo">
<area shape="rect" coords="0,0,300,300" href="java script:void(0);" alt="area sensibile">
</map>

<div id="prova" usemap="#giallo">prova area sensibile</div>

</body>
</html>
</pre><!--EZCODE CODE END--><br>
per cortesia, qualcuno sa dirmi come mai non funziona questo codice qui sopra? le aree sensibili sono applicabili solo alle immagini, oppure si possono applicare anche ai div come vorrei fare io?<br>
<br>
grazie <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END-->

<p></p><i></i>
Avatar utente
SverX
Supervisor Macchinisti
Supervisor Macchinisti
Messaggi: 11949
Iscritto il: 25 mar 2002 10:16

Re: area sensibile

Messaggio da SverX »

mai applicata ad un DIV... vedi nel reference HTML se il tag DIV ha l'attributo "usemap"... credo sia solo di IMG comunque...<br>
<br>
<br>


<p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><br>
Ci sono 10 tipi di persone. Quelle che capiscono l'aritmetica binaria... e poi gli altri 9 non ho capito.<br>
</p><i></i>
Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

...

Messaggio da rebelia »

il fatto e' che nn mi funzia neanche con un'immagine <!--EZCODE EMOTICON START :( --><img src=http://www.ezboard.com/images/emoticons/frown.gif ALT=":("><!--EZCODE EMOTICON END-->

<p></p><i></i>
Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

...

Messaggio da rebelia »

per dovere di cronaca confermo: l'area sensibile dev'essere agganciata ad un'immagine o ad un oggetto <!--EZCODE EMOTICON START : --><img src=http://www.ezboard.com/images/emoticons/ohwell.gif ALT=":"><!--EZCODE EMOTICON END-->

<p></p><i></i>
Avatar utente
ioSOLOio
Amministratore
Amministratore
Messaggi: 16342
Iscritto il: 12 set 2003 17:01

Re: ...

Messaggio da ioSOLOio »

<br>
si..<br>
però perchè hai necessità di mappare un div ?<br>
<br>
devi spezzarlo in più link di destinazione differenti suppongo ?

<p></p><i></i>
Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

...

Messaggio da rebelia »

il div contiene l'intestazione del sito, ma nn posso inserire direttamente l'immagine, bensi' la devo usare come background per necessita' diverse del programmatore, cosi' abbiamo dovuto cercare un escamotage per ottenere il classico effetto link alla home; la soluzione sara' una gif trasparente linkata alla home che copre meta' dell'area del div, cosi' resta abbastanza spazio per il programmatore... un po' complicato, lo so <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->

<p></p><i></i>
Avatar utente
pincopallino
Dio maturo
Dio maturo
Messaggi: 3396
Iscritto il: 05 mag 2002 07:05

Re: ...

Messaggio da pincopallino »

Qualcosa mi dice che forse so di che progetto si tratta <!--EZCODE EMOTICON START :p --><img src=http://www.ezboard.com/images/emoticons/tongue.gif ALT=":p"><!--EZCODE EMOTICON END--> <br>
Sbaglio, reb?

<p>_________________________________<br>
<!--EZCODE FONT START--><span style="color:blue;"><!--EZCODE ITALIC START--><em>Only two things are infinite, the universe and human stupidity, and I'm not sure about the former</em><!--EZCODE ITALIC END-->. Albert Einstein</span><!--EZCODE FONT END--></p><i></i>
Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

...

Messaggio da rebelia »

<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->

<p></p><i></i>
Avatar utente
niklair
Dio maturo
Dio maturo
Messaggi: 2289
Iscritto il: 31 ott 2003 09:38

abboccato ....

Messaggio da niklair »

... 'zzo Reb ma perchè intesti i 3d "Area sensibile ..." mi ero fatto tutt'altra idea ... <!--EZCODE EMOTICON START :x --><img src=http://www.ezboard.com/images/emoticons/sick.gif ALT=":x"><!--EZCODE EMOTICON END-->

<p>________<br>
"Whats up doc?" - Bugs Bunny</p><i></i>
Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

...

Messaggio da rebelia »

<!--EZCODE QUOTE START--><blockquote><strong><em>Quote:</em></strong><hr>mi ero fatto tutt'altra idea ... <hr></blockquote><!--EZCODE QUOTE END--><br>
ggggg... uarda che siamo in un forum di informatica <!--EZCODE EMOTICON START :lol --><img src=http://www.ezboard.com/images/emoticons/laugh.gif ALT=":lol"><!--EZCODE EMOTICON END--> <br>
<br>
<!--EZCODE EMOTICON START :p --><img src=http://www.ezboard.com/images/emoticons/tongue.gif ALT=":p"><!--EZCODE EMOTICON END--> <br>
<br>
<!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END-->

<p></p><i></i>
Avatar utente
ioSOLOio
Amministratore
Amministratore
Messaggi: 16342
Iscritto il: 12 set 2003 17:01

Re: ...

Messaggio da ioSOLOio »

<br>
ah, ok Reb..capito <!--EZCODE EMOTICON START ;) --><img src=http://www.ezboard.com/images/emoticons/wink.gif ALT=";)"><!--EZCODE EMOTICON END--> <br>
<br>
ma allora visto che il link è unico (non hai necessità di vari link all'interno del div), non puoi semplicemente <!--EZCODE ITALIC START--><em>linkare</em><!--EZCODE ITALIC END--> tutto il div ?

<p></p><i></i>
Avatar utente
rebelia
Dio maturo
Dio maturo
Messaggi: 7989
Iscritto il: 17 lug 2003 07:22

...

Messaggio da rebelia »

no... cmq ho risolto con la gif trasparente <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END-->

<p></p><i></i>

Torna a “Linguaggi per Internet”