PoPSiCLe
May 6th 2009, 6:18 am
I have a MooTools tooltip thing working wonderfully. Although, I'm wanting my page to validate, and multiple instances of the same ID is sort of preventing that.
What I have is a pricelist - this pricelist have certain footnotes, and those footnotes are being displayed in a tooltip hover if... hovered. That's all just fine, but since there are multiple footnotes that says exactly the same, I get an instance of multiple versions of the tooltips (I've tried placing the tooltip-div outside the while-loop making the table displaying the prices, but that doesn't work, for some reason).
Anyone have an idea how I can fix this? Either change the ID-selector to a class-selector, or how to put the tooltip code only one place on the page?
It's possible to view a "in development" version here:
http://dev.bergenpchjelp.no
The text and such is all in Norwegian, but the functions and such should work in any language :)
Anyone?
If needed, I'd be happy to post the code bits here, but as I'm not completely sure as to what is needed, I'm just adding direct links to the .js-files:
http://dev.bergenpchjelp.no/js/MooTooltips.js <- the actual tooltip js-code
http://dev.bergenpchjelp.no/js/main_js.js <- the domReady functions (and more for the tooltips to work)
If I need to add any more, just tell me.
What I have is a pricelist - this pricelist have certain footnotes, and those footnotes are being displayed in a tooltip hover if... hovered. That's all just fine, but since there are multiple footnotes that says exactly the same, I get an instance of multiple versions of the tooltips (I've tried placing the tooltip-div outside the while-loop making the table displaying the prices, but that doesn't work, for some reason).
Anyone have an idea how I can fix this? Either change the ID-selector to a class-selector, or how to put the tooltip code only one place on the page?
It's possible to view a "in development" version here:
http://dev.bergenpchjelp.no
The text and such is all in Norwegian, but the functions and such should work in any language :)
Anyone?
If needed, I'd be happy to post the code bits here, but as I'm not completely sure as to what is needed, I'm just adding direct links to the .js-files:
http://dev.bergenpchjelp.no/js/MooTooltips.js <- the actual tooltip js-code
http://dev.bergenpchjelp.no/js/main_js.js <- the domReady functions (and more for the tooltips to work)
If I need to add any more, just tell me.