Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display pop-up when you hoer over a button for more details #38

Open
ghost opened this issue Dec 20, 2016 · 1 comment
Open

Display pop-up when you hoer over a button for more details #38

ghost opened this issue Dec 20, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 20, 2016

you add a pop up when you hover over a button, for instance when you hover over you money it wll display 'your money' , and when you hover over the times of the days, it will display 'day', 'dawn' 'dusk', or, 'night'.

<div id="parent">
This is the main container.
<div id="popup" style="display: none">some text here</div>
</div>
var e = document.getElementById('parent');
e.onmouseover = function() {
  document.getElementById('popup').style.display = 'block';
}
e.onmouseout = function() {
  document.getElementById('popup').style.display = 'none';
}

or just using CSS you could get rid of the javascipt.

#parent #popup {
  display: none;
}

#parent:hover #popup {
  display: block;
}

you could also use the 'title attribute.

I'm not sure if the info above will help as you don't seem to be using HTML, only using javascript a lot and linking it to the <canvas> tag

Ragerds,
Taiwei

@ghost
Copy link
Author

ghost commented Dec 20, 2016

Also just a question, what is the trophy icon in the lower left next to your money for? Please answer when you see this (or ASAP).

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants