English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to add a javascript to my page, the sort of javascript where it will display a fixed tooltip, on mousing over an image.
The user has to be able to view the tooltip, and there will be links displayed in it for them to click, so, it shouldnt dissapear when they go to click them. , which is what happened before.

Firstly, i am having trouble connecting the javascript to the images, as the images have no link, and just have the tooltip.

Secondly, the user moves mouse over the image, and then tries to click a link in the tooltip, and it vanished.

And finally, i want the tooltip to appear next to the image, and not miles away on the page.

If anyone can help me with my javascript issues i would be very grateful!

Also, i have very little knowledge of inserting scripts, so i will need to have a lot of explaination about how to insert the script.

2007-02-20 05:50:56 · 2 answers · asked by kinglee28 2 in Computers & Internet Programming & Design

2 answers

To link your script to the images, you would do something like:


However, what you want is fairly complicated. Rather than try and write it yourself, I would recommend using an existing Javascript library. Yahoo do a very good one, called YUI - download it at http://developer.yahoo.com/yui/. You probably want the Panel or Tooltip components (in the Container section).

2007-02-20 21:24:47 · answer #1 · answered by Daniel R 6 · 0 0

the adaptation between Java and Javascript ought to no longer be signified by mere examples of syntactical transformations. Java is a programming language, and hence a software written in Java must be compiled. With Java you could create stand-on my own software, applets, and servlets. Javascript is a scripting language, and hence does no longer want a compiler, yet truly an interpreter. Javascript runs by a browser and is not any longer used to create stand-on my own classes. those motives are not to any extent further even the top of the iceburg, yet they do provide a short assessment of the numerous distinction. Java would not be used to create a dynamic internet web site alongside HTML, CSS and regardless of else you take advantage of; it really is the objective of Javascript. notwithstanding, in case you wanted to have some animation, sport, or employer software as area of your internet web site, then a Java applet ought to do the trick. the in effortless words problem that I see with Java applets at present, is that Flash and Silverlight run a lot faster interior the browser.

2016-12-04 10:24:23 · answer #2 · answered by Erika 4 · 0 0

fedest.com, questions and answers