• 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!

[Tooltip] I need :d

Kavvson

Gdy boli cie glowa wez
Joined
Jun 25, 2008
Messages
1,177
Reaction score
72
Location
Poland
PHP:
			<?PHP
################################################################################
##              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #
## --------------------------------------------------------------------------- #
##   Script created by chojrak (http://otland.net/members/chojrak/)            #
##   -= Script display eq items and counts =-              					   #
##          																   #
################################################################################
## +--------------------------Field Values-------------------------------------+
## | 2 -amulet, 
## | 1 -helmet, 
## | 3 -backpack,
## | 6 -lefthand, 
## | 4 -armor, 
## | 5 -righthand, 
## | 9 -ring, 
## | 7 -legs, 
## | 10 -ammunition, 
## | 8 -boots <-- order of numbers                                                   
## +---------------------------------------------------------------------------+
##
	$slots = array(
		1 => "Head",
		2 => "Necklace",
		3 => "Backpack",
		4 => "Armor",
		5 => "Right Hand",
		6 => "Left Hand",
		7 => "Legs",
		8 => "Feet",
		9 => "Ring",
		10 => "Ammo"
	);
	$data = $mysqli->query("SELECT `itemtype`, `sid`, `count` FROM `player_items` WHERE `player_id` IN (SELECT `id` FROM `players` WHERE `name` = '".$mysqli->real_escape_string( $_GET['editcharacter'] )."');");
	while($item = $data->fetch_array())
		echo "<tr><td>".$slots[($item['sid'] - 100)]."</td><td><a id=\"image\"><input type=\"text\" name=\"itemtype\" value=\"".$item['itemtype']."\" /></a></td><td><input type=\"text\" name=\"count\" value=\"".$item['count']."\" /></td></tr>
		
		<div id=\"item\">
	<img src=\"images/items/".$equipment['itemtype'].".gif\" />
</div>";

I took it from Easy Tooltip jQuery Plugin Demo

And i want for each item show me a tooltip with img
 
Might help but its your code :P so u should know how could i make it working. Since it shows me the same image on each tooltip .
 
An easiest tooltip shows also only 1 the same image for each input field.

PHP:
echo "<tr><td>".$slots[($item['sid'] - 100)]."</td><td><a class=\"tooltip\" href=\"#\"><input type=\"text\" name=\"itemtype\" value=\"".$item['itemtype']."\" /><span><img src=\"http://otland.net/images/items/".$equipment['itemtype'].".gif\" alt=\"\" /></span></a></td>

2nss505.jpg
 
Back
Top