Hi all,

Question is, Is it possible to make a tool tip based on the content saved in a .txt file? If yes, Can you please tell me how?


Regards,

Sameer.

Recommended Answers

i use this one its really cool its jquery.
its called jtip
ops but u save the tip as a htm file.

Jump to Post

All 3 Replies

You could try PHP - something like this:

<?php
// Write out ToolTip.txt file
if ($handle = opendir("path_to_dir_containing_file")) {
    while (false !== ($file = readdir($handle))) {
        if ($file == "ToolTip.txt") {
			echo ("<h2>Tool Tip</h2><p class=\"tooltip\">");
			$file_contents = file($file);
			$array_items = sizeof($file_contents);
			$x = 0;
			while ($x < $array_items) {
				echo ("".$file_contents[$x]."<br />");
				$x++;
			}
			echo ("</p>");
        }
    }
    closedir($handle);
}
?>

i use this one its really cool its jquery.
its called jtip
ops but u save the tip as a htm file.

Can you do something similar to that php in asp or asp.net without having to have 2k worth of code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.