Forum Moderators: open

Message Too Old, No Replies

replace <input type="image" > to be text / hyperink

how?

         

marcus76

12:36 pm on Nov 28, 2005 (gmt 0)

10+ Year Member



hi,

I'd like to have the following image replaced with just text / hyperlink...anyone have any clues to how i can do this..

<input type="image" src="includes/languages/english/images/buttons/button_wishlist.gif" border="0" alt="Add to Wishlist" title=" Add to Wishlist " name="wishlist" value="wishlist" />

thanks

Marc

Robin_reala

12:41 pm on Nov 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just text?

<input type="submit" value="Add to Wishlist" />

If you just want a text link then:

<a href="">Add to Wishlist</a>

Of course the normal link won't submit a form so you'd have to add some Javascript magic.

marcus76

12:43 pm on Nov 28, 2005 (gmt 0)

10+ Year Member



thanks Robin - any idea to the javascript magic wraparound...?

;-)

Robin_reala

12:47 pm on Nov 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, I'd probably keep the submit button and style it to look like a link rather than changing the HTML too much (a lot of users don't use Javascript).

If you do decide to go the Javascript route then you're probably better off asking the the Javascript forum - it all depends on what you want your program to do.

rocknbil

4:50 pm on Nov 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<a href="#" onClick="document.forms['formname'].submit()">Add to Wishlist</a>

But as said, not a good idea without a non-Javascript method of submitting.