The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Changing "Submit" form button to an image
I have a couple form submit buttons that came along with a mod I just installed that I want to replace with graphic images. I'm pretty sure there's a little Javascript workaround to make that happen I just don't quite get how to make it work. Any ideas?
Here's the code currently: Code:
<form method="post" action="journal.php?$session[sessionurl]do=comments&journalid=$journalid"> <input class="button" type="submit" value="Show comments" /></form> |
#2
|
||||
|
||||
I think you can use CSS to do that job.
To replace all buttons with image, add following to .button field (Main CSS) HTML Code:
width: 75px; height: 15px; margin: 0; border: 0; background: transparent url(images/path/button.gif) no-repeat; or to replace certain button, for example that one above HTML Code:
<input type="submit" value="" style="width: 75px; height: 15px; margin: 0; border: 0; background: transparent url(images/path/button.gif) no-repeat;" />
|
#3
|
||||
|
||||
That works really well, tnguy. Thanks.
|
#4
|
||||
|
||||
Hi guys, do you know tnguy3n or somebody know, how to make this submit button change something on mouse over? I don't know ... border or color.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|