• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

One single Gesior AAC doubt

Dagh

New Member
Joined
Nov 3, 2008
Messages
80
Reaction score
1
So basically I have this button on my webpage wich has no function, I mean, when I click it nothing happens when it supposed to send you to other page. What shall I do?

This is my button:
PHP:
    <div class="Loginstatus" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-textfield-background.gif)" >
      <div id="LoginstatusText_2" onClick="LoginstatusTextAction(this);" onMouseOver="MouseOverLoginBoxText(this);" onMouseOut="MouseOutLoginBoxText(this);" ><div id="LoginstatusText_2_1" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account.gif)" ></div><div id="LoginstatusText_2_2" class="LoginstatusText" style="background-image:url(<?PHP echo $layout_name; ?>/images/loginbox/loginbox-font-create-account-over.gif)" ></div></div>
    </div>

I'm using Gesior, just to be clear and I want that button to send me to this direction:
Code:
/index.php?subtopic=accountmanagement

How can I do it?
 
missing javascript? check browser console for errors

if you're really missing the function, here it is
Code:
function LoginstatusTextAction(source) {
  if(loginStatus == "false") {
    window.location = JS_DIR_ACCOUNT + "?subtopic=createaccount";
  } else {
    window.location = JS_DIR_ACCOUNT + "?subtopic=logoutaccount";
  }
}
http://static.tibia.com/javascripts/initialize.js
 
Great! It worked, thanks for replying, giving you rep tho it looks like you don't need it lol.

Also got another question:
If I want to replace that button with another button but I mean this one is an image, you know like when you click over it, it sends you to a page. Do ya know how to do that?
 
Back
Top