boionfire81 Posted June 17, 2016 Share 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 Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 17, 2016 Share 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 Link to comment Share on other sites More sharing options...
boionfire81 Posted June 17, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
NonStopCoding Posted June 18, 2016 Share 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 Link to comment Share on other sites More sharing options...
TheMasterGeneral Posted June 18, 2016 Share 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 Link to comment Share on other sites More sharing options...
Magictallguy Posted June 18, 2016 Share Posted June 18, 2016 Use jQuery's Tooltip as a basis and just work the information in Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted June 23, 2016 Author Share Posted June 23, 2016 Yeah, now that I have the jquery inventory I think I can duplicate the tooltips elsewhere. Thanks guys! Quote Link to comment Share on other sites More sharing options...
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.