Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| Topic Preview Tooltip; Shows a preview of topic on mouseover | |
|---|---|
| Tweet Topic Started: Jul 22 2009, 09:48 AM (1,814 Views) | |
| Choco | Jul 22 2009, 09:48 AM Post #1 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
Name: Topic Preview Tooltip Description: When your mouse is held over a topic link for more than 1 second, it'll show a little box next to your mouse with some of the first post of the topic, to let you know what it's like. Bugs: If you hover over a topic link and display the box, then clicking that topic link will bring you to the last post in the topic. Installation: Place it in the last wrapper box. Code:
Customization: You can style the box in your Theme Appearance section. Just add some CSS: #tip { background:white; border:1px dashed grey; padding:8px; text-align:center; } Also, at the top of the code, you should see this: var sub = 150; Change the numbers to how much content you want to display of the first post. So if you wanted 300 characters to display instead, use var sub=300; That's about it. Enjoy! |
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| Lout | Jul 22 2009, 09:51 AM Post #2 |
![]() ![]()
|
If we wanted it to take say 2 seconds before it displayed, am I correct in assuming that we would change the 1000 to 2000 here?
|
| |
![]() |
|
| Choco | Jul 22 2009, 10:03 AM Post #3 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
Exactly. I was trying it out however and anything above 1.5 seconds gets sorta boring to wait around for (believe it or not!) Your choice though ;) |
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| Viral | Jul 22 2009, 10:08 AM Post #4 |
![]()
|
I love this ! You should clearTimeout if you click the link though.
|
![]() | |
![]() |
|
| Lout | Jul 22 2009, 10:11 AM Post #5 |
![]() ![]()
|
The thinking was that if the time was increased the topic wouldn't realise it was being loaded until the popup appeared. That way you could just click straight to the last unread, or doesn't it work like that? |
| |
![]() |
|
| Choco | Jul 22 2009, 10:13 AM Post #6 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
It certainly does. Good thinking.
|
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| Lout | Jul 22 2009, 10:24 AM Post #7 |
![]() ![]()
|
I can't code but I can think methodically ;) |
| |
![]() |
|
| Aerial | Jul 22 2009, 11:21 AM Post #8 |
![]()
|
wait a second... where does this go? i tried above the copyright, didn't work... thanks |
![]() |
|
| Lout | Jul 22 2009, 11:40 AM Post #9 |
![]() ![]()
|
Make sure you add </script> to the end of it - Choco forgot to EDIT: Doesn't seem to work for me either, and isn't working here now...
Edited by Lout, Jul 22 2009, 11:57 AM.
|
| |
![]() |
|
| Choco | Jul 22 2009, 12:58 PM Post #10 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
Try now
|
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| 2 users reading this topic (2 Guests and 0 Anonymous) | |
![]() Join the millions that use us for their forum communities. Create your own forum today. Learn More · Sign-up Now |
|
| Go to Next Page | |
| « Previous Topic · Zetaboards Modifications · Next Topic » |

















! You should clearTimeout if you click the link though.

Good thinking.


7:49 PM Jul 10