•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,701 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,322 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 5878 | Replies: 12
![]() |
•
•
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 196
Reputation:
Rep Power: 2
Solved Threads: 6
This might be a mozilla stuff. I have used it this way and it works. Did you try what MattEvans suggested?
Last edited by jamello : Mar 19th, 2007 at 12:08 pm.
•
•
Join Date: Mar 2007
Posts: 83
Reputation:
Rep Power: 0
Solved Threads: 2
Dude, you have the answer above already...the onClick parameter is ALWAYS going to run when clicked... this is NOT form input.... The input tag with type="image" is the CORRECT way to use an image as a button... if you don't do it correctly even when people tell you, then there is little we can do...
Now to do it your way, don't use disable, but hide the button all togther then it isn't being enabled... if they can't see it they can't click it, so your onClick won't be an issue...
OK, but I highly recomend using the proper method of input tag with type="image" parameter set.
Now to do it your way, don't use disable, but hide the button all togther then it isn't being enabled... if they can't see it they can't click it, so your onClick won't be an issue...
OK, but I highly recomend using the proper method of input tag with type="image" parameter set.
•
•
•
•
<img src="[href to image]" name="add" onclick="sendAdd();">
this is the way i am useing the image as a button.
is this possible to disable.....?
I don't think disabled works on an <img> as you have it. Why not just use javascript to check if you've disabled an image?
eg:
[HTML]onclick="if(!this.disabled)sendAdd();"[/HTML]
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: renegade footer...Help!!
- Next Thread: Why is this page center aligned?


Linear Mode