FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » I am having some difficulties with Tooltip...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: I am having some difficulties with Tooltip... [message #181809 is a reply to message #181808] Tue, 04 June 2013 06:05 Go to previous messageGo to previous message
khando Umpo is currently offline  khando Umpo
Messages: 4
Registered: June 2013
Karma:
Junior Member
On Tuesday, June 4, 2013 11:12:52 AM UTC+5:30, Jerry Stuckle wrote:
> On 6/4/2013 12:58 AM, khando Umpo wrote:
>
>> On Tuesday, June 4, 2013 10:20:19 AM UTC+5:30, Jerry Stuckle wrote:
>
>>> On 6/4/2013 12:14 AM, khando Umpo wrote:
>
>>>
>
>>>> I want a tooltip to be displayed when I move the mouse over edit/delete links. tooltip is worming fine with the delete option , but is not working for the edit link. below is a part of my code which is running partially....please help in php
>
>>>
>
>>>>
>
>>>
>
>>>> <td align="center"><?php echo "<a class='tooltip' href=\"edituser.php?uid=".$row['uid']."\";> Edit<span>Edit user info</span></a>/ <a class='tooltip' href=\"deluser.php?uid=".$row['uid']."\">Delete<span>Delete This User</span></a>"?></td>
>
>>>
>
>>>>
>
>>>
>
>>>>
>
>>>
>
>>>> Looking forward to really helpful posts. Thanks.
>
>>>
>
>>>>
>
>>>
>
>>>
>
>>>
>
>>> Wrong newsgroup. PHP knows nothing about tool tips. Try alt.html.
>
>>>
>
>>
>
>> ya i mean in html...with php codes
>
>> the codes i have dotted above is in html with php and mysql server.
>
>>
>
>
>
> Yes, but it's still not a PHP problem.
>
>
>
> Get your page working with plain HTML first. Then add your PHP code in.
>
>
>
> --
>
> ==================
>
> Remove the "x" from my email address
>
> Jerry Stuckle
>
> JDS Computer Training Corp.
>
> jstucklex(at)attglobal(dot)net
>
> ==================
This is my file where am trying to use the tooltip. i am trying for long but am unable to sort out the problem....tooltip is working fine with delete, but is not working with edit. please try running the file and advise me the necessary steps to be done...



<?php session_start();
if(!isset($_SESSION['username']) || $_SESSION['type']!=0)
header("Location:index.php");
include_once("connection.php");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
a.tooltip
{
position: relative;
color: red;
}
a.tooltip span
{
margin-left: -2000px;
position: absolute;
left: 10px;
top: 10px;
width: 130px;
padding: 4px;
background-color: #E2E7FF;
border: 1px solid #003099;
text-decoration: none;
color: #000;
z-index: 999;
border-radius:5px;
}
a.tooltip:hover span
{
margin-left: 0px;
}
</style>
</head>

<body>
<div style=" color:white;position:absolute;background-color:rgba(1,1,1,0.7);left:0%;top: 0%;height:8%;width:100%;box-shadow:0px 5px 25px rgba(0,0,0,0.5);text-shadow:3px 3px 3px rgba(0,0,0,0.5)" >
<center><b><br />ABCD UNIVERSITY</b></center>
</div>
<div style=" color:white;position:absolute;background-color:#069;left:0%;top:8.2%;height :8%;width:100%;box-shadow:0px 5px 25px rgba(0,0,0,0.5);text-shadow:3px 3px 3px rgba(0,0,0,0.5)" >
<center><b><br />ONLINE STUDENT COURSE PRE-REGISTRATION SYSTEM</b></center>
</div>

<div style="color:#00C; position:absolute;background-color:#9C9;left:775px;right:40px;top:130px;wid th:300px;height:33px;border-radius:6px;text-decoration:none; ">

<form method="post" action="search.php">
<table>
<tr>
<td align="center">Search</td><td align="left"><input type="text" name="search"/></td><td align="center"><input type="submit" name="ok" value="Go" /></td>
</tr>
</table>

</form>
</div>

<centre>

</div>
<div style="color:white; position:absolute; background-color:#99F; top:230px; left:180px; border-radius:05px;">
<table width="900" height="49" border="1" cellpadding="0" cellspacing="0" align="center">
<?php if(isset($_SESSION['response']))
{ echo "<tr><td colspan=\"7\">".$_SESSION['response']."</td></tr>";unset($_SESSION['response']);} ?>
<tr align="center"; height="35">
<td width="15"><b><i><font size="+1">Option</font></i></b></td>
<td width="64"><b><i><font size="+1">UID</font></i></b></td>
<td width="15"><b><i><font size="+1">Name</font></i></b></td>
<td width="30"><b><i><font size="+1">Address</font></i></b></td>
<td width="64"><b><i><font size="+1">Password</font></i></b></td>
<td width="64"><b><i><font size="+1">Type</font></i></b></td>
</tr>
<?php

$result = mysql_query("select * from login order by type desc");
$numrows = mysql_num_rows($result);
if($numrows!=0)
{
while($row=mysql_fetch_array($result))
{

?>
<tr>
<td align="center"><?php echo "<a class='tooltip' href=\"edituser.php?uid=".$row['uid']."\" title="Edit user info"> Edit<span></span></a>/ <a class='tooltip' href=\"deluser.php?uid=".$row['uid']."\">Delete<span>Delete This User</span></a>"?></td>
<td align="center"><?php echo $row['uid']; ?></td>
<td align="center"><?php echo $row['name']; ?></td>
<td align="center"><?php echo $row['address']; ?></td>
<td align="center"><?php echo $row['password']; ?></td>
<td align="center"><?php if($row['type']==1)echo "Student"; else if($row['type']==2) echo "Faculty"; ?>
</td></tr>


<?php

}
}

else
{
die('Error: ' . mysql_error());
}
//mysqli_close($con);*/
?>
<tr><td colspan=7><center><a href="admin_main.php">Back</a></td></tr>
</table>
</centre>
<!--<br/> To enter more data <a href="admin.php"> Click Here </a>-->
</body>
</html>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PDO Unit Tests
Next Topic: problem encrypting data (AES_ENCRYPT/AES_DECRYPT)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 13:38:04 GMT 2024

Total time taken to generate the page: 0.04413 seconds