boionfire81 Posted June 17, 2016 Posted June 17, 2016 With everything on my plate at the moment, I don't have time for this at the moment. I would like to turn the iteminfo.php into a tooltip on hover for item images. Anybody up for the challenge? Quote
NonStopCoding Posted June 17, 2016 Posted June 17, 2016 (edited) With everything on my plate at the moment, I don't have time for this at the moment. I would like to turn the iteminfo.php into a tooltip on hover for item images. Anybody up for the challenge? so you want all the information from iteminfo to show up when they hover the item in there inventory instead of going to the file for it? Edited June 17, 2016 by NonStopCoding Quote
boionfire81 Posted June 17, 2016 Author Posted June 17, 2016 yeah kinda Basically, Item Name: itmname Item Type: itmtype (If weapon: Damage: weapon) (if armour: Defense: armor) (If item owned Owned: qty) Quote
NonStopCoding Posted June 18, 2016 Posted June 18, 2016 was going to try something like this but as i said it dont allow tags $msg = "Item Name: Test><hr>"; $msg.= "Item Cost: $1.500"; $i['itmname'] = "<span style='color: red;'>*</span>" . ".<a href='' title='{$msg}'>".$i['itmname']."</a>"; it can be done but i was trying a quick way but it messes up as it don't tags html lol will need css and little html Quote
TheMasterGeneral Posted June 18, 2016 Posted June 18, 2016 This might be useful information. If I'm understanding it correctly, it uses jQuery like so: <script> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({html: true}); }); </script> And in your PHP... //Not tested, should work though. <a data-toggle='tooltip' title='$lolwhatever'>$i['itmname']</a> Quote
Magictallguy Posted June 18, 2016 Posted June 18, 2016 Use jQuery's Tooltip as a basis and just work the information in Quote
boionfire81 Posted June 23, 2016 Author Posted June 23, 2016 Yeah, now that I have the jquery inventory I think I can duplicate the tooltips elsewhere. Thanks guys! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.