Sigma Php Ajax framework, Ajax Components, GUI Builder
February 12, 2012, 12:14:15 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Making an Image Based Button or Link from an Image  (Read 706 times)
unger
Jr. Member
**
Posts: 14


View Profile
« on: February 25, 2010, 07:51:26 AM »

Sometimes I need images to be links. For example I want the website logo to be a link to the sites home page.

Also I want to make certain buttons in a dialog that do not use the standard linb button images.  I do not want to do this with a "skin" because it applies only to these specific buttons. I have been able to do something with specifying Custom Styles such as:

"BORDER" : "background : #FFFFFF url(img/leftarrow.png) no-repeat top left"

But I am not sure this is best way to do this. I also need to be able to control the mouseover and mousedown images and I haven't been able to figure out how to do this.
Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #1 on: February 25, 2010, 04:30:58 PM »

Logged
unger
Jr. Member
**
Posts: 14


View Profile
« Reply #2 on: February 26, 2010, 08:21:20 AM »

I still don't see how to do this. Firstly there doesn't seem to be an onClick event associated with image component (like there is for a button). If I try to add the code to the JS manually VisualJS gives me errors when I try to look at the design view.  It seems to me that the Image component should support an onClick event in any case. 
« Last Edit: February 26, 2010, 11:21:48 AM by unger » Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #3 on: February 27, 2010, 12:45:17 AM »

Maybe your code is old version, update code from svn please!
Logged
cgetty
Jr. Member
**
Posts: 11



View Profile WWW
« Reply #4 on: October 04, 2010, 11:14:17 AM »

Hi all.

I wanted to do the same thing for the same reason.

I had to stop myself from making a new post and said to myself, "perhaps I should search the forum first".

Low & behold! I found the answer to my question.

I tested the code posted here & it worked.

Thank you unger for asking the question & thank you  linb Moderator for the answer

Clark :-)
Logged

hillbilly programmer
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!