PDA

View Full Version : does someone know javascript??



marianchucky
April 15th, 2009, 14:42
Hi!
I have a javascript code in tooltip.js(i attached it).
In some pages of my website i use:
<span id="_ctl0_mainPlaceHolder_resultDataGrid__ctl369_l blInterestRate" class="catalog_tooltip" onmouseover="toolTip('.....')" onmouseout="toolTip()">more ...</span>.

In Firefox i have no problem with it...but in IE7 i have a problem...if u can download the zip i attached because it's a little hard to explain.

If you know which is the bug and how can i correct it please help me.

GlennBeforeTime
April 15th, 2009, 19:00
And what might be the problem you are having with it.

marianchucky
April 16th, 2009, 04:49
well...in firefox when i get the click over the text it appears a box near it with the information i've put in..
but in IE when i get the click over the text the page moves down a little and very fast...and when i get the click off it ,it's like was before...
I don't know how to correct this bug in IE :|...

HELP!

Thnak you!

GlennBeforeTime
April 16th, 2009, 09:54
Can you upload a complete working example of this so that we may test it out and potentially fix the issue for you?

marianchucky
April 16th, 2009, 10:12
Here is the css, html and javascript example.

Thank you!

GlennBeforeTime
April 16th, 2009, 20:03
By upload, I meant put it on your website for us to test. I'm not 1 to download files from forums, that's where most computers get a virus.

As for your script. It is because you are using an iFrame in your JS, you need to use a DIV instead. Just rename it and it works.

marianchucky
April 17th, 2009, 04:43
i don't understand what to change..:confused4

i have an iframe tag in "Build tooltip box"...i changed it into a DIV but it's the same...:|..

Can you tell me what to modify exactly?

Please? :-):-):-)

marianchucky
April 22nd, 2009, 12:34
so geln can you help me? :D

Exa_Ankur
April 23rd, 2009, 07:14
How about using some other tooltip library ?
Here are 2 that look good:

http://www.walterzorn.com/tooltip/tooltip_e.htm
http://sixrevisions.com/tutorials/javascript_tutorial/create_lightweight_javascript_tooltip/