Se ho un bottone di submit tipo:
Come faccio ad utilizzare una mia imaggine al posto che il classico bottone?Codice PHP:
<input type="button" value="go" onclick="handleGoClick();" class="btn">
Se ho un bottone di submit tipo:
Come faccio ad utilizzare una mia imaggine al posto che il classico bottone?Codice PHP:
<input type="button" value="go" onclick="handleGoClick();" class="btn">
con i css della classe btn, la modifivhi e gli dai sfondo ripetizione e altro, cosi puoi creare anche un rollover
Scusa ma non conosco bene, anzi quasi per niente i CSS, per favore mi potresti suggerire x favore uno script già scritto?
css
.pulsante {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
text-decoration: none;
background-image: url((tua immagine));
background-repeat: no-repeat;
background-position: center center;
}
.pulsante:hover {
font-family: Arial, Helvetica, sans-serif;
color: #FFFFFF;
text-decoration: none;
background-image: url((tua immagine));
background-repeat: no-repeat;
background-position: center center;
}
html
<input type="button" value="go" onclick="handleGoClick();" class="pulsante">
Originariamente inviato da andrew low
Scusa ma non conosco bene, anzi quasi per niente i CSS, per favore mi potresti suggerire x favore uno script già scritto?codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento senza titolo</title> <style type="text/css"> <!-- .btn { font-family: Arial, Helvetica, sans-serif; font-size: 12pt; font-style: italic; background-image: url(1.jpg); } --> </style> </head> <body> <input type="button" value="go" onclick="handleGoClick();" class="btn" /> </body> </html>