Skip to content

Commit

Permalink
#fix buttons hover
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoTKBR authored and elsongabriel committed Nov 21, 2023
1 parent a562f78 commit 0e088fc
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions templates/tibiacom/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ function MouseOutSubmenuItem(source) {
style="background-image:url(<?= $template_path; ?>/images/loginbox/loginbox-textfield-background.gif)">
<div id="LoginButton"
style="background-image:url(<?= $template_path; ?>/images/global/buttons/mediumbutton.gif)">
<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton(this);"
onMouseOut="MouseOutBigButton(this);">
<div onClick="LoginButtonAction();" onMouseOver="MouseOverBigButton2(this);"
onMouseOut="MouseOutBigButton2(this);">
<div class="Button"
style="background-image:url(<?= $template_path; ?>/images/global/buttons/mediumbutton-over.gif)"></div>
<?php
Expand Down Expand Up @@ -389,8 +389,8 @@ function MouseOutSubmenuItem(source) {
<div id="PlayNowContainer">
<div class="MediumButtonBackground"
style="background-image:url(<?= $template_path; ?>/images/global/buttons/mediumbutton.gif)"
onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);">
<div class="MediumButtonOver"
onmouseover="MouseOverBigButtonDownload(this);" onmouseout="MouseOutBigButtonDownload(this);">
<div class="MediumButtonOver MediumButtonOverDownload"
style="background-image: url(<?= $template_path; ?>/images/global/buttons/mediumbutton-over.gif); visibility: hidden;"></div>
<input class="MediumButtonText" type="image" name="Download" alt="Download"
src="<?= $template_path; ?>/images/global/buttons/mediumbutton_download.png">
Expand Down Expand Up @@ -843,6 +843,31 @@ class="carousel-control-next-icon"
<br>
</div>

if (MediumButtonOverDownload) {
MediumButtonOverDownload.style.visibility = 'hidden';
// Restante do código...
}
}
</script>

<script>
function MouseOverLoginBoxText(element) {
var loginStatusText = document.querySelector('#LoginstatusText_2_2');
if (loginStatusText) {
loginStatusText.style.visibility = 'visible';
// Restante do código...
}
}

function MouseOutLoginBoxText(element) {
var loginStatusText = document.querySelector('#LoginstatusText_2_2');
if (loginStatusText) {
loginStatusText.style.visibility = 'hidden';
// Restante do código...
}
}
</script>

</body>
</html>
<?php
Expand Down

0 comments on commit 0e088fc

Please sign in to comment.