Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

in linea

Domestico Codici sorgente E-Libri Trasferimenti dal sistema centrale verso i satelliti Metterseli in contatto con Circa noi

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Eventi di DHTML

Previous Next





Eventi di DHTML

Un avvenimento che si presenta in un posto particolare durante l'intervallo particolare di tempo.



MANEGGIAMENTO DI EVENTO

Gli eventi sono rappresentati da un oggetto di evento come variabile del membro dell'oggetto della finestra, quale window.event o se come parametro alla vostra funzione

Gli alimentatori di evento sono codice di Javascript che non devono includere all'interno delle modifiche del <script>, ma piuttosto, all'interno delle modifiche del HTML, che eseguono il Javascript quando fuoco di alcuni eventi, come pressione del tasto, spostante il vostro mouse sopra un collegamento, presentante una forma, ecc.

La sintassi di base di questi alimentatori di evento è: name_of_handler="JavaScript code here"

Per esempio:


<a onclick="alert('Hello World!')" href="javascript:;" class="link">Click Here</a>

Il suddetto codice produce la seguente uscita:

Click Here




Funzioni di evento:

onclick:

Il onclick: L'evento è usato per invocare il Javascript sullo scattare un collegamento o per formare le scatole come sotto nell'esempio:

<form name="myalertform">
<input onclick="alert('hello World')" type="button" value="Click me" name="test" class="link">
</form>

Il suddetto codice produce la seguente uscita:
Scattare il suddetto tasto invoca la funzione attenta. L'alimentatore di evento è aggiunto all'interno dell'evento che maneggia, come la modifica di evento del tasto della forma.

onload:
Il onload: la funzione invoca il Javascript dopo che la pagina abbia rifinito il carico. Sotto l'esempio carica un Web page, quindi lo chiude dopo che l'immagine abbia rifinito il trasferimento dal sistema centrale verso i satelliti.

onload

Visualizza una scatola attenta quando la pagina ha rifinito il carico.


onmouseover:
Il onmouseover: la funzione è usata per invocare il Javascript quando il mouse passa sopra un collegamento.
<a onmouseover="status='You activated this message when you moused over the link!';return true" onmouseout="status=' '" href="javascript:;" class="link">

Mouse over this link and look the status bar message.

</a>
Il suddetto codice produce la seguente uscita:
Mouse over this link and look the status bar message.



Alimentatori comuni di evento:
È data sotto una lista degli alimentatori comuni di evento di Javascript:

Event Occurs when...
onabort a user aborts page loading
onblur a user leaves an object
onchange a user changes the value of an object
onclick a user clicks on an object
ondblclick a user double-clicks on an object
onfocus a user makes an object active
onkeydown a keyboard key is on its way down
onkeypress a keyboard key is pressed
onkeyup a keyboard key is released
onload a page is finished loading. Note: In Netscape this event occurs during the loading of a page!
onmousedown a user presses a mouse-button
onmousemove a cursor moves on an object
onmouseover a cursor moves over an object
onmouseout a cursor moves off an object
onmouseup a user releases a mouse-button
onreset a user resets a form
onselect a user selects content on a page
onsubmit a user submits a form
onunload a user closes a page

Qui sotto i parametri in cui possono essere usati

Handlers
onAbort
onBlur
onClick
onChange
onError
onFocus
onLoad
onMouseover
onMouseout
onReset
onSelect
onSubmit
onUnload
 
Can be used with these tags:
images
windows, all form elements, frames
buttons, radio buttons,checkboxes, submit buttons, links
text fields, textareas, select lists
windows, images
windows, frames, and all form elements
body, images
areas, links
links
forms
text fields, textareas
submit button
body




Previous Next

Keywordsevent handlers, event handling listener, event handling element, event handling delegate


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.