Using an image as a button

Using an image as a button

Friday 09 January 2004 4:56:05 am - 6 replies

Author Message

Claus Jensen

Friday 09 January 2004 5:27:54 am

Hi James,
Here ya go:
<input name="SearchButton" type="image" src={"go.gif"|ezimage} value="{'Search'|i18n('design/standard/layout')}" width="26" height="26" border="0" />

James Packham

Friday 09 January 2004 6:56:23 am

Thanks!

James Packham

Friday 09 January 2004 9:47:51 am

Had another thought on this - is there a way to use an image attached to an object (e.g. thumbnail image attached to an article, just an example - Obviously I'd create a new class to do this for security reasons) as the button?

Claus Jensen

Monday 12 January 2004 1:40:07 am

Hi,
Do you mean to display this image in the article, that is very possible. But I dont know if I understood you right.

regards,
claÜs

James Packham

Monday 12 January 2004 6:35:20 am

I meant display the image from an article and make it "clickable" or more precisely let the user click on it to use it as an eZPublish button. But having had the chance to think about it, it's probably quite complicated hack right?

Regards,

James

Claus Jensen

Tuesday 13 January 2004 12:27:00 am

Hello,
You mean click and it will take you to another www-address? Like a html-link? That I have done myself, and if that is what you mean, its really easy. Just...: <a href="www.something.com"><img src="yourpic.jpg"></a>
or you also may use a javascript I think, like this: <img src="pic.jpg" onClick="Javascript:document.form.submit();"> or something like that.

regards,
claÜs

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.