Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > WebsitePainter
buttons

richard
Registered User
Quote
2012-08-04 16:32:09

hello,
i would like to create buttons (jpegs an pngs)
with to states : not hover and on hover ...
is it possible in websitepainter ?
thanks !


niko
Moderator
Quote
2012-08-05 10:08:11

Yes, you can do this using the Shape element. There is a checkbox 'UseHoverStyles'. There you can specify the different colors of the shape when it is hovered.


richard
Registered User
Quote
2012-08-05 12:39:01

Tanks niko,
i already tried the shape element but i'd like
to use 2 images instead of colored shapes ...
Any idea ?


niko
Moderator
Quote
2012-08-05 21:41:20

Hm, no, there is no built-in method for something like that, but you can do this using the "HTML-Code of this element" feature in websitepainter manually.


richard
Registered User
Quote
2012-09-05 09:42:41

Thank you,
but can't figure out the html code to insert in "HTML-Code of this element" ... to get a rollover

Could you provide a code exemple ?
Thanks again !


niko
Moderator
Quote
2012-09-07 06:42:47

To try it out, try this: Click View -> HTML Code of this page, select additional CSS styles. Enter something like this:
wsp_8538c1f:hover { background-color: ff0000 !important; }

But instead of the wsp_8538c1f part, use an ID of an element in your page, for example a text element. You can see its HTML id when you right-click on it, in the html code.
If you preview the page then, the background-color of your element should change once you hover.
You can then replace backround-color with something like an image:
background-image: url(http://www.example.com/someimage.jpg);



richard
Registered User
Quote
2012-09-07 09:38:02

manually editing is not so handy as i need 20 rollovers per page ...
hope builtin rollover function will be part of next release,
it should be a must !
Thanks anyway niko for you help and time


rapte
Registered User
Quote
2014-06-04 22:13:13

Hello,

I know this discussion is very old but I just found out that to change the background color the code is:

wsp_798910f0:hover { background-color: ff0000 !important; } !important; }


( with a "number sign" or "hashtag" before the "wsp_" and the "ff0000" )



But I can't find out how to replace the Image by an other one I tried all the different possibilities.

Could someone help me


niko
Moderator
Quote
2014-06-05 08:35:29

Yes, the image is generated on the fly and usually not replaceable. You could try it with a new CSS rule looking something like that:

background-image:url(http://www.url.to.your.image/image.jpg);


But I don't guarantee that it will work.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact