View Full Version : Decorating the title attribute of the link. Possible?
BarrMan
09-01-2007, 08:42 AM
Hey, I looked at this site www.popurls.com and I liked the way you hover your mouse on one of the links and it shows you the information right below the link.
I tried looking at the javascript codes but I found no command that does that.
Then I've searched the html source code for the words that are being showed and I found them inside the title of the anchor itself.
Is this possible or is there another element I should check there?
_Aerospace_Eng_
09-01-2007, 08:44 AM
Check out the tooltips here http://www.dynamicdrive.com/dynamicindex5/index.html
In the future pay more attention to where you post your questions. This is obviously a JS questino.
BarrMan
09-01-2007, 08:50 AM
Check out the tooltips here http://www.dynamicdrive.com/dynamicindex5/index.html
In the future pay more attention to where you post your questions. This is obviously a JS questino.
Thanks! I'm sorry for writing this here but I really thought it had nothing to do with JS since I saw nothin on their .js file that could do such thing.
_Aerospace_Eng_
09-01-2007, 08:55 AM
The gist of it starts here
function findPosition(oLink){if(oLink.offsetParent){for(var posX=0,posY=0;oLink.offsetParent;oLink=oLink.offsetParent){posX+=oLink.offsetLeft;posY+=oLink.offset Top;}
return[posX,posY];}else{return[oLink.x,oLink.y];}}
function snt(e){if(window.CURRENT_NICE_TITLE)hnt(CURRENT_NICE_TITLE)
but its so obfuscated its hard to read.
garydarling
09-01-2007, 09:18 AM
I took no offense to your post, BarrMan, looked like the right forum to me. Here is a script I have used several times that does exactly what you describe:
http://www.walterzorn.com/tooltip/tooltip_e.htm
Gary
BarrMan
09-01-2007, 09:25 AM
I took no offense to your post, BarrMan, looked like the right forum to me. Here is a script I have used several times that does exactly what you describe:
http://www.walterzorn.com/tooltip/tooltip_e.htm
Gary
Thanks for the further help but _Aerospace_Eng_ had given me the link I needed already.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.