Click to See Complete Forum and Search --> : CSS bubble tip help


chats
06-20-2007, 08:57 AM
Hi, I found this bubble tip,
http://web-graphics.com/mtarchive/BubbleTooltips.html
This is great, exactly what I need, does anyone know which lines I should delete on .js file for me to get rid of that (green)link on the bottom.

And at present how the bubble tip reads the description is through a TITLE tag, how can I change adjust this so that it reads the ALT tag on an image.

Any idea, or any other examples other than this?
Thanks a lot in advanced.
Cheers

Chats

holyhttp
06-20-2007, 09:49 AM
links=document.getElementsByTagName("a")
inside the function enableTooltips(id)


and
l=el.getAttribute("href");
in the function Prepare(el)
This is where the URL in green comes from.


Look at the line:
t=el.getAttribute("title");
and see how the variable t is used to display the "title" attribute in the tooltip.
Yopu can create a new variable say
al=el.getAttribute("alt");

Following the how and where the variable "t" is used in the function, you can do the same for the new variable "al"

Have a fun!!

KDLA
06-20-2007, 09:49 AM
Those green links are to the js author's homepage. In all probability, that is the "price you pay" for using his/her script. To delete those links would be copyright infringement.

You might take a look at these tooltips: http://psacake.com/web/jl.asp
They're pure CSS, meaning that you can style them however you want & not have to worry about attributing them to someone. :D

KDLA