new buttons code for tibiacom template, can create button with any text

This commit is contained in:
slawkens 2023-02-18 21:09:51 +01:00
parent a39600efe2
commit a91e7226dc
4 changed files with 23 additions and 4 deletions

View File

@ -1486,6 +1486,25 @@ img {
width: 135px;
z-index: 20;
}
.BigButtonText {
position: absolute;
top: 0;
left: 0;
width: 135px;
height: 25px;
margin: 0;
padding: 0;
cursor: pointer;
background: 0 0;
border: none;
text-align: center;
color: #ffd18c;
font-family: Verdana,Arial,Times New Roman,sans-serif;
font-size: 12px;
font-weight: 400;
z-index: 20;
text-shadow: -1px -1px 0 #000,0 -1px 0 #000,1px -1px 0 #000,1px 0 0 #000,1px 1px 0 #000,0 1px 0 #000,-1px 1px 0 #000,-1px 0 0 #000
}
.TopButtonContainer {
position: relative;
right: 4px;

View File

@ -1,8 +1,8 @@
{% spaceless %}
<div class="BigButton" style="background-image:url({{ template_path }}/images/global/buttons/sbutton.gif)">
<div class="BigButton" style="background-image:url({{ template_path }}/images/global/buttons/button_blue.gif)">
<div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);">
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/global/buttons/sbutton_over.gif);" ></div>
<input class="ButtonText" type="image" name="{{ button_name }}" alt="{{ button_name }}" src="{{ template_path }}/images/global/buttons/{{ button_image }}.gif" />
<div class="BigButtonOver" style="background-image:url({{ template_path }}/images/global/buttons/{% if button_color is defined and button_color == 'green' %}button_green{% else %}button_blue_over{% endif %}.gif);" ></div>
<input class="BigButtonText" type="submit" value="{{ button_name }}">
</div>
</div>
{% endspaceless %}
{% endspaceless %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B