Jump to content

Display Rollover Box


treeleaf20

Recommended Posts

All,

I have the following code to display a box that was tagged on a photo:

  $qrygettag = "select * from tags where picture_id='$picture_id'";
  $resulttag = mysql_query($qrygettag);
  while($resultsettag = mysql_fetch_array($resulttag)){

?>
<!--
  Each "fn-area" class element contains a note, and must have a unique ID,
  the format of which can be anything/random.
-->
<?php
echo "<div class=\"fn-area\" id=\"$resultsettag[tag_id]\" style=\"left: ".$resultsettag['height1']."px; top: ".$resultsettag['width1']."px; width:".$resultsettag['height2']."px; height: ".$resultsettag['width2']."px\">";

echo "<div class=\"fn-note\">";
  echo "<div class=\"fn-note_id\" id=\"$resultsettag[tag_id]\"></div>";

?>
  <!--
   The note itself is the first DIV inside the fn-area element.
   It must have a "fn-note" class applied, and children with these classes:
  -->
  <?php
  echo "<span class=\"fn-note-content\">$resultsettag[tagged_user]</span>";
  ?>
  </div>

</div>
<?php
}
?>

 

This shows up as soon as the page loads. I don't want this to show up until that space gets rolled over on the image, how can I go about doing this?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/179117-display-rollover-box/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.